| Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| index a90e72fb90291bb6d1e11b16d19203c69ecfa7de..c6ac51641da1f8fdc412cfd6f39462153ce1bb71 100644
|
| --- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| @@ -35,6 +35,7 @@
|
| #include "core/dom/WeakIdentifierMap.h"
|
| #include "core/events/Event.h"
|
| #include "core/frame/Deprecation.h"
|
| +#include "core/frame/FrameConsole.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/LocalFrameClient.h"
|
| @@ -467,7 +468,9 @@ bool DocumentLoader::RedirectReceived(
|
| RefPtr<SecurityOrigin> redirecting_origin =
|
| SecurityOrigin::Create(redirect_response.Url());
|
| if (!redirecting_origin->CanDisplay(request_url)) {
|
| - FrameLoader::ReportLocalLoadFailed(frame_, request_url.GetString());
|
| + frame_->Console().AddMessage(ConsoleMessage::Create(
|
| + kSecurityMessageSource, kErrorMessageLevel,
|
| + "Not allowed to load local resource: " + request_url.GetString()));
|
| fetcher_->StopFetching();
|
| return false;
|
| }
|
|
|