Closed
Bug 867875
Opened 12 years ago
Closed 12 years ago
Add the pref to switch reader mode
Categories
(Firefox for Android Graveyard :: Reader View, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: tetsuharu, Assigned: tetsuharu)
References
Details
Attachments
(1 file, 3 obsolete files)
5.03 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
After Bug 852417, we can enable reader mode on low memory platform.
Now, I propose that we introduce a new pref to switch reader mode on general.
I think to add these change:
* Add the pref to toggle reader mode.
* Toggle parse-on-load reader mode.
* Toggle "Add reading list" context menu.
* Change the name "reader.force_allow" for compatibilities about above changes.
Assignee | ||
Comment 1•12 years ago
|
||
This patch includes:
* Toggle parse-on-load reader mode.
* Change the name "reader.force_allow" for compatibilities about above changes.
Attachment #745078 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 2•12 years ago
|
||
And I'm making patches which adds the pref to toggle "Add reading list" context menu.
Assignee | ||
Comment 3•12 years ago
|
||
I think we need to clean up & make these part smart in the future...
Attachment #745634 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #745635 -
Flags: review?(mark.finkle)
Comment 5•12 years ago
|
||
Comment on attachment 745078 [details] [diff] [review]
part1: Add the pref to toggle reader mode parsing on load
Looks good to me. The pref observer might not be strictly needed, but it's a nice convenience.
Attachment #745078 -
Flags: review?(mark.finkle) → review+
Comment 6•12 years ago
|
||
Comment on attachment 745078 [details] [diff] [review]
part1: Add the pref to toggle reader mode parsing on load
> init: function Reader_init() {
>+ Services.prefs.addObserver("reader.", this, false);
Maybe this should be "reader.parse-on-load." since that's all we look for in observe
> uninit: function Reader_uninit() {
>+ Services.prefs.removeObserver("reader.", this);
Same
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #5)
> Comment on attachment 745078 [details] [diff] [review]
> part1: Add the pref to toggle reader mode parsing on load
>
> Looks good to me. The pref observer might not be strictly needed, but it's a
> nice convenience.
Thank you review! I intend to reduce the number of times checking the pref by the pref observer. This pref will not change many times. So it's better that caching the value.
(In reply to Mark Finkle (:mfinkle) from comment #6)
> Comment on attachment 745078 [details] [diff] [review]
> part1: Add the pref to toggle reader mode parsing on load
>
> > init: function Reader_init() {
>
> >+ Services.prefs.addObserver("reader.", this, false);
>
> Maybe this should be "reader.parse-on-load." since that's all we look for in
> observe
>
> > uninit: function Reader_uninit() {
> >+ Services.prefs.removeObserver("reader.", this);
>
> Same
These points focuses part.3 ( attachment 745635 [details] [diff] [review] ).
Comment 8•12 years ago
|
||
I need to think about part 2 and part 3 a bit more. I see disabling the menus as a different issue, and I'm not sure we really need to support it. We don't have prefs for disabling any other menus. Being able to enable/disable the reader-on-pageload is separate (and different) from controlling the context menu as well.
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #8)
> I need to think about part 2 and part 3 a bit more. I see disabling the
> menus as a different issue, and I'm not sure we really need to support it.
> We don't have prefs for disabling any other menus. Being able to
> enable/disable the reader-on-pageload is separate (and different) from
> controlling the context menu as well.
At first, I had seemed that reader mode are optional features for a current browser. Thus I proposed the patch part 2&3. But I agree your point that is we need to think about it more.
I'll rebase part 1, and file a new bug for thinking about part2&3.
Assignee | ||
Comment 10•12 years ago
|
||
Rebase the patch.
Attachment #745078 -
Attachment is obsolete: true
Attachment #745634 -
Attachment is obsolete: true
Attachment #745635 -
Attachment is obsolete: true
Attachment #745634 -
Flags: review?(mark.finkle)
Attachment #745635 -
Flags: review?(mark.finkle)
Attachment #745784 -
Flags: review?(mark.finkle)
Updated•12 years ago
|
Attachment #745784 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 11•12 years ago
|
||
Keywords: checkin-needed
Comment 12•12 years ago
|
||
Assignee: nobody → saneyuki.s.snyk
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•