Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: LayoutTests/fast/loader/javascript-detached-frame-no-crash.html

Issue 1156663003: Adjust FrameFetchContext clearing logic when clearing HTMLImportsController (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/loader/javascript-detached-frame-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/loader/javascript-detached-frame-no-crash.html
diff --git a/LayoutTests/fast/loader/javascript-detached-frame-no-crash.html b/LayoutTests/fast/loader/javascript-detached-frame-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..91a8f81674dda074ae8283237fa9d910f6b9012e
--- /dev/null
+++ b/LayoutTests/fast/loader/javascript-detached-frame-no-crash.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+description("Execute javascript: URL in a replacement document without crashing.");
dcheng 2015/05/22 16:10:48 Nit: mention something about the child having an i
sof 2015/05/22 16:29:32 Yes, directly relevant.
+self.jsTestIsAsync = true;
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+var iframeLoadCount = 0;
+function runTest() {
+ // Both the initial load and completion of the javascript: navigation will trigger a 'load'.
+ if (++iframeLoadCount == 2) {
+ testPassed("no crash.");
+ setTimeout(finishJSTest, 0);
+ }
+}
+</script>
+<iframe onload="runTest();" src="resources/javascript-detached-frame-iframe.html"></iframe>
« no previous file with comments | « no previous file | LayoutTests/fast/loader/javascript-detached-frame-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698