diff options
-rw-r--r-- | webkit/glue/webframeloaderclient_impl.cc | 7 | ||||
-rw-r--r-- | webkit/tools/layout_tests/test_lists/win/tests_fixable.txt | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/webkit/glue/webframeloaderclient_impl.cc b/webkit/glue/webframeloaderclient_impl.cc index 946e784..7d7bcb2 100644 --- a/webkit/glue/webframeloaderclient_impl.cc +++ b/webkit/glue/webframeloaderclient_impl.cc @@ -396,14 +396,13 @@ bool WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache( } void WebFrameLoaderClient::dispatchDidHandleOnloadEvents() { - WebViewImpl* webview = webframe_->webview_impl(); // During the onload event of a subframe, the subframe can be removed. In - // that case, we have no webview. This is covered by + // that case, it has no page. This is covered by // LayoutTests/fast/dom/replaceChild.html - if (!webview) + if (!webframe_->frame()->page()) return; + WebViewImpl* webview = webframe_->webview_impl(); WebViewDelegate* d = webview->delegate(); - if (d) d->DidHandleOnloadEventsForFrame(webview, webframe_); } diff --git a/webkit/tools/layout_tests/test_lists/win/tests_fixable.txt b/webkit/tools/layout_tests/test_lists/win/tests_fixable.txt index 964f2ea..e3ffc73 100644 --- a/webkit/tools/layout_tests/test_lists/win/tests_fixable.txt +++ b/webkit/tools/layout_tests/test_lists/win/tests_fixable.txt @@ -1185,7 +1185,6 @@ V8 # LayoutTests/svg/carto.net/combobox.svg = FAIL V8 # LayoutTests/fast/dom/Window/get-set-properties.html = PASS | FAIL V8 # LayoutTests/fast/dom/Window/new-window-opener.html = PASS | FAIL V8 # LayoutTests/fast/forms/access-key.html = PASS | FAIL -V8 # LayoutTests/http/tests/loading/gmail-assert-on-load.html = PASS | FAIL V8 # LayoutTests/http/tests/security/originHeader/origin-header-for-empty.html = FAIL | PASS V8 # pending/security/block-test.html = FAIL |