Issue metadata
Sign in to add a comment
|
Text at top of Page Info Bubble dialog should be selectable |
||||||||||||||||||||||||
Issue descriptionVersion: 53.0.2758.0 Canary OS: 10.11 What steps will reproduce the problem? (1) Activate MacViews webui dialogs (2) Navigate to http://www.apple.com (3) Click the lock icon in the Omnibox What is the expected output? The bubble that appears says, "You connection to this site is not private.", and that text should be selectable. What do you see instead? The text is not selectable. The message and the site URL should both be selectable. Please use labels and text to provide additional information.
,
Jun 6 2016
The text in OS X alert panels is selectable (e.g. the Confirm Navigation alert in Chrome) - I think the fact that Safari's text is not selectable in that alert is not a bug per se, but it's not what you want. Selectable text in alerts is useful when users need to report errors - instead of transcribing the error or trying to remember it they can just copy/paste it. For this reason the text at the top of the OIB should be selectable, as should the text in HTTPAuth dialog (not sure why the text there is divided into two separate fields, but that is for another bug).
,
Jul 7 2016
Moving this nonessential bug to the next milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 21 2016
I looked into this a bunch. The basic problem here is that views::Label does not support text selection at all; there's no way to enable it, so we'll have to implement it. I filed https://crbug.com/630365 for that.
,
Aug 10 2016
,
Aug 11 2016
Some parts of views UI just use read only textfields with the same background as the dialog to emulated selectable Labels. See the Cookie info in the Collected Cookies dialog, in particular the value for fields like Name, Content etc. Code-https://cs.chromium.org/chromium/src/chrome/browser/ui/views/cookie_info_view.h?cl=GROK&gsn=SetEnabled&q=CookieInfoVie&sq=package:chromium&l=30. Though seems it has its own drawbacks. Placing the cursor within the textfield causes the cursor to blink. Maybe just subclassing Textfield can help with these though.
,
Aug 11 2016
Read-only textfields also lack multi-line support. Ellyjones, are you still trying to make labels selectable?
,
Aug 12 2016
Here's where this bug was: views::Label does not support text selection at all. views::Textfield does, and all the logic for selecting text with the mouse and so on is actually inside views::Textfield. However, you can't necessarily use views::Textfield as a drop-in replacement for views::Label, since views::Label supports multi-line text with wrapping and views::Textfield does not support multi-line text. For this particular use, we might be able to get away with a views::Textfield, as long as we can guarantee the text is one line. If it could be multiple lines, we need to either: 1) Implement selection support in views::Label, by extracting the code from views::Textfield and making it reusable. 2) Implement multi-line text support with wrapping in views::Textfield And then we need to implement multi-line text support in RenderTextMac either way. karandeepb@, want to take a look? :)
,
Aug 18 2016
So I read a bit about the state of the different RenderText implementations, Currently RenderTextMac (which we use for Labels) does not support text selection. So for MacViews, we would also need to implement selection for RenderTextMac. But I think the plan is to move to RenderTextHarfbuzz completely. So don't think we should be spending time working on RenderTextMac. We could change Labels to use RenderTextHarfbuzz, but I found a comment by tapted@ that there are the following blockers for it- "-We pop-up NSMenus on top of views::Labels in Comboboxes -- we need the layout to match, and NSMenu will never use Harfbuzz -I need to ensure the performance is comparable"
,
Aug 24 2016
A question for tapted@ once he returns: given that NSMenu text layout can't/won't ever match up with Harfbuzz, does this effectively mean we will never switch to Harfbuzz?
,
Sep 6 2016
(Standardizing terminology.)
,
Sep 6 2016
,
Sep 6 2016
,
Oct 14 2016
,
Oct 14 2016
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by tapted@chromium.org
, Jun 6 201653.6 KB
53.6 KB View Download
30.5 KB
30.5 KB View Download