Chromium Code Reviews| Index: Source/web/WebLocalFrameImpl.cpp |
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
| index 90a5b77ffb06442e32cab1924f1d416fcab4f2ca..51c8a28676bfd73bacc71d653aed0b89f264409a 100644 |
| --- a/Source/web/WebLocalFrameImpl.cpp |
| +++ b/Source/web/WebLocalFrameImpl.cpp |
| @@ -2116,6 +2116,11 @@ bool WebLocalFrameImpl::isResourceLoadInProgress() const |
| return frame()->document()->fetcher()->requestCount(); |
| } |
| +bool WebLocalFrameImpl::isRedirectOrLocationChangePending() const |
| +{ |
| + return frame() && (frame()->navigationScheduler().isRedirect() || frame()->navigationScheduler().locationChangePending()); |
|
Nate Chapin
2015/08/21 22:38:31
Is there a reason this has to be picky about what
dglazkov
2015/08/21 22:54:53
Good question. For the specific user of the API, i
Nate Chapin
2015/08/21 23:00:29
I think that's preferable, yeah.
|
| +} |
| + |
| void WebLocalFrameImpl::setCommittedFirstRealLoad() |
| { |
| ASSERT(frame()); |