| Index: content/browser/frame_host/navigation_request.cc
|
| diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
|
| index 1c0a87ef65e701d2af93bdf613b623ab39c29d61..e998d178868a98759007ef6fd0b4ffd800d1c450 100644
|
| --- a/content/browser/frame_host/navigation_request.cc
|
| +++ b/content/browser/frame_host/navigation_request.cc
|
| @@ -52,9 +52,10 @@ int LoadFlagFromNavigationType(FrameMsg_Navigate_Type::Value navigation_type) {
|
|
|
| // static
|
| bool NavigationRequest::ShouldMakeNetworkRequest(const GURL& url) {
|
| - // Data urls should not make network requests.
|
| + // Data and Javascript urls should not make network requests.
|
| // TODO(clamy): same document navigations should not make network requests.
|
| - return !url.SchemeIs(url::kDataScheme) && url != GURL(url::kAboutBlankURL);
|
| + return !url.SchemeIs(url::kDataScheme) && url != GURL(url::kAboutBlankURL) &&
|
| + !url.SchemeIs(url::kJavaScriptScheme);
|
| }
|
|
|
| // static
|
|
|