| 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 d66ec64f38a8016ecd2c3064820618a28947371e..9680704918860464f3f63c78c599744ecda86538 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/feature_policy/FeaturePolicy.h"
|
| +#include "platform/network/ResourceError.h"
|
|
|
| namespace blink {
|
|
|
| @@ -195,9 +196,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())
|
|
|