New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing service worker content filter check #12715
Add missing service worker content filter check #12715
Conversation
EWS run on previous version of this PR (hash 657d1a8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is small, and well contained -- and the tests seem good.
Since this uses internals state to adjust content filters, there is probably no way to do WPT-style testing here, so this seems good to add to our custom suite.
var activeWorker; | ||
|
||
if (window.internals) { | ||
var settings = window.internals.mockContentFilterSettings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see -- we are passing custom filter settings here.
657d1a8
to
c454908
Compare
EWS run on current version of this PR (hash c454908) |
Thanks for reviewing! |
https://bugs.webkit.org/show_bug.cgi?id=255418 rdar://107453214 Reviewed by Brent Fulgham. This patch was authored by Ben Nham and Per Arne Vollan. Add missing service worker content filter check after finished adding data. This fixes an issue where service workers are incorrectly blocked. * LayoutTests/TestExpectations: * LayoutTests/http/wpt/service-workers/basic-fetch-with-contentfilter-allow-after-adding-data-expected.txt: Added. * LayoutTests/http/wpt/service-workers/basic-fetch-with-contentfilter-allow-after-adding-data.html: Added. * LayoutTests/http/wpt/service-workers/basic-fetch-with-contentfilter.js: (doTest): * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac/TestExpectations: * Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp: (WebKit::NetworkResourceLoader::serviceWorkerDidFinish): Canonical link: https://commits.webkit.org/262972@main
c454908
to
09061ad
Compare
Committed 262972@main (09061ad): https://commits.webkit.org/262972@main Reviewed commits have been landed. Closing PR #12715 and removing active labels. |
09061ad
c454908
π π§ͺ merge