WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
239089
Use WebKit::blockedError instead of ResourceLoader::blockedError in WebLoaderStrategy::scheduleLoadFromNetworkProcess
https://bugs.webkit.org/show_bug.cgi?id=239089
Summary
Use WebKit::blockedError instead of ResourceLoader::blockedError in WebLoader...
Alex Christensen
Reported
2022-04-11 14:37:01 PDT
Use WebKit::blockedError instead of ResourceLoader::blockedError in WebLoaderStrategy::scheduleLoadFromNetworkProcess
Attachments
Patch
(1.93 KB, patch)
2022-04-11 14:38 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(1.93 KB, patch)
2022-04-11 15:26 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2022-04-11 14:38:42 PDT
Created
attachment 457288
[details]
Patch
Alex Christensen
Comment 2
2022-04-11 14:38:46 PDT
<
rdar://problem/91295875
>
Chris Dumez
Comment 3
2022-04-11 14:45:13 PDT
Comment on
attachment 457288
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=457288&action=review
> Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp:329 > + RunLoop::main().dispatch([resourceLoader = Ref { resourceLoader }, request] {
May have been easier to capture `resourceLoader->blockedError()` in the lambda and it would have been more obvious that the new code is identical in behavior to the previous one.
Darin Adler
Comment 4
2022-04-11 14:46:30 PDT
Comment on
attachment 457288
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=457288&action=review
>> Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp:329 >> + RunLoop::main().dispatch([resourceLoader = Ref { resourceLoader }, request] { > > May have been easier to capture `resourceLoader->blockedError()` in the lambda and it would have been more obvious that the new code is identical in behavior to the previous one.
This copies the ResourceRequest. Is that necessary?
Chris Dumez
Comment 5
2022-04-11 14:47:47 PDT
Comment on
attachment 457288
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=457288&action=review
>>> Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp:329 >>> + RunLoop::main().dispatch([resourceLoader = Ref { resourceLoader }, request] { >> >> May have been easier to capture `resourceLoader->blockedError()` in the lambda and it would have been more obvious that the new code is identical in behavior to the previous one. > > This copies the ResourceRequest. Is that necessary?
With my proposal, we would effectively just "move" a ResourceError in, which seems better.
Alex Christensen
Comment 6
2022-04-11 15:24:36 PDT
I like just capturing the error. This is the same behavior without the possibility of null dereferencing because WebFrameLoaderClient::blockedError just calls WebKit::blockedError.
Alex Christensen
Comment 7
2022-04-11 15:26:04 PDT
Created
attachment 457293
[details]
Patch
EWS
Comment 8
2022-04-11 16:46:15 PDT
Committed
r292738
(
249522@main
): <
https://commits.webkit.org/249522@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 457293
[details]
.
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