<?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>266853</bug_id>
          
          <creation_ts>2023-12-23 08:49:38 -0800</creation_ts>
          <short_desc>Dark/light mode switching not working while PWA is open</short_desc>
          <delta_ts>2024-09-16 14:48:38 -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>Platform</component>
          <version>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=259328</see_also>
          <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="Danny Moerkerke">drmoerkerke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>clark1729</cc>
    
    <cc>karlcow</cc>
    
    <cc>luming_yin</cc>
    
    <cc>ryan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2001741</commentid>
    <comment_count>0</comment_count>
    <who name="Danny Moerkerke">drmoerkerke</who>
    <bug_when>2023-12-23 08:49:38 -0800</bug_when>
    <thetext>When a web app is added to the Home Screen (PWA) dark/light mode switching doesn&apos;t work while the app is open.

To reproduce:

1. install a web app to the home screen of an iPhone and open it in light mode
2. switch iPhone to dark mode
3. dark mode styling is not applied to the PWA
4. close the app
5. reopen the app
6. only now is the dark mode styling applied

When the same web app is opened in Safari it does work correctly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001871</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-12-24 22:07:55 -0800</bug_when>
    <thetext>Hi Danny, thanks for the report.
Not sure this is WebKit. It might be Safari Side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001872</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-24 22:08:04 -0800</bug_when>
    <thetext>&lt;rdar://problem/120109217&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003793</commentid>
    <comment_count>3</comment_count>
    <who name="Danny Moerkerke">drmoerkerke</who>
    <bug_when>2024-01-09 03:32:05 -0800</bug_when>
    <thetext>(In reply to Karl Dubost from comment #1)
&gt; Hi Danny, thanks for the report.
&gt; Not sure this is WebKit. It might be Safari Side.

Should I report this to the Safari team? 
Where do I do that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003800</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-01-09 04:00:34 -0800</bug_when>
    <thetext>Does it happen with all of them? 
Or one you have developed? If yes to the second question, a reduced test case would be great. 

I will test on my side too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003806</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-01-09 04:19:37 -0800</bug_when>
    <thetext>It was reproduced on twitter webapp. 
We moved it internally. 
Thanks again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060564</commentid>
    <comment_count>6</comment_count>
    <who name="Danny Moerkerke">drmoerkerke</who>
    <bug_when>2024-09-16 14:48:38 -0700</bug_when>
    <thetext>This is now fixed on iOS 18, thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>