Bug 157032 - Double-click to select last word on line selects text on next and previous lines.
Summary: Double-click to select last word on line selects text on next and previous li...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari 9
Hardware: Mac OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-26 07:10 PDT by Steve Tibbett
Modified: 2016-05-04 13:59 PDT (History)
4 users (show)

See Also:


Attachments
Screenshot showing text selection error. (182.21 KB, image/png)
2016-04-26 07:10 PDT, Steve Tibbett
no flags Details
Reduction (380 bytes, text/html)
2016-05-03 13:38 PDT, Myles C. Maxfield
no flags Details
Edge (13.15 KB, image/png)
2016-05-03 13:47 PDT, Myles C. Maxfield
no flags Details
Chrome (164.88 KB, image/png)
2016-05-03 13:47 PDT, Myles C. Maxfield
no flags Details
Screenshot from Chrome (148.62 KB, image/png)
2016-05-04 04:42 PDT, Steve Tibbett
no flags Details
Screenshot from Edge (114.08 KB, image/png)
2016-05-04 04:48 PDT, Steve Tibbett
no flags Details
Screenshot from Firefox (188.24 KB, image/png)
2016-05-04 09:56 PDT, Myles C. Maxfield
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Tibbett 2016-04-26 07:10:29 PDT
Created attachment 277365 [details]
Screenshot showing text selection error.

Navigate to this URL:

https://mozilla.github.io/pdf.js/web/viewer.html

And double-click on the word "Languages" in the title.

In Safari (and Chrome), word Languages is selected, but so is the word "Dynamic" from the previous line, and the name "Andreas" from the following line.

Screenshot attached.

This affects any page that uses the Mozilla pdf.js library.
Comment 1 Myles C. Maxfield 2016-05-03 13:15:36 PDT
The PDF viewer renders the PDF to canvas, but places invisible elements on top of each word (presumably for selection / a11y)
Comment 2 Myles C. Maxfield 2016-05-03 13:38:22 PDT
Created attachment 278015 [details]
Reduction
Comment 3 Myles C. Maxfield 2016-05-03 13:47:38 PDT
Created attachment 278016 [details]
Edge
Comment 4 Myles C. Maxfield 2016-05-03 13:47:50 PDT
Created attachment 278017 [details]
Chrome
Comment 5 Steve Tibbett 2016-05-04 04:42:49 PDT
Created attachment 278075 [details]
Screenshot from Chrome
Comment 6 Steve Tibbett 2016-05-04 04:48:08 PDT
Created attachment 278076 [details]
Screenshot from Edge
Comment 7 Myles C. Maxfield 2016-05-04 09:56:29 PDT
Created attachment 278099 [details]
Screenshot from Firefox
Comment 8 Ryosuke Niwa 2016-05-04 13:59:30 PDT
Ah, this appears to be a classic bug we have which is that we don't break words at the end of block element boundary.  I think there's an old bug about it somewhere...