| Summary: | WebKit should process-swap for initial navigation of a popup if it has no opener | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||||||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||||
| Severity: | Normal | CC: | achristensen, beidson, bfulgham, ggaren, kkinnunen, webkit-bug-importer, youennf | ||||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Chris Dumez
2021-10-19 15:07:13 PDT
Created attachment 441806 [details]
Patch
Created attachment 441890 [details]
Patch
Created attachment 441912 [details]
Patch
Created attachment 441950 [details]
Patch
Created attachment 441960 [details]
Patch
Created attachment 441979 [details]
Patch
Comment on attachment 441979 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=441979&action=review R=me > Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:1296 > + EXPECT_NE(pid1, pid2); Is it worth having a test for the named window case to confirm it doesn’t process swap? > Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:1387 > + // Since the window was open via JS, it should be able to close itself. “Was opened” (In reply to Brent Fulgham from comment #8) > Comment on attachment 441979 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=441979&action=review > > R=me > > > Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:1296 > > + EXPECT_NE(pid1, pid2); > > Is it worth having a test for the named window case to confirm it doesn’t > process swap? Why not, I'll add one. That said, process swapping when there is a window name and no opener would be safe. I merely haven't gone to the trouble of making it work. > > > Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:1387 > > + // Since the window was open via JS, it should be able to close itself. > > “Was opened” Created attachment 442019 [details]
Patch
Comment on attachment 442019 [details] Patch Clearing flags on attachment: 442019 Committed r284610 (243337@main): <https://commits.webkit.org/243337@main> All reviewed patches have been landed. Closing bug. |