<?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>266897</bug_id>
          
          <creation_ts>2023-12-26 11:03:45 -0800</creation_ts>
          <short_desc>Exposing navigator.language to web workers</short_desc>
          <delta_ts>2024-01-02 11:04:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>heycam</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2002001</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-26 11:03:45 -0800</bug_when>
    <thetext>Hi Team,

While investigating WPT failures, I noticed that we fail two tests here:

WPT Test Case: https://wpt.fyi/results/html/dom/idlharness.worker.html?label=master&amp;label=experimental&amp;aligned=&amp;q=safari%3Afail

&gt; WorkerGlobalScope interface: attribute onlanguagechange	
&gt; WorkerGlobalScope interface: self must inherit property &quot;onlanguagechange&quot; with the proper type

WebKit / Safari is only browser currently failing these (so I will add &apos;BrowserCompat&apos; tag - in addition to &apos;WPTImpact&apos;).

Blink Commit (for reference) - https://chromium.googlesource.com/chromium/src.git/+/6c688717fa4d50920ebcb0ab80e95023ff562656

FIXME in WebKit Source: https://searchfox.org/wubkat/rev/2cb2f84b68df8a519e252d535de43e7d19567883/Source/WebCore/workers/WorkerGlobalScope.idl#39

I didn&apos;t manage to find similar bug so I thought to raise for better tracking.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002002</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-26 11:11:07 -0800</bug_when>
    <thetext>NOTE - just uncommenting in IDL file (FIXME) leads to test progression. So we might have already necessary implementation. Although, will wait for more context or input from others.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002018</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-12-26 12:20:09 -0800</bug_when>
    <thetext>Language.cpp has some locking added for OffscreenCanvas thread safety, so Navigator.language may indeed be trivial to enable in workers at this point. Careful verification would still be needed, of course.

However onlanguagechange clearly doesn&apos;t have an implementation, so uncommenting the line in IDL won&apos;t make it work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002565</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-02 11:04:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/120378717&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>