Closed
Bug 1134446
Opened 9 years ago
Closed 9 years ago
Automatically open the ReadingList sidebar the first time ReaderMode is used
Categories
(Toolkit :: Reader Mode, defect, P3)
Toolkit
Reader Mode
Tracking
()
People
(Reporter: Unfocused, Assigned: capella)
References
Details
Attachments
(1 file, 4 obsolete files)
7.58 KB,
patch
|
Unfocused
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
To help introduce ReadingList, we want to automatically open the sidebar the first time ReaderMode is used (and ReadingList is enabled). This should only happen the first time. It's not clear whether the sidebar should auto-close when ReaderMode is exited.
Flags: qe-verify+
Flags: firefox-backlog+
Reporter | ||
Comment 1•9 years ago
|
||
Michael: Thoughts on auto-closing the sidebar? I guess one difficulty here if we auto-closed is we'd need to keep track of when a tab is closed, or a tab is switched to. Otherwise things would feel unpredictable. ie: * open readermode * sidebar auto-opens * switch to another tab * browser around for half an hour with the sidebar open * switch to original readermode tab * exit readermode * sidebar suddenly closes by itself - wtf?!
Flags: needinfo?(mmaslaney)
Assignee | ||
Comment 2•9 years ago
|
||
First hack. Doesn't address auto-close.
Assignee | ||
Comment 3•9 years ago
|
||
Rebased here too.
Attachment #8566369 -
Attachment is obsolete: true
Attachment #8566369 -
Flags: review?(bmcbride)
Attachment #8566913 -
Flags: review?(bmcbride)
Assignee | ||
Comment 4•9 years ago
|
||
rebased, new test updated :-) Sorry for bug-spam
Attachment #8566913 -
Attachment is obsolete: true
Attachment #8566913 -
Flags: review?(bmcbride)
Attachment #8567641 -
Flags: review?(bmcbride)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8567641 [details] [diff] [review] bug1134446.diff Let's wait here until bug 1133489 finalizes the base test, so I don't have to rebase again.
Attachment #8567641 -
Flags: review?(bmcbride)
My inclination is to leave it open, that way we communicate to the user that the Reading List is not dependent on the Reader View.
Flags: needinfo?(mmaslaney)
Assignee | ||
Comment 7•9 years ago
|
||
Rebased, tested.
Attachment #8567641 -
Attachment is obsolete: true
Attachment #8572062 -
Flags: review?(bmcbride)
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Priority: P2 → P3
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8572062 [details] [diff] [review] bug1134446.diff Review of attachment 8572062 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/browser-readinglist.js @@ +184,5 @@ > } > + > + case "ReadingList:ShowIntro": { > + if (this.enabled && !Services.prefs.getBoolPref("reader.has_shown_readinglist")) { > + Services.prefs.setBoolPref("reader.has_shown_readinglist", true); Doesn't seem right for this to be setting reader.* prefs. Especially given this code doesn't necessarily know this came from ReaderView. And also, this will eventually kick off a ReadingList oriented tour (see mockup linked to in bug 1131112). So how about "browser.readinglist.introShown"? Also, nit: use |Preferences.get("pref-name", defaultValue)|, and avoid needing a default pref set in firefox.js ::: browser/base/content/test/general/browser_readerMode.js @@ +46,5 @@ > is(gURLBar.value, readerUrl, "gURLBar value is about:reader URL"); > is(gURLBar.textValue, url.substring("http://".length), "gURLBar is displaying original article URL"); > > + // Readinglist button should be present, and status should be automatically > + // "opened", as requested in bug bug1134446. It's not safe to assume the relevant pref is set here - you don't know what other tests have done. Safest for the test to set it to a known state first. Also: Don't need to reference bugs - that's what blame/annotate is for.
Attachment #8572062 -
Flags: review?(bmcbride) → review-
Reporter | ||
Comment 9•9 years ago
|
||
(In reply to Blair McBride [:Unfocused] (I don't read bugmail - needinfo? me!) from comment #8) > It's not safe to assume the relevant pref is set here - you don't know what > other tests have done. Oh, in fact, this behaviour may mess up other tests - best to disable it by default in the test harness. Just need to add the pref to testing/profiles/prefs_general.js such that it won't automatically open, except for this test.
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8572062 -
Attachment is obsolete: true
Attachment #8576445 -
Flags: review?(bmcbride)
Updated•9 years ago
|
QA Contact: andrei.vaida
Updated•9 years ago
|
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8576445 [details] [diff] [review] bug1134446.diff Review of attachment 8576445 [details] [diff] [review]: ----------------------------------------------------------------- Bit-rotted ... back-burner-ing this for now.
Attachment #8576445 -
Flags: review?(bmcbride)
Reporter | ||
Comment 12•9 years ago
|
||
Comment on attachment 8576445 [details] [diff] [review] bug1134446.diff Review of attachment 8576445 [details] [diff] [review]: ----------------------------------------------------------------- Sorry I didn't get to this - I was off on sick leave for a bit. r+ on the assumption that the bitrot doesn't mean you end up rewriting it ;)
Attachment #8576445 -
Flags: review+
Assignee | ||
Comment 13•9 years ago
|
||
Glad you're back! Bitrot caused some minor test/general/browser_readerMode.js rebase mainly. Passes locally and on TRY ... https://treeherder.mozilla.org/#/jobs?repo=try&revision=65f92c424f46 ... so I'll carry over the r+.
Assignee | ||
Comment 14•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/8fd82fc12d25
Comment 15•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8fd82fc12d25
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Updated•9 years ago
|
Iteration: --- → 39.3 - 30 Mar
Comment 16•9 years ago
|
||
Verified fixed on Aurora 39.0a2 (2015-04-02), using Ubuntu 14.04 (x64), Windows 7 (x64) and Mac OS X 10.9.5.
Status: RESOLVED → VERIFIED
Comment 18•9 years ago
|
||
Comment on attachment 8576445 [details] [diff] [review] bug1134446.diff Approval Request Comment [Feature/regressing bug #]: needed for reading list uitour [User impact if declined]: reading list uitour is somewhat hampered [Describe test coverage new/current, TreeHerder]: automated testing, landed on m-c [Risks and why]: none expected [String/UUID change made/needed]: none
Attachment #8576445 -
Flags: approval-mozilla-beta?
Updated•9 years ago
|
status-firefox38:
--- → affected
Updated•9 years ago
|
Attachment #8576445 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 19•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/887be7f12f1e
Flags: in-testsuite+
Comment 20•9 years ago
|
||
Verified fixed on Beta 38.0b2-build1 (20150406174117) as well, using Windows 7 (x64), Ubuntu 14.04 (x64) and Mac OS X 10.9.5.
You need to log in
before you can comment on or make changes to this bug.
Description
•