Bug 239898

Summary: REGRESSION (15.4.x): Status bar loses its color after PDF download
Product: WebKit Reporter: Jesper Bendtsen <jesperbendtsen83>
Component: New BugsAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Major CC: bfulgham, hi, smoley, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   
Bug Depends on: 232295    
Bug Blocks:    
Attachments:
Description Flags
Expected and not expected after downloading PDF none

Description Jesper Bendtsen 2022-04-29 05:49:59 PDT
Created attachment 458584 [details]
Expected and not expected after downloading PDF

After update to iOS 15.4.x, my PWA users "added to home screen" suddenly got white status bar after downloading PDF, see attachments. Please help?

Clip from index.html
<link rel="manifest" href="manifest.webmanifest">
<meta name="theme-color" content="#69d01b">
<meta name="theme-color" content="#69d01b" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#69d01b" media="(prefers-color-scheme: dark)">
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

<style>
  body {
    background - color: #69d01b!important;
  }
</style>

Clip from manifest.webmanifest:
"theme_color": "#69d01b",
"background_color": "#69d01b",
"display": "standalone",

Clip from download script:
import { saveAs } from 'file-saver';

saveAs(
    new Blob([bytes], { type: 'application/pdf' }),
    `${filename} _Preview.pdf`
);
Comment 1 Radar WebKit Bug Importer 2022-04-29 14:47:39 PDT
<rdar://problem/92544725>
Comment 2 Smoley 2022-05-02 10:51:23 PDT
Thanks for filing, I think this issue may require a fix outside of WebKit. Can you please file a report via feedbackassistant.apple.com and include a sysdiagnose and a link to the PWA? Thanks.
Comment 3 Jesper Bendtsen 2022-05-02 11:16:22 PDT
How to create an sysdiagnose? The PWA is not public, login is required.
Comment 4 Smoley 2022-05-04 09:48:55 PDT
(In reply to Jesper Bendtsen from comment #3)
> How to create an sysdiagnose? The PWA is not public, login is required.

https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/sysdiagnose_Logging_Instructions.pdf
Comment 5 Jesper Bendtsen 2022-05-16 23:37:40 PDT
I get no response at feedbackassistant.apple.com.

I have now created an demo to show the error: https://mango-tree-0ed834c03.1.azurestaticapps.net/
Comment 6 Brent Fulgham 2022-06-30 10:27:03 PDT
The work is tracked outside of WebKit in this radar:
<rdar://93402362>
Comment 7 Jesper Bendtsen 2022-08-07 23:25:57 PDT
Any status on this, is it still happening in iOS 15.6? Cannot access the radar link.
Comment 8 Devin Rousso 2022-08-11 10:14:48 PDT
this is actually an issue in WebKit
Comment 9 Devin Rousso 2022-08-11 11:31:57 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3231
Comment 10 EWS 2022-08-12 01:29:41 PDT
Committed 253372@main (89cbb8ee6ca0): <https://commits.webkit.org/253372@main>

Reviewed commits have been landed. Closing PR #3231 and removing active labels.