Closed Bug 881576 Opened 11 years ago Closed 11 years ago

Convert storage quota notifications test to use in-content preferences

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 32

People

(Reporter: markh, Assigned: peregrino)

References

Details

(Whiteboard: [mentor=markh] [diamond] p=0 s=it-32c-31a-30b.3 [qa-])

Attachments

(1 file, 1 obsolete file)

Bug 857868 introduces a new test for storage quota notifications, which ensures the correct Preferences tab is opened when the notification is clicked on. That bug should gracefully detect when in-content prefs are enabled but will then hit some "todo" calls instead of actually checking the correct preference is visible. This bug is to track replacing these todo() calls in browser/base/content/test/browser_offlineQuotaNotification.js with appropriate checks.
In theory, the fix should be to replace the single todo call (there aren't multiple calls as I implied in comment 0) with: gBrowser.addEventListener("Initialized", function PrefInit() { gBrowser.removeEventListener("Initialized", PrefInit, true); checkPreferences(gBrowser.contentWindow); }, true);
Whiteboard: p=0
Whiteboard: p=0 → p=0 [mentor=markh]
Whiteboard: p=0 [mentor=markh] → [mentor=markh] p=0
Whiteboard: [mentor=markh] p=0 → [mentor=markh] p=2
No longer blocks: fxdesktopbacklog
Flags: firefox-backlog+
Unassigned after triage, flagging as diamond. Markh, are you still willing to mentor this bug?
Flags: needinfo?(mhammond)
Whiteboard: [mentor=markh] p=2 → [mentor=markh] p=2 [diamond]
Whiteboard: [mentor=markh] p=2 [diamond] → [mentor=markh] [diamond] p=2
(In reply to Mike Hoye [:mhoye] from comment #2) > Unassigned after triage, flagging as diamond. Markh, are you still willing > to mentor this bug? Sure!
Flags: needinfo?(mhammond)
I think I can take this one. Seems a good thing to get back on track :)
Hernan, I think you should go for it.
Assignee: mhammond → colmeiro
Attached patch proposed patch (obsolete) (deleted) — Splinter Review
I'm attaching a proposed patch for this, let me know if it needs polishing. Jared, Mark said to ask you for review as he never touched the new in-content preferences, but feel free to push it back to him.
Attachment #8426809 - Flags: review?(jaws)
Comment on attachment 8426809 [details] [diff] [review] proposed patch Review of attachment 8426809 [details] [diff] [review]: ----------------------------------------------------------------- This looks good. I double-checked that gBrowser.selectedBrowser would be OK to use right after clicking the popup notification's button. ::: browser/base/content/test/general/browser_offlineQuotaNotification.js @@ +36,5 @@ > }); > }); > } > +// Same as the other one, but for in-content preferences > +function checkIncontentPreferences(win) { nit, checkInContentPreferences (capital C) (here and below) @@ +42,5 @@ > + let doc = win.document; > + let tab = doc.getElementById("advancedPrefs").selectedTab.id; > + is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded"); > + is(sel, "paneAdvanced", "Advanced pane was selected"); > + is(tab,"networkTab", "Network tab is selected"); nit, space after ','
Attachment #8426809 - Flags: review?(jaws) → review+
Attached patch addressed comments (deleted) — Splinter Review
Attachment #8426809 - Attachment is obsolete: true
Keywords: checkin-needed
Whiteboard: [mentor=markh] [diamond] p=2 → [mentor=markh] [diamond] p=2[fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [mentor=markh] [diamond] p=2[fixed-in-fx-team] → [mentor=markh] [diamond] p=2
Target Milestone: --- → Firefox 32
Whiteboard: [mentor=markh] [diamond] p=2 → [mentor=markh] [diamond] p=0 s=it-32c-31a-30b.2 [qa?]
Whiteboard: [mentor=markh] [diamond] p=0 s=it-32c-31a-30b.2 [qa?] → [mentor=markh] [diamond] p=0 s=it-32c-31a-30b.3 [qa?]
Whiteboard: [mentor=markh] [diamond] p=0 s=it-32c-31a-30b.3 [qa?] → [mentor=markh] [diamond] p=0 s=it-32c-31a-30b.3 [qa-]
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: