RESOLVED FIXED 213109
Add SPI to preconnect to a server
https://bugs.webkit.org/show_bug.cgi?id=213109
Summary Add SPI to preconnect to a server
Alex Christensen
Reported 2020-06-11 20:25:54 PDT
Add SPI to preconnect to a server
Attachments
Patch (14.09 KB, patch)
2020-06-11 20:28 PDT, Alex Christensen
no flags
Patch (13.17 KB, patch)
2020-06-12 16:59 PDT, Alex Christensen
no flags
Patch (13.36 KB, patch)
2020-06-15 13:01 PDT, Alex Christensen
no flags
Patch for landing (1.13 KB, patch)
2020-06-18 15:36 PDT, Jonathan Bedard
no flags
Alex Christensen
Comment 1 2020-06-11 20:28:57 PDT
Geoffrey Garen
Comment 2 2020-06-11 20:35:02 PDT
Comment on attachment 401703 [details] Patch r=me
Alex Christensen
Comment 3 2020-06-11 22:01:23 PDT
Comment on attachment 401703 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401703&action=review > Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:1475 > - if (!url.isValid() || !url.protocolIsInHTTPFamily() || SecurityOrigin::isLocalHostOrLoopbackIPAddress(url.host())) > + if (!url.isValid() || !url.protocolIsInHTTPFamily()) It looks like this change made some tests fail. The use of isLocalHostOrLoopbackIPAddress was probably covering up some bugs.
Chris Dumez
Comment 4 2020-06-12 07:24:21 PDT
(In reply to Alex Christensen from comment #3) > Comment on attachment 401703 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=401703&action=review > > > Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:1475 > > - if (!url.isValid() || !url.protocolIsInHTTPFamily() || SecurityOrigin::isLocalHostOrLoopbackIPAddress(url.host())) > > + if (!url.isValid() || !url.protocolIsInHTTPFamily()) > > It looks like this change made some tests fail. The use of > isLocalHostOrLoopbackIPAddress was probably covering up some bugs. Yes, we totally added that because the basic HTTPServer in API tests did not like the preconnects.
Radar WebKit Bug Importer
Comment 5 2020-06-12 10:31:28 PDT
Maciej Stachowiak
Comment 6 2020-06-12 10:31:46 PDT
Alex Christensen
Comment 7 2020-06-12 13:33:27 PDT
Alex Christensen
Comment 8 2020-06-12 16:59:00 PDT
Maciej Stachowiak
Comment 9 2020-06-15 11:04:04 PDT
Preconnect test still seems to be failing with the latest change.
Alex Christensen
Comment 10 2020-06-15 13:01:48 PDT
EWS
Comment 11 2020-06-15 13:59:26 PDT
Committed r263057: <https://trac.webkit.org/changeset/263057> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401925 [details].
Jonathan Bedard
Comment 12 2020-06-18 15:36:20 PDT
Reopening to attach new patch.
Jonathan Bedard
Comment 13 2020-06-18 15:36:21 PDT
Created attachment 402244 [details] Patch for landing
Jonathan Bedard
Comment 14 2020-06-18 15:37:10 PDT
(In reply to Jonathan Bedard from comment #13) > Created attachment 402244 [details] > Patch for landing Build fix for Catalyst.
EWS
Comment 15 2020-06-18 16:11:55 PDT
Committed r263242: <https://trac.webkit.org/changeset/263242> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402244 [details].
Note You need to log in before you can comment on or make changes to this bug.