 Chromium Code Reviews
 Chromium Code Reviews Issue 2398733004:
  Do not SendPasswordForms when LocalFrame is being detached  (Closed)
    
  
    Issue 2398733004:
  Do not SendPasswordForms when LocalFrame is being detached  (Closed) 
  | Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp | 
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp | 
| index 4bd3bdce4c842217a659d4a8bbe73cdeedee763e..83081bbf87aa5867ca775c70fd56f5888367b487 100644 | 
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp | 
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp | 
| @@ -2025,6 +2025,12 @@ bool WebLocalFrameImpl::isLoading() const { | 
| !frame()->document()->loadEventFinished(); | 
| } | 
| +bool WebLocalFrameImpl::isDetached() const { | 
| + if (!frame() || !frame()->client()) | 
| 
esprehn
2016/10/11 22:45:52
I'd prefer if the ->client() check was in core Fra
 | 
| + return true; | 
| + return frame()->isDetached(); | 
| +} | 
| + | 
| bool WebLocalFrameImpl::isNavigationScheduledWithin( | 
| double intervalInSeconds) const { | 
| return frame() && |