commit | d52ea54eab4fdedfe640c0838199548c1717b5ed | [log] [tgz] |
---|---|---|
author | Devlin Cronin <rdevlin.cronin@chromium.org> | Fri Dec 20 17:59:02 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Dec 20 17:59:02 2019 |
tree | 390b836585c5a86b4a5473e6f88eefe6d936ba0f | |
parent | 43ab96ce6bfc78440e5b1617a9974386a54c750c [diff] |
[Extensions] Set tabs.executeScript() URLs to chrome-extension: scheme Set the script URL for scripts executed via chrome.tabs.executeScript() to use the chrome-extension: scheme, e.g. chrome-extension://<id>/<path-to-script>, rather than the file URL. This prevents referencing the filesystem in the URL, and is consistent with content scripts that are statically specified in the manifest. Add a regression test (that also tests the statically-defined content script behavior). This entailed adding a new test utility, WebContentsConsoleObserver, to track the messages sent to the console for a given WebContents. This can replace ConsoleObserverDelegate in the future. Bug: 714617 Change-Id: I3de400e6dccf9f9a662824b4810bd52245cd4d62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1962676 Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Emily Stark <estark@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#726842}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .