Commit b4c44707 authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

Whitelist chrome://inspect for network subresource requests

Bug: 829412
Change-Id: Ia42efe7c749e0eaa44ea9c45a1a4be1a7d43580f
Reviewed-on: https://chromium-review.googlesource.com/1007980
Commit-Queue: Ken Rockot <rockot@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550206}
parent f44d3418
......@@ -81,7 +81,16 @@ PermissionsData::AccessType GetMinimumAccessType(
bool IsWebUIAllowedToMakeNetworkRequests(const url::Origin& origin) {
// Whitelist to work around exceptional cases. This is only used to elide a
// DCHECK.
return origin.host() == "print" || origin.host() == "sync-confirmation";
//
// If you are adding a new host to this list, please file a corresponding bug
// to track its removal. See https://crbug.com/829412 for the metabug.
return
// https://crbug.com/829414
origin.host() == "print" ||
// https://crbug.com/831812
origin.host() == "sync-confirmation" ||
// https://crbug.com/831813
origin.host() == "inspect";
}
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment