<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>293768</bug_id>
          
          <creation_ts>2025-05-29 15:23:48 -0700</creation_ts>
          <short_desc>Web Inspector: implement console.context()</short_desc>
          <delta_ts>2025-06-05 15:24:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2120513</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-05-29 15:23:48 -0700</bug_when>
    <thetext>console.context()
It provides a mechanism for categorizing the errors separately than the usual log message. 

https://github.com/whatwg/console/issues/193
&gt; console.context(name) is available in Chrome and Node.js, and returns a new object with a lot of the console members.


* Edge Explainer for the feature https://github.com/MicrosoftEdge/MSEdgeExplainers/pull/1006/files
* Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=728767 (status: implemented in Chrome)
* Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1948870 (status: being implemented in Firefox)

Risk: The name context() might be already captured by some JS libraries.
https://chromestatus.com/metrics/feature/timeline/popularity/5031
https://github.com/whatwg/console/issues/193#issuecomment-2911455515</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122017</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-05 15:24:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/152680213&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>