Bug 227220 - [WK2] Don't process-swap on navigations within the same non-HTTP(s) protocol
Summary: [WK2] Don't process-swap on navigations within the same non-HTTP(s) protocol
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-21 09:24 PDT by Chris Dumez
Modified: 2021-06-21 17:45 PDT (History)
10 users (show)

See Also:


Attachments
Patch (12.53 KB, patch)
2021-06-21 09:26 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (16.03 KB, patch)
2021-06-21 10:54 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Follow-up to fix GTK API test (2.64 KB, patch)
2021-06-21 15:23 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-06-21 09:24:13 PDT
Don't process-swap on navigations within the same non-HTTP(s) protocol. Trying to extract registrable domains from non HTTP(s) URLs does not make much sense and leads to unexpected process swaps.
Comment 1 Chris Dumez 2021-06-21 09:26:03 PDT
Created attachment 431870 [details]
Patch
Comment 2 Chris Dumez 2021-06-21 09:26:30 PDT
<rdar://79106461>
Comment 3 Chris Dumez 2021-06-21 10:54:41 PDT
Created attachment 431877 [details]
Patch
Comment 4 EWS 2021-06-21 13:47:35 PDT
Committed r279079 (238998@main): <https://commits.webkit.org/238998@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431877 [details].
Comment 5 Aakash Jain 2021-06-21 15:09:31 PDT
(In reply to EWS from comment #4)
> Committed r279079 (238998@main): <https://commits.webkit.org/238998@main>
Seems like it broke api-gtk test /WebKit2Gtk/TestWebExtensions:/webkit/WebKitWebExtension/page-id
Comment 6 Chris Dumez 2021-06-21 15:17:24 PDT
(In reply to Aakash Jain from comment #5)
> (In reply to EWS from comment #4)
> > Committed r279079 (238998@main): <https://commits.webkit.org/238998@main>
> Seems like it broke api-gtk test
> /WebKit2Gtk/TestWebExtensions:/webkit/WebKitWebExtension/page-id

I'll see if I can figure it out but did we ever change the rule that WK2 changes were allowed to break non-Cocoa ports to not hold back development?
Comment 7 Chris Dumez 2021-06-21 15:21:07 PDT
The GTK test is observing process swaps by checking if the pageID changed or not. Should be easy to update the test. Looking into it now.
Comment 8 Chris Dumez 2021-06-21 15:23:50 PDT
Reopening to attach new patch.
Comment 9 Chris Dumez 2021-06-21 15:23:51 PDT
Created attachment 431917 [details]
Follow-up to fix GTK API test
Comment 10 Aakash Jain 2021-06-21 15:26:12 PDT
> I'll see if I can figure it out but did we ever change the rule that WK2 changes were allowed to break non-Cocoa ports to not hold back development?
Thanks. I am not sure of the exact rule. However, this test breakage is slowing does https://ews-build.webkit.org/#/builders/API-Tests-GTK-EWS queue. This would result in progressively increasing delay in getting ews results on that queue, which might result in reduced coverage and thereby causing more regressions on that queue. From maintaining the infrastructure point of view, it's important to keep the test-suites in good state.
Comment 11 Chris Dumez 2021-06-21 15:28:00 PDT
(In reply to Aakash Jain from comment #10)
> > I'll see if I can figure it out but did we ever change the rule that WK2 changes were allowed to break non-Cocoa ports to not hold back development?
> Thanks. I am not sure of the exact rule. However, this test breakage is
> slowing does https://ews-build.webkit.org/#/builders/API-Tests-GTK-EWS
> queue. This would result in progressively increasing delay in getting ews
> results on that queue, which might result in reduced coverage and thereby
> causing more regressions on that queue. From maintaining the infrastructure
> point of view, it's important to keep the test-suites in good state.

Understood. I think breaking other ports is bad practice either way, I was just surprised to get ping'd by Apple about it.

I have a speculative fix ready but am waiting for EWS to process and confirm it works since I cannot validate locally.
Comment 12 EWS 2021-06-21 17:45:18 PDT
Committed r279095 (239012@main): <https://commits.webkit.org/239012@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431917 [details].