MSEdgeExplainers icon indicating copy to clipboard operation
MSEdgeExplainers copied to clipboard

[Contextual Logging With Console Context] Is the name confusing?

Open muster-mark opened this issue 5 months ago • 3 comments

The name seems confusing to me, since it could be confused with browsing context.

In Chrome devtools, in the console tab, there is a checkbox for "Selected context only". This is now ambiguous as the word "context", in the er, context, of console logs, can have 2 different meanings.

muster-mark avatar Jul 07 '25 09:07 muster-mark

Unfortunately, I think it could be a compat risk if we changed the name now since websites are already using this method. However, for the DevTools UI, we are certainly open to other naming options for this section in Console:

Image

Do you have any suggestions?

leahmsft avatar Jul 15 '25 16:07 leahmsft

There may be some websites already using the method, but none in a way that would rely on the method being present, since it does not exist in Firefox or Safari (or any non-chromium browsers as far as a I know). At least not for public-facing websites. And when people use features before they become standards, they accept that things may change.

As for alternative names, could have "channel", "log group", "thread".

muster-mark avatar Jul 17 '25 06:07 muster-mark

Thanks for your suggestions! Chrome usecounters: https://chromestatus.com/metrics/feature/timeline/popularity/5031 shows a list of URLs that are using the feature. I'm not sure how these sites are using it, but it could be a big deal if console.context() doesn't exist anymore.

I haven't seen any other proposals for renaming, but I'd encourage you to bring this up in the WHATWG issue to keep all discussions in one place and give other browser implementors a chance to weigh in.

leahmsft avatar Jul 17 '25 21:07 leahmsft