WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 209893
Add SPI to restrict loading to main resources or non-network loads
https://bugs.webkit.org/show_bug.cgi?id=209893
Summary
Add SPI to restrict loading to main resources or non-network loads
Alex Christensen
Reported
2020-04-01 22:05:15 PDT
Add SPI to restrict loading to main resources or non-network loads
Attachments
Patch
(22.68 KB, patch)
2020-04-01 22:06 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(22.60 KB, patch)
2020-04-01 22:16 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2020-04-01 22:06:49 PDT
Created
attachment 395242
[details]
Patch
Tim Horton
Comment 2
2020-04-01 22:13:36 PDT
Comment on
attachment 395242
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395242&action=review
Seems reasonable to me though I'd love a cdumez or bradee-oh review
> Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:921 > +- (BOOL)_loadsFromNetwork
Is this a good name? It really means "allowsLoadingFromHTTPFamilySchemes", right? (what about web sockets, WKURLSchemeHandlers that happen to hit the network, etc...)
> Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:931 > +- (BOOL)_loadsSubresources
Are we consistent in this capitalization of subresources?
Alex Christensen
Comment 3
2020-04-01 22:16:16 PDT
Created
attachment 395243
[details]
Patch
Alex Christensen
Comment 4
2020-04-01 22:20:24 PDT
_loadsFromNetwork prevents http, https, ws, and wss loads. This is to fix
rdar://problem/19426383
which was fixed using bundle SPI that did not block web sockets. This does block web sockets, as verified by the test, which counts the number of requests. If it did not block web sockets, the server would see a "request" from the web socket. We are quite consistent in our capitalization of Subresources.
Tim Horton
Comment 5
2020-04-01 22:23:53 PDT
Ah, I see the WebSocket change now.
EWS
Comment 6
2020-04-02 10:51:12 PDT
Committed
r259392
: <
https://trac.webkit.org/changeset/259392
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 395243
[details]
.
Radar WebKit Bug Importer
Comment 7
2020-04-02 10:52:14 PDT
<
rdar://problem/61215964
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug