Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index 36b71712621945b2dd1d631db89dcb742d92e0be..e7e40a3a152222afa8d3396818fe7222ce70f4fe 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -923,6 +923,10 @@ FrameNavigationDisabler::~FrameNavigationDisabler() { |
m_frame->enableNavigation(); |
} |
+bool LocalFrame::isNavigationAllowed() const { |
+ return m_navigationDisableCount == 0; |
+} |
dcheng
2017/01/09 19:17:30
Nit: revert this to the original (inlined in heade
lfg
2017/01/09 21:18:22
Done.
|
+ |
ScopedFrameBlamer::ScopedFrameBlamer(LocalFrame* frame) : m_frame(frame) { |
if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
m_frame->client()->frameBlameContext()->Enter(); |