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

Side by Side Diff: LayoutTests/svg/custom/click-internal-anchor-with-use-crash.xhtml

Issue 7807001: Merge 92809 - Crash when clicking an SVG <a> link to the local document (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/custom/click-internal-anchor-with-use-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <html> 2 <html>
3 <svg xmlns="http://www.w3.org/2000/svg" onload="onLoad()" xmlns:xlink="http: //www.w3.org/1999/xlink"> 3 <svg xmlns="http://www.w3.org/2000/svg" onload="onLoad()" xmlns:xlink="http: //www.w3.org/1999/xlink">
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function onLoad() 5 function onLoad()
6 { 6 {
7 clickLink(document.getElementById("link")); 7 clickLink(document.getElementById("link"));
8 8
9 if (window.layoutTestController) 9 if (window.layoutTestController)
10 layoutTestController.dumpAsText(); 10 layoutTestController.dumpAsText();
11 } 11 }
12 12
13 function clickLink(link) 13 function clickLink(link)
14 { 14 {
15 var event = document.createEvent("MouseEvents"); 15 var event = document.createEvent("MouseEvents");
16 event.initMouseEvent("click", true, true, window, 16 event.initMouseEvent("click", true, true, window,
17 0, 0, 0, 0, 0, 17 0, 0, 0, 0, 0,
18 false, false, false, false, 18 false, false, false, false,
19 0, null); 19 0, null);
20 link.dispatchEvent(event); 20 link.dispatchEvent(event);
21 } 21 }
22 </script> 22 </script>
23 <a id="link" xlink:href="#"> 23 <a id="link" xlink:href="#">
24 <text x="50" y="50">PASS if no crash</text> 24 <text x="50" y="50">PASS if no crash</text>
25 </a> 25 </a>
26 </svg> 26 </svg>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/click-internal-anchor-with-use-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698