Closed
Bug 1140340
Opened 10 years ago
Closed 10 years ago
Add Reader Mode menu item to the menu bar
Categories
(Firefox :: Menus, defect, P3)
Firefox
Menus
Tracking
()
People
(Reporter: dao, Assigned: jaws)
References
(Blocks 1 open bug)
Details
(Keywords: access, Whiteboard: [strings])
Attachments
(2 files, 3 obsolete files)
4.89 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
3.92 KB,
patch
|
jaws
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
As discussed in bug 1132678 comment 28 and below, having the icon in the location bar as the only entry point for reader mode seems suboptimal from an accessibility point of view. Seems like the most straightforward way would be to add something to the menu bar, e.g. View > Enter/Exit Reader View.
Comment 1•10 years ago
|
||
This doesn't address the issue of discoverability. Reader mode is not available for most pages, and the icon is a very clear indicator that it is. The menu item wouldn't be; the user would have to check and open the menu to figure out if it was available.
Comment 2•10 years ago
|
||
(likewise, in the case of non-sighted users, to verify if it was on or off)
Reporter | ||
Comment 3•10 years ago
|
||
This bug's goal isn't to remove the icon, it would stay there as an indicator.
Comment 4•10 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #3)
> This bug's goal isn't to remove the icon, it would stay there as an
> indicator.
You indicated in bug 1135351 comment 16 that you want to change it back to being an image. That will mean it is no longer accessible as an indicator.
Reporter | ||
Comment 5•10 years ago
|
||
Do you mean that the indicator being a toolbar button makes screen readers announce state changes?
Comment 6•10 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #5)
> Do you mean that the indicator being a toolbar button makes screen readers
> announce state changes?
Depends what you mean.
It won't automatically announce the button's being shown and hidden (see also e.g. bug 1067446 for context about "announcing things being hidden is hard") automatically. We'd need to use a live region for that, irrespective of the item being an image or a toolbarbutton.
The difference with using a toolbarbutton is that we:
a) can have it in the regular tab order, making it much easier to find and activate;
b) we could change its role to a toggle button that has state (pressed / not pressed), which I expect isn't possible with a plain image because its role is apparently taken from the binding (see the discussion in bug 1123771). That would correctly expose whether reader mode is enabled or not, which combined with (a) makes it much more usable.
Shameless plug: once we decide what to do here, we should fix bug 1123760, too.
Reporter | ||
Comment 7•10 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #6)
> The difference with using a toolbarbutton is that we:
> a) can have it in the regular tab order, making it much easier to find and
> activate;
So you need to hit Accel-L (not exactly an intuitive start), then Tab, carefully, maybe multiple times if there are other tabbable buttons. If you find the button, you can then hit Enter. If you don't find the button, you end up in the search bar. This doesn't seem ideal, and also makes moving focus from the location bar to the search bar more cumbersome.
With the menu item, if you know that you're not in reader mode and you want to enter it, you just hit Alt-V + R. The failure case is simpler here: if reader mode is unavailable, the command will fail just like for other menu items. Granted, if you want to know whether reader mode is active, you're back to a workflow that's roughly as cumbersome as dealing with the url bar icon.
> b) we could change its role to a toggle button that has state (pressed / not
> pressed), which I expect isn't possible with a plain image because its role
> is apparently taken from the binding (see the discussion in bug 1123771).
> That would correctly expose whether reader mode is enabled or not, which
> combined with (a) makes it much more usable.
We already expose this through the tooltip (Enter/Exit Reader View).
Comment 8•10 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #7)
> (In reply to :Gijs Kruitbosch from comment #6)
> > The difference with using a toolbarbutton is that we:
> > a) can have it in the regular tab order, making it much easier to find and
> > activate;
>
> So you need to hit Accel-L (not exactly an intuitive start), then Tab,
> carefully, maybe multiple times if there are other tabbable buttons. If you
> find the button, you can then hit Enter. If you don't find the button, you
> end up in the search bar. This doesn't seem ideal, and also makes moving
> focus from the location bar to the search bar more cumbersome.
>
> With the menu item, if you know that you're not in reader mode and you want
> to enter it, you just hit Alt-V + R. The failure case is simpler here: if
> reader mode is unavailable, the command will fail just like for other menu
> items. Granted, if you want to know whether reader mode is active, you're
> back to a workflow that's roughly as cumbersome as dealing with the url bar
> icon.
Hence my pointing out this loses discoverability - not the toggle functionality... I'm not sure why you claim accel-l is not discoverable - keyboard/AT users will likely already be using either that or F6 to shift focus between the location bar, search bar and content. The common case here is still that where the icon in question is the first one, which means one extra tab keypress beyond accel-l.
Another thing going for this bug is that the Menu Bar is a classic way to access every feature and function available in the browser.
This isn't about discoverability. Everything - whether it is actually used by the masses or not and whether it already has an assigned keyboard shortcut or not - should be present there. The Menu Bar is a go-to place when you can't find a certain button or feature, because it's not customizable (not out of the box, anyway) and therefore users cannot accidentally remove a menu entry from there.
I vote for adding a "Reader Mode" to the Menu Bar under the View submenu, because it doesn't make sense not to do it. Also, there isn't other way to enter the reader mode other than to click the button in the URL bar.
Updated•10 years ago
|
Priority: -- → P3
Updated•10 years ago
|
Whiteboard: [strings]
Comment 10•10 years ago
|
||
Michael: Thoughts on this? If we do want it, we need to sort out strings ASAP (label and access key).
I'm thinking we do need this menu item. And also that the button in the urlbar needs to be accessible regardless.
Flags: needinfo?(mmaslaney)
Reporter | ||
Comment 11•10 years ago
|
||
If string freeze is a problem, we could probably reuse readerView.enter and readerView.close from aboutReader.properties and omit access keys as a short-term hack for one release.
Comment 12•10 years ago
|
||
(In reply to Blair McBride [:Unfocused] (I don't read bugmail - needinfo? me!) from comment #10)
> Michael: Thoughts on this? If we do want it, we need to sort out strings
> ASAP (label and access key).
>
> I'm thinking we do need this menu item. And also that the button in the
> urlbar needs to be accessible regardless.
Regarding accessibility, I would suggest we add the "Enter" and "Exit Reader View" functionality to the menu bar. I would use the same tooltip strings as the menu item labels.
Flags: needinfo?(mmaslaney)
Comment 13•10 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #11)
> If string freeze is a problem, we could probably reuse readerView.enter and
> readerView.close from aboutReader.properties and omit access keys as a
> short-term hack for one release.
We have a l10n extension for the ReadingList project (which is aimed at 38), so I've been pre-landing strings.
(In reply to Michael Maslaney [:mmaslaney] (mmaslaney@mozilla.com) from comment #12)
> I would suggest we add the "Enter" and "Exit Reader
> View" functionality to the menu bar. I would use the same tooltip strings as
> the menu item labels.
This would break consistency - all other menu items use a checkbox for things that are toggled on/off.
(Only exception I know of is Full Screen on OSX, which changes its label to match platform conventions because its an OS feature on OSX)
Flags: needinfo?(mmaslaney)
Assignee | ||
Comment 14•10 years ago
|
||
Assignee | ||
Comment 15•10 years ago
|
||
Attachment #8580991 -
Flags: review?(florian)
Comment 16•10 years ago
|
||
Comment on attachment 8580989 [details] [diff] [review]
Patch without accesskeys
Review of attachment 8580989 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/modules/ReaderParent.jsm
@@ +119,5 @@
> if (browser.currentURI.spec.startsWith("about:reader")) {
> button.setAttribute("readeractive", true);
> button.hidden = false;
> button.setAttribute("tooltiptext", gStringBundle.GetStringFromName("readerView.close"));
> + command.setAttribute("label", gStringBundle.GetStringFromName("readerView.close"));
If it's only for 38 this is fine, but if we keep this code, could you please use a variable to avoid duplicating the gStringBundle.GetStringFromName call?
@@ +125,5 @@
> } else {
> button.removeAttribute("readeractive");
> button.setAttribute("tooltiptext", gStringBundle.GetStringFromName("readerView.enter"));
> button.hidden = !browser.isArticle;
> + command.setAttribute("label", gStringBundle.GetStringFromName("readerView.enter"));
Same here.
Attachment #8580989 -
Flags: review?(florian) → review+
Comment 17•10 years ago
|
||
Comment on attachment 8580991 [details] [diff] [review]
Patch adding accesskeys (for 39+)
Review of attachment 8580991 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/locales/en-US/chrome/global/aboutReader.properties
@@ +27,5 @@
> aboutReader.toolbar.share=Share
>
> aboutReader.footer.deleteThisArticle=Delete this article
>
> # Reader View toolbar button
I more or less expected the strings for the menuitem to be in a .dtd file, but given that we are updating the label dynamically, having them in a .properties file makes sense, and I guess keeping the accesskey close to the labels is better.
I think we should improve the localization note above these strings, as "Reader View toolbar button" is now misleading.
Attachment #8580991 -
Flags: review?(florian) → review+
Assignee | ||
Comment 18•10 years ago
|
||
Attachment #8580989 -
Attachment is obsolete: true
Attachment #8580995 -
Flags: review+
Assignee | ||
Comment 19•10 years ago
|
||
Attachment #8580991 -
Attachment is obsolete: true
Attachment #8580996 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(mmaslaney)
Assignee | ||
Comment 20•10 years ago
|
||
Blocks: 1132074
Iteration: --- → 38.3 - 23 Feb
Points: --- → 2
Flags: qe-verify-
Flags: firefox-backlog+
Updated•10 years ago
|
Iteration: 38.3 - 23 Feb → 39.2 - 23 Mar
Comment 21•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Updated•10 years ago
|
status-firefox39:
--- → fixed
Comment 22•10 years ago
|
||
Can we already ask for uplift to aurora on the patch for 38?
Flags: needinfo?(jaws)
Assignee | ||
Comment 23•10 years ago
|
||
Nothing more is needed for this patch to be uplifted, but it depends on bug 1140345 and it's predecessors to be uplifted first.
Approval Request Comment
[Feature/regressing bug #]: reader mode
[User impact if declined]: no accessible way to open the reader mode
[Describe test coverage new/current, TreeHerder]: manual testing
[Risks and why]: none expected
[String/UUID change made/needed]: none
Attachment #8580995 -
Attachment is obsolete: true
Flags: needinfo?(jaws)
Attachment #8582482 -
Flags: review+
Attachment #8582482 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8582482 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 24•10 years ago
|
||
status-firefox38:
--- → fixed
Comment 25•10 years ago
|
||
BTW: readerView.accesskey should not be shared between readerView.enter and readerView.close
Assignee | ||
Comment 26•10 years ago
|
||
(In reply to Stefan Plewako [:stef] from comment #25)
> BTW: readerView.accesskey should not be shared between readerView.enter and
> readerView.close
Thank you for your comment. I've filed bug 1149179 and hope to get it in to 39 before it uplifts to Aurora.
You need to log in
before you can comment on or make changes to this bug.
Description
•