DescriptionThis CL aims to fix the bug that when webview guest create a SharedWorker, the sctipt file of SharedWorker can not be loaded.
The SharedWorker lives in a separate render process as the webview who creates it. Because url_request_util::AllowCrossRendererResourceLoad(...) doesn't consider that the render process of the SharedWorker is a guest, so it denies the load of SharedWorker's script.
So we introduce webview partition id map in ExtensitonRenderState. When loading a SharedWorker script, we will check whether the script file is in the accessible resource of given "Partition ID", and decide whether it can be loaded or not.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278377
Patch Set 1 #
Total comments: 14
Patch Set 2 : Changes are made. #
Total comments: 16
Patch Set 3 : Introduce WebViewPartiotionInfo. #
Total comments: 2
Patch Set 4 : Add constructor. #
Total comments: 6
Patch Set 5 : Small changes are made. #
Messages
Total messages: 13 (0 generated)
|