| Index: third_party/WebKit/Source/core/frame/Frame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/Frame.cpp b/third_party/WebKit/Source/core/frame/Frame.cpp
|
| index 299e4b1da6900db3fc45ed4a10c1fe5a68ce3846..8b6d37dadd2951532ebb2010cb3c661efe130cec 100644
|
| --- a/third_party/WebKit/Source/core/frame/Frame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/Frame.cpp
|
| @@ -49,6 +49,7 @@
|
| #include "platform/Histogram.h"
|
| #include "platform/InstanceCounters.h"
|
| #include "platform/UserGestureIndicator.h"
|
| +#include "platform/network/ResourceError.h"
|
|
|
| namespace blink {
|
|
|
| @@ -192,9 +193,10 @@ bool Frame::canNavigate(const Frame& targetFrame) {
|
| "user gesture. See "
|
| "https://www.chromestatus.com/features/5851021045661696.";
|
| printNavigationErrorMessage(targetFrame, errorReason.latin1().data());
|
| - if (isLocalFrame())
|
| + if (isLocalFrame()) {
|
| toLocalFrame(this)->navigationScheduler().schedulePageBlock(
|
| - toLocalFrame(this)->document());
|
| + toLocalFrame(this)->document(), ResourceError::ACCESS_DENIED);
|
| + }
|
| return false;
|
| }
|
| if (!isAllowedNavigation && !errorReason.isNull())
|
|
|