| Summary: | REGRESSION (Safari 15.4): Nonce from link isn't used when loading style sheet | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Martijn Dashorst <martijn.dashorst> | ||||||||||||
| Component: | Page Loading | Assignee: | Kate Cheney <katherine_cheney> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | ap, beidson, bfulgham, cdumez, changseok, emond.papegaaij, esprehn+autocc, ews-watchlist, gyuyoung.kim, katherine_cheney, mkwst, pgriffis, webkit-bug-importer, wilander | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=222484 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Martijn Dashorst
2022-03-17 02:59:25 PDT
Created attachment 454947 [details]
Actual page render
> This works in Safari < 5.4, but is broken in Safari 5.4.
I'm guessing that this is Safari 15.4, not 5.4, could you please confirm?
Yes, 15.4 Hi! Thanks for reporting, I am taking a look at this. I noticed in the reduction you linked (https://examples9x.wicket.apache.org/index.html) when I inspect the page the nonce is not specified for the stylesheets elements (I see "nonce" instead of something like "nonce='abc'"). Is this a mistake in the creation of the reduction, or could this be the issue? Maybe I am missing something.. Thanks! If you "View Source" you will see the nonce's. <link rel="stylesheet" type="text/css" href="./wicket/resource/org.apache.wicket.examples.WicketExamplePage/fonts/source-code-pro/stylesheet-ver-3BE5D9697D52863D3AC0665326707F93.css" media="screen" nonce="oSJryZj3W7yFgWz7apvYaNxw" /> <link rel="stylesheet" type="text/css" href="./wicket/resource/org.apache.wicket.examples.WicketExamplePage/fonts/source-sans-pro/stylesheet-ver-2E00A7746864396B7D49CAC4751B015A.css" media="screen" nonce="oSJryZj3W7yFgWz7apvYaNxw" /> <link rel="stylesheet" type="text/css" href="./wicket/resource/org.apache.wicket.examples.WicketExamplePage/style-ver-41F7F0F12583ECD409B8A430A534FB94.css" media="screen" nonce="oSJryZj3W7yFgWz7apvYaNxw" /> Also, please see: https://stackoverflow.com/questions/55670985/google-chrome-stripping-nonce-values-from-script-tags I see - thanks for the clarification! Created attachment 455663 [details]
Patch
Comment on attachment 455663 [details]
Patch
Looks good to me.
Comment on attachment 455663 [details]
Patch
r=me
Created attachment 455679 [details]
Patch
Created attachment 455680 [details]
Patch for landing
Committed r291816 (248843@main): <https://commits.webkit.org/248843@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455680 [details]. This fix shipped with Safari 15.5 (all platforms). |