Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 945743003: Improve error message for failing code insertion on about:-URLs (Closed)

Created:
5 years, 10 months ago by robwu
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve error message for failing code insertion on about:-URLs Currently, extension developers get the following message: "Cannot access contents of url "about:blank". Extension manifest must request permission to access this host." Extensions cannot request permission for about:-URLs, so this message is useless. The message has been changed to: "Cannot access contents of url "about:blank". Extension must have permission to access the frame's origin, and matchAboutBlank must be true." This message will be used in https://codereview.chromium.org/952473002/ R=kalman@chromium.org Committed: https://crrev.com/a9e6e642db6fd06df8de455230b1057dc4e756a6 Cr-Commit-Position: refs/heads/master@{#322865}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add origin to error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M extensions/common/manifest_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/programmatic_script_injector.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/renderer/programmatic_script_injector.cc View 1 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
robwu
5 years, 10 months ago (2015-02-23 16:07:53 UTC) #1
not at google - send to devlin
lgtm https://codereview.chromium.org/945743003/diff/1/extensions/common/manifest_constants.cc File extensions/common/manifest_constants.cc (right): https://codereview.chromium.org/945743003/diff/1/extensions/common/manifest_constants.cc#newcode255 extensions/common/manifest_constants.cc:255: "access the frame's origin, and matchAboutBlank must be ...
5 years, 10 months ago (2015-02-23 18:28:34 UTC) #2
robwu
https://codereview.chromium.org/945743003/diff/1/extensions/common/manifest_constants.cc File extensions/common/manifest_constants.cc (right): https://codereview.chromium.org/945743003/diff/1/extensions/common/manifest_constants.cc#newcode255 extensions/common/manifest_constants.cc:255: "access the frame's origin, and matchAboutBlank must be true."; ...
5 years, 10 months ago (2015-02-23 23:29:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/945743003/20001
5 years, 8 months ago (2015-03-30 20:17:34 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-03-30 21:14:14 UTC) #7
commit-bot: I haz the power
5 years, 8 months ago (2015-03-30 21:14:54 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a9e6e642db6fd06df8de455230b1057dc4e756a6
Cr-Commit-Position: refs/heads/master@{#322865}

Powered by Google App Engine
This is Rietveld 408576698