| Summary: | Meta HTTP refresh should not navigate if document has sandboxed automatic features browsing context flag set | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | achristensen, changseok, darin, esprehn+autocc, ews-watchlist, ggaren, gyuyoung.kim, hi, japhet, kangil.han, mkwst, sam, webkit-bug-importer, youennf | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2021-08-10 12:21:56 PDT
Created attachment 435281 [details]
Patch
Comment on attachment 435281 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435281&action=review > Source/WebCore/loader/NavigationScheduler.cpp:186 > + if (auto* document = frame.document()) { > + if (document->isSandboxed(SandboxAutomaticFeatures)) { Rather than nesting, I like this style: if (auto document = frame.document(); document && document->isSandboxed(SandboxAutomaticFeatures) { Comment on attachment 435281 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435281&action=review >> Source/WebCore/loader/NavigationScheduler.cpp:186 >> + if (document->isSandboxed(SandboxAutomaticFeatures)) { > > Rather than nesting, I like this style: > > if (auto document = frame.document(); document && document->isSandboxed(SandboxAutomaticFeatures) { Not saying you must change this, just telling you the style I prefer. (In reply to Darin Adler from comment #3) > Comment on attachment 435281 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=435281&action=review > > >> Source/WebCore/loader/NavigationScheduler.cpp:186 > >> + if (document->isSandboxed(SandboxAutomaticFeatures)) { > > > > Rather than nesting, I like this style: > > > > if (auto document = frame.document(); document && document->isSandboxed(SandboxAutomaticFeatures) { > > Not saying you must change this, just telling you the style I prefer. Oh, indeed. It is nicer and will make the update. My brain just hasn't adjusted to the new C++ syntax yet :) Created attachment 435302 [details]
Patch
Committed r280870 (240409@main): <https://commits.webkit.org/240409@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435302 [details]. |