As the title says, regardless of what's in the manifest permissions (data:*, <all_urls>, *://*/*), chrome.debugger.sendCommand won't succeed on data uri pages. The error: > Cannot access contents of the page. Extension manifest must request permission to access the respective host. Some more details: * https://github.com/GoogleChrome/lighthouse/pull/4470#issuecomment-364285888 * https://stackoverflow.com/questions/15461142/chrome-extension-permissions-to-manipulate-content-of-data-uris
cl: https://chromium-review.googlesource.com/c/chromium/src/+/919984
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/7c7cc9ff08b4b1b7fe0bb722c6e6940c5f2ff8fa commit 7c7cc9ff08b4b1b7fe0bb722c6e6940c5f2ff8fa Author: Paul Irish <paulirish@chromium.org> Date: Wed Feb 21 02:15:39 2018 Allow extension APIs on data: URIs Bug: 812430 Change-Id: Ibabeb3598d24083b62df84df295e83b9f66258bc Reviewed-on: https://chromium-review.googlesource.com/919984 Commit-Queue: Paul Irish <paulirish@chromium.org> Reviewed-by: Ken Rockot <rockot@chromium.org> Cr-Commit-Position: refs/heads/master@{#537997} [modify] https://crrev.com/7c7cc9ff08b4b1b7fe0bb722c6e6940c5f2ff8fa/chrome/test/data/extensions/api_test/debugger/background.js [modify] https://crrev.com/7c7cc9ff08b4b1b7fe0bb722c6e6940c5f2ff8fa/extensions/common/url_pattern.cc [modify] https://crrev.com/7c7cc9ff08b4b1b7fe0bb722c6e6940c5f2ff8fa/extensions/common/url_pattern.h [modify] https://crrev.com/7c7cc9ff08b4b1b7fe0bb722c6e6940c5f2ff8fa/extensions/common/url_pattern_unittest.cc
Comment 1 by paulir...@chromium.org
, Feb 15 2018Status: Started (was: Untriaged)