Bug 239898 - REGRESSION (15.4.x): Status bar loses its color after PDF download
Summary: REGRESSION (15.4.x): Status bar loses its color after PDF download
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Major
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on: 232295
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-29 05:49 PDT by Jesper Bendtsen
Modified: 2022-08-12 01:29 PDT (History)
4 users (show)

See Also:


Attachments
Expected and not expected after downloading PDF (6.96 KB, application/x-zip-compressed)
2022-04-29 05:49 PDT, Jesper Bendtsen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.