subview-click-assertion.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en">
  4. <head>
  5. </head>
  6. <body>
  7. <p><b>BUG ID:</b> <a href="http://bugs.webkit.org/show_bug.cgi?id=9984">Bugzilla bug 9984</a> ASSERTION FAILURE: _private->mouseDownEvent != nil (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])</p>
  8. <p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b>
  9. Open this test in a new Safari window. In the new window, click once on the text &ldquo;Click me&rdquo;. Do not click
  10. anywhere else in the window before clicking the text.
  11. </p>
  12. <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
  13. The text will be deselected.
  14. </p>
  15. <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
  16. An assertion failure will occur.
  17. </p>
  18. <iframe id="frame"></iframe>
  19. <script>
  20. var win = window['frame'];
  21. var doc = win.document;
  22. doc.write("<p id='target'>Click me</p>");
  23. var target = doc.getElementById('target');
  24. win.getSelection().setBaseAndExtent(target, 0, target, 1);
  25. </script>
  26. </body>
  27. </html>