Closed
Bug 1371801
Opened 7 years ago
Closed 7 years ago
Detect if a page can be viewed in reader mode
Categories
(WebExtensions :: Untriaged, enhancement, P5)
WebExtensions
Untriaged
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1381992
People
(Reporter: andy+bugzilla, Assigned: bsilverberg)
References
(Blocks 1 open bug)
Details
(Whiteboard: [design-decision-approved] triaged)
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Details |
It would be nice if we could detect if a page has reader mode available or not, since not all pages have this. Perhaps we could add this to the tab API or maybe in the tabs.Tab object.
Updated•7 years ago
|
Priority: -- → P5
Whiteboard: [design-decision-needed] triaged
Comment 1•7 years ago
|
||
Hi Andy, I've added this to the agenda for the June 20 WebExtension APIs triage meeting.
Wiki: https://wiki.mozilla.org/Add-ons/Contribute/Triage#Next_Meeting
Agenda: https://docs.google.com/document/d/1s2j85VfYKTDftppFU-K7pgRs6sEuMTHVXqf3RL5iYvs/edit#
Updated•7 years ago
|
Whiteboard: [design-decision-needed] triaged → [design-decision-approved] triaged
Assignee | ||
Comment 2•7 years ago
|
||
The internal function that does this in ReaderMode.jsm is called isProbablyReaderable [1], so I would be inclined to use this as the name for our API property as well. It implies that document is probably able to be put into reader mode, but does not guarantee it. It makes sense to make this a property of the Tab object.
Any comments on this?
[1] http://searchfox.org/mozilla-central/rev/cd82cacec2cf734768827ff85ba2dba90a534c5e/toolkit/components/reader/ReaderMode.jsm#184
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → bob.silverberg
Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8906017 [details]
Bug 1371801 - Detect if a page can be viewed in reader mode,
https://reviewboard.mozilla.org/r/177770/#review182846
Lets wait to land until we have a little more reader support.
Attachment #8906017 -
Flags: review?(mixedpuppy)
Assignee | ||
Comment 5•7 years ago
|
||
Duping this to bug 1381992 so I can land everything at once.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•