| Summary: | Implement origin partitioning (top-origin/frame-origin) for BroadcastChannel | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||||
| Component: | WebCore Misc. | Assignee: | Chris Dumez <cdumez> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | achristensen, beidson, darin, esprehn+autocc, ews-watchlist, ggaren, japhet, kangil.han, rniwa, sam, webkit-bug-importer, wilander | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| URL: | https://github.com/whatwg/html/issues/5803 | ||||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=230164 | ||||||||||||||
| Bug Depends on: | |||||||||||||||
| Bug Blocks: | 161472 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Chris Dumez
2021-09-02 10:05:53 PDT
Created attachment 437163 [details]
Patch
Created attachment 437164 [details]
Patch
Created attachment 437166 [details]
Patch
Comment on attachment 437166 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437166&action=review > Tools/TestRunnerShared/TestFeatures.cpp:128 > +static bool shouldDisableBroadcastChannelOriginPartitioning(const std::string& pathOrURL) > +{ > + return pathContains(pathOrURL, "localhost:8800/") || pathContains(pathOrURL, "localhost:9443/"); > +} We'd like to avoid adding more of these path based filters (the goal was to remove them all eventually). Can we just disable it by default for all tests instead and use header comments to enable it where needed? (In reply to Sam Weinig from comment #4) > Comment on attachment 437166 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=437166&action=review > > > Tools/TestRunnerShared/TestFeatures.cpp:128 > > +static bool shouldDisableBroadcastChannelOriginPartitioning(const std::string& pathOrURL) > > +{ > > + return pathContains(pathOrURL, "localhost:8800/") || pathContains(pathOrURL, "localhost:9443/"); > > +} > > We'd like to avoid adding more of these path based filters (the goal was to > remove them all eventually). > > Can we just disable it by default for all tests instead and use header > comments to enable it where needed? We could. But since it would be enabled in the shipping configuration, ideally, I'd want it to be the default in our tests I think. Created attachment 437189 [details]
Patch
(In reply to Sam Weinig from comment #4) > Comment on attachment 437166 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=437166&action=review > > > Tools/TestRunnerShared/TestFeatures.cpp:128 > > +static bool shouldDisableBroadcastChannelOriginPartitioning(const std::string& pathOrURL) > > +{ > > + return pathContains(pathOrURL, "localhost:8800/") || pathContains(pathOrURL, "localhost:9443/"); > > +} > > We'd like to avoid adding more of these path based filters (the goal was to > remove them all eventually). > > Can we just disable it by default for all tests instead and use header > comments to enable it where needed? I made this change. Created attachment 437220 [details]
Patch
(In reply to Chris Dumez from comment #5) > (In reply to Sam Weinig from comment #4) > > Comment on attachment 437166 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=437166&action=review > > > > > Tools/TestRunnerShared/TestFeatures.cpp:128 > > > +static bool shouldDisableBroadcastChannelOriginPartitioning(const std::string& pathOrURL) > > > +{ > > > + return pathContains(pathOrURL, "localhost:8800/") || pathContains(pathOrURL, "localhost:9443/"); > > > +} > > > > We'd like to avoid adding more of these path based filters (the goal was to > > remove them all eventually). > > > > Can we just disable it by default for all tests instead and use header > > comments to enable it where needed? > > We could. But since it would be enabled in the shipping configuration, > ideally, I'd want it to be the default in our tests I think. The opposite would also be fine (enable by default, disable explicitly where needed). (In reply to Sam Weinig from comment #9) > (In reply to Chris Dumez from comment #5) > > (In reply to Sam Weinig from comment #4) > > > Comment on attachment 437166 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=437166&action=review > > > > > > > Tools/TestRunnerShared/TestFeatures.cpp:128 > > > > +static bool shouldDisableBroadcastChannelOriginPartitioning(const std::string& pathOrURL) > > > > +{ > > > > + return pathContains(pathOrURL, "localhost:8800/") || pathContains(pathOrURL, "localhost:9443/"); > > > > +} > > > > > > We'd like to avoid adding more of these path based filters (the goal was to > > > remove them all eventually). > > > > > > Can we just disable it by default for all tests instead and use header > > > comments to enable it where needed? > > > > We could. But since it would be enabled in the shipping configuration, > > ideally, I'd want it to be the default in our tests I think. > > The opposite would also be fine (enable by default, disable explicitly where > needed). Put I cannot add header comments to disable the feature in WPT tests, which is why I was doing it some other way. Committed r282105 (241403@main): <https://commits.webkit.org/241403@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437220 [details]. Follow-up fix in <https://commits.webkit.org/r282106>. Follow-up fix in <https://commits.webkit.org/r282246>. |