Title: [193969] trunk/LayoutTests
Revision
193969
Author
[email protected]
Date
2015-12-11 11:49:56 -0800 (Fri, 11 Dec 2015)

Log Message

Do not fire load events from frames with scripting disabled
https://bugs.webkit.org/show_bug.cgi?id=118042
<rdar://problem/14272857>

Reviewed by Brent Fulgham.

Since the crash is not reproducible, only test case from Blink r153029 is merged:
https://codereview.chromium.org/17682003

* fast/images/image-load-event-crash-expected.txt: Added.
* fast/images/image-load-event-crash.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (193968 => 193969)


--- trunk/LayoutTests/ChangeLog	2015-12-11 19:13:38 UTC (rev 193968)
+++ trunk/LayoutTests/ChangeLog	2015-12-11 19:49:56 UTC (rev 193969)
@@ -1,3 +1,17 @@
+2015-12-11  Jiewen Tan  <[email protected]>
+
+        Do not fire load events from frames with scripting disabled
+        https://bugs.webkit.org/show_bug.cgi?id=118042
+        <rdar://problem/14272857>
+
+        Reviewed by Brent Fulgham.
+
+        Since the crash is not reproducible, only test case from Blink r153029 is merged:
+        https://codereview.chromium.org/17682003
+
+        * fast/images/image-load-event-crash-expected.txt: Added.
+        * fast/images/image-load-event-crash.html: Added.
+
 2015-12-11  Brady Eidson  <[email protected]>
 
         Modern IDB: storage/indexeddb/index-count.html fails.

Added: trunk/LayoutTests/fast/images/image-load-event-crash-expected.txt (0 => 193969)


--- trunk/LayoutTests/fast/images/image-load-event-crash-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/images/image-load-event-crash-expected.txt	2015-12-11 19:49:56 UTC (rev 193969)
@@ -0,0 +1,2 @@
+PASS. WebKit didn't crash.
+

Added: trunk/LayoutTests/fast/images/image-load-event-crash.html (0 => 193969)


--- trunk/LayoutTests/fast/images/image-load-event-crash.html	                        (rev 0)
+++ trunk/LayoutTests/fast/images/image-load-event-crash.html	2015-12-11 19:49:56 UTC (rev 193969)
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<head>
+<style>
+img {
+    background-image: url("data:image/svg+xml,<svg></svg>");
+}
+</style>
+<script>
+function changeStyleAndLayout() {
+    document.body.style.height = '100px';
+    var forceLayout = document.body.offsetWidth;
+    if (window.testRunner)
+        testRunner.dumpAsText();
+}
+</script>
+</head>
+<body>
+    PASS. WebKit didn't crash.<br/>
+    <img _onload_="changeStyleAndLayout()" src=""
+</body>
+</html>
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to