Issue metadata
Sign in to add a comment
|
it's not possible to block javascript and selectively allow scripts from some URL |
||||||||||||||||||||||
Issue descriptionthat's because in the ScriptLoader, we won't even look at the URL if executing script is forbidden.
,
May 3 2016
(note that the other way round works, allow all script but block some URLs)
,
May 9 2016
Is this just referring to the secondary pattern? In other words - I think I can block scripts and allow them on a per-top-level origin basis, but not on a per <script> basis (which someone may try to do via policy, etc). Is my understanding correct?
,
May 9 2016
right, that's for the secondary pattern. I guess you can also set it via an extension API? not sure...
,
May 17 2016
,
Nov 30 2016
,
Nov 10 2017
,
Feb 18 2018
,
Aug 23
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/856fc5567263cadd3edcfd56c1d8e6e6b6873f07 commit 856fc5567263cadd3edcfd56c1d8e6e6b6873f07 Author: Yuki Yamada <yukiy@google.com> Date: Thu Aug 23 11:31:06 2018 Check script execution is forbidden or not only in MainWorld We should not forbid script execution in isolated worlds when dispatching events (it should be operated by disabling Chrome extension), so checking execution setting is necessary only in main world. V8EventListenerOrEventHandler::CallListenerFunction() already implements this, so this CL make GeneratedCodeHelper::IsCallbackRunnable() to do the same conditional check for other callbacks generated by IDL files. Test for this is already exists: https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/fast/events/events-in-isolated-world.html Bug: 872138 , 608286, 608641 Change-Id: Ibc38e6033d6d0462362012f1c49271548c26a8ec Reviewed-on: https://chromium-review.googlesource.com/1186212 Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Commit-Queue: Yuki Yamada <yukiy@google.com> Cr-Commit-Position: refs/heads/master@{#585449} [modify] https://crrev.com/856fc5567263cadd3edcfd56c1d8e6e6b6873f07/third_party/blink/renderer/bindings/core/v8/generated_code_helper.cc |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by bugdroid1@chromium.org
, May 3 2016