Closed
Bug 1132925
Opened 10 years ago
Closed 10 years ago
Don't set preferences in AboutReader.jsm (so that it can run in the child process)
Categories
(Toolkit :: Reader Mode, defect)
Toolkit
Reader Mode
Tracking
()
RESOLVED
FIXED
mozilla38
| Tracking | Status | |
|---|---|---|
| firefox38 | --- | fixed |
People
(Reporter: Margaret, Assigned: abdelrahman, Mentored)
References
Details
(Whiteboard: [lang=js][good next bug])
Attachments
(1 file, 3 obsolete files)
|
5.96 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
This is needed for bug 1129106. To do this, we should pass messages to the parent process to set reader mode prefs, rather than do it directly in AboutReader.jsm.
| Reporter | ||
Updated•10 years ago
|
Mentor: margaret.leibovic
Whiteboard: [lang=js][good next bug]
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → a.ahmed1026
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8564634 -
Flags: review?(margaret.leibovic)
| Reporter | ||
Comment 2•10 years ago
|
||
Comment on attachment 8564634 [details] [diff] [review]
rev 1 - set reader mode prefs through parent process
Review of attachment 8564634 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the slow review, this looks good! You'll just need to update your tree and rebase, since some changes have landed that make your patch fail to apply.
Attachment #8564634 -
Flags: review?(margaret.leibovic) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8564634 -
Attachment is obsolete: true
Attachment #8567221 -
Flags: review?(margaret.leibovic)
| Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8567221 [details] [diff] [review]
rev 2 - set reader mode prefs through parent process
Review of attachment 8567221 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good! I just have one small nit.
::: browser/modules/ReaderParent.jsm
@@ +28,5 @@
> "Reader:Share",
> "Reader:SystemUIVisibility",
> "Reader:UpdateReaderButton",
> + "Reader:setIntPref",
> + "Reader:setCharPref",
Nit: I think we should capitialize Set here, to be consistent with the other messages, e.g. "Reader:SetIntPref".
Attachment #8567221 -
Flags: review?(margaret.leibovic) → review+
| Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8567221 -
Attachment is obsolete: true
Attachment #8567298 -
Flags: review?(margaret.leibovic)
| Reporter | ||
Comment 6•10 years ago
|
||
Comment on attachment 8567298 [details] [diff] [review]
rev 3 - set reader mode prefs through parent process
Review of attachment 8567298 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks!
Attachment #8567298 -
Flags: review?(margaret.leibovic) → review+
| Reporter | ||
Comment 7•10 years ago
|
||
| Reporter | ||
Comment 8•10 years ago
|
||
Gah, I failed at reviewing this patch and had to back it out:
https://hg.mozilla.org/integration/fx-team/rev/d5cf77595feb
We also need to update Firefox for Android's Reader.js file to handle these messages on mobile:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/Reader.js
And we register the listeners in browser.js here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js#173
Can you update the patch to do this? I can test for you on Android if you don't have a mobile build environment set up.
| Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8567298 [details] [diff] [review]
rev 3 - set reader mode prefs through parent process
Review of attachment 8567298 [details] [diff] [review]:
-----------------------------------------------------------------
We need to fix this for mobile, as mentioned in my last comment.
Attachment #8567298 -
Flags: review+ → review-
| Assignee | ||
Comment 10•10 years ago
|
||
(In reply to :Margaret Leibovic from comment #8)
> Can you update the patch to do this? I can test for you on Android if you
> don't have a mobile build environment set up.
Currently I don't have a mobile build environment so please test it on Android.
Attachment #8567298 -
Attachment is obsolete: true
Attachment #8567377 -
Flags: review?(margaret.leibovic)
| Reporter | ||
Comment 11•10 years ago
|
||
Comment on attachment 8567377 [details] [diff] [review]
rev 4 - set reader mode prefs through parent process
Review of attachment 8567377 [details] [diff] [review]:
-----------------------------------------------------------------
Confirmed this works on mobile. Thanks for the quick update, and I'm sorry about missing this the first time!
Attachment #8567377 -
Flags: review?(margaret.leibovic) → review+
| Reporter | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 12•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [lang=js][good next bug] → [lang=js][good next bug][fixed-in-fx-team]
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [lang=js][good next bug][fixed-in-fx-team] → [lang=js][good next bug]
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•