diff options
Diffstat (limited to 'extensions/renderer')
-rw-r--r-- | extensions/renderer/programmatic_script_injector.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/renderer/programmatic_script_injector.cc b/extensions/renderer/programmatic_script_injector.cc index 97d68a6d..8fea5aa 100644 --- a/extensions/renderer/programmatic_script_injector.cc +++ b/extensions/renderer/programmatic_script_injector.cc @@ -133,8 +133,11 @@ void ProgrammaticScriptInjector::OnWillNotInject( manifest_errors::kCannotAccessAboutUrl, url_.spec(), effective_url_.GetOrigin().spec()); } else { - error = ErrorUtils::FormatErrorMessage( - manifest_errors::kCannotAccessPage, url_.spec()); + // TODO(?) It would be nice to show kCannotAccessPageWithUrl here if + // this is triggered by an extension with tabs permission. See + // https://codereview.chromium.org/1414223005/diff/1/extensions/ + // common/manifest_constants.cc#newcode269 + error = manifest_errors::kCannotAccessPage; } break; case EXTENSION_REMOVED: // no special error here. |