RESOLVED FIXED 63530
Add a test for canceling selectstart when a word is selected by right click
https://bugs.webkit.org/show_bug.cgi?id=63530
Summary Add a test for canceling selectstart when a word is selected by right click
Ryosuke Niwa
Reported 2011-06-28 06:26:53 PDT
On Safari 5, you can select a word on http://www.nakedvalue.com/ by right clicking even though the page has document.body.onselectstart = function () { return false; } On ToT WebKit this bug no longer exists. We should add a test to ensure this does not regress.
Attachments
adds a regression test (3.01 KB, patch)
2011-06-28 08:07 PDT, Ryosuke Niwa
darin: review+
Ryosuke Niwa
Comment 1 2011-06-28 08:07:05 PDT
Created attachment 98923 [details] adds a regression test
Darin Adler
Comment 2 2011-06-28 08:09:13 PDT
Comment on attachment 98923 [details] adds a regression test View in context: https://bugs.webkit.org/attachment.cgi?id=98923&action=review > LayoutTests/fast/events/selectstart-prevent-selection-on-right-click.html:17 > + document.writeln('This test requires eventSender'); A little strange to use writeln, since it just puts in a newline that will be collapsed out.
Ryosuke Niwa
Comment 3 2011-06-28 08:09:16 PDT
Ryosuke Niwa
Comment 4 2011-06-28 08:10:46 PDT
(In reply to comment #2) > A little strange to use writeln, since it just puts in a newline that will be collapsed out. I guess I should be doing #test.textContent = x. Will fix along and add it to the skipped list of mac-wk2.
Note You need to log in before you can comment on or make changes to this bug.