Title: [153982] trunk/LayoutTests
- Revision
- 153982
- Author
- [email protected]
- Date
- 2013-08-12 23:38:55 -0700 (Mon, 12 Aug 2013)
Log Message
Fix null dereference in HTMLAnchorElement::sendPings when frame is not attached to a page
https://bugs.webkit.org/show_bug.cgi?id=119716
Reviewed by Darin Adler.
Add a regression test for r153975.
* fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt: Added.
* fast/html/detach-frame-while-clicking-on-anchor-with-ping.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (153981 => 153982)
--- trunk/LayoutTests/ChangeLog 2013-08-13 06:26:45 UTC (rev 153981)
+++ trunk/LayoutTests/ChangeLog 2013-08-13 06:38:55 UTC (rev 153982)
@@ -1,3 +1,15 @@
+2013-08-12 Ryosuke Niwa <[email protected]>
+
+ Fix null dereference in HTMLAnchorElement::sendPings when frame is not attached to a page
+ https://bugs.webkit.org/show_bug.cgi?id=119716
+
+ Reviewed by Darin Adler.
+
+ Add a regression test for r153975.
+
+ * fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt: Added.
+ * fast/html/detach-frame-while-clicking-on-anchor-with-ping.html: Added.
+
2013-08-12 Zan Dobersek <[email protected]>
ASSERTION FAILED: type() == Percent in WebCore::Length::percent
Added: trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt (0 => 153982)
--- trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt 2013-08-13 06:38:55 UTC (rev 153982)
@@ -0,0 +1,4 @@
+This tests detaching a frame while clicking on an anchor element with ping attribute in the frame.
+WebKit should not crash.
+
+PASS. WebKit did not crash.
Added: trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html (0 => 153982)
--- trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html (rev 0)
+++ trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html 2013-08-13 06:38:55 UTC (rev 153982)
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p id="description">This tests detaching a frame while clicking on an anchor element with ping attribute in the frame.<br>
+WebKit should not crash.</p>
+<script>
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var iframe = document.createElement('iframe');
+document.body.appendChild(iframe);
+var anchorElement = iframe.contentDocument.createElement('a');
+anchorElement.setAttribute('href', '_javascript_:parent.remove(event);');
+anchorElement.setAttribute('ping', 'https://webkit.org/');
+iframe.contentDocument.body.appendChild(anchorElement);
+
+function remove(event) {
+ iframe.parentNode.removeChild(iframe);
+ event.preventDefault();
+}
+
+anchorElement.click();
+document.write('PASS. WebKit did not crash.');
+
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes