Closed Bug 1177156 Opened 9 years ago Closed 9 years ago

Provide a button to re-enable Tracking Protection in about:privatebrowsing

Categories

(Firefox :: Private Browsing, defect, P1)

defect
Points:
3

Tracking

()

VERIFIED FIXED
Firefox 42
Iteration:
42.2 - Jul 27
Tracking Status
firefox42 --- verified

People

(Reporter: MattN, Assigned: Paolo)

References

Details

(Whiteboard: [fxprivacy] [strings] [campaign])

Attachments

(1 file)

Add a link to about:privatebrowsing so users can disable tracking protection in private browsing.

Depending on the about page flags we may not be able to directly link to the page and instead could use UITour (after whitelisting the page) for this.
Flags: firefox-backlog+
Hi Matt, is Bug 1177156 related to any of the user stories?
Flags: needinfo?(MattN+bmo)
Yep, bug 1175014, not sure how I missed that.
Blocks: 1175014
Flags: needinfo?(MattN+bmo)
Rank: 16
Priority: -- → P1
Flags: qe-verify+
Taking this bug as well, since it's closely related to bug 1177152.
Assignee: nobody → paolo.mozmail
Iteration: --- → 42.1 - Jul 13
Status: NEW → ASSIGNED
Depends on: 1179850
QA Contact: mwobensmith
Iteration: 42.1 - Jul 13 → 42.2 - Jul 27
Repurposing this bug to handle the case described in bug 1177152 comment 33:

https://www.dropbox.com/s/tg3ux7iss856k7a/TP-disabled-built-in-page?dl=0
Summary: Add a link to privacy preferences from about:privatebrowsing → Differentiate tour and preferences link in about:privatebrowsing based on whether TP is enabled
Bug 1177156 - Differentiate tour and preferences link in about:privatebrowsing based on whether TP is enabled. r=ttaubert
Attachment #8634694 - Flags: review?(ttaubert)
Can you ping me when you're ready to start on this because I want to clean up the visual design of this page since we decided on this so quickly yesterday...
(In reply to agrigas from comment #6)
> Can you ping me when you're ready to start on this because I want to clean
> up the visual design of this page since we decided on this so quickly
> yesterday...

Yesterday's mockup is already implemented, but it will be easy to make changes if you want to share a cleaned up design!
(In reply to :Paolo Amadini from comment #7)
> (In reply to agrigas from comment #6)
> > Can you ping me when you're ready to start on this because I want to clean
> > up the visual design of this page since we decided on this so quickly
> > yesterday...
> 
> Yesterday's mockup is already implemented, but it will be easy to make
> changes if you want to share a cleaned up design!

Ok I'll post something in the morning since I need to review it today with a visual designer...
Comment on attachment 8634694 [details]
MozReview Request: Bug 1177156 - Provide a button to re-enable Tracking Protection in about:privatebrowsing. r=ttaubert

https://reviewboard.mozilla.org/r/13433/#review12127

LGTM, but waiting for Ash to get back with the final design.
Attachment #8634694 - Flags: review?(ttaubert)
(In reply to Tim Taubert [:ttaubert] from comment #9)
> Comment on attachment 8634694 [details]
> MozReview Request: Bug 1177156 - Differentiate tour and preferences link in
> about:privatebrowsing based on whether TP is enabled. r=ttaubert
> 
> https://reviewboard.mozilla.org/r/13433/#review12127
> 
> LGTM, but waiting for Ash to get back with the final design.

Here's the final design. It may need copy review but Matej is still out so will have to do for now.
https://www.dropbox.com/s/tg3ux7iss856k7a/TP-disabled-built-in-page?dl=0
(In reply to agrigas from comment #10)
> Here's the final design. It may need copy review but Matej is still out so
> will have to do for now.
> https://www.dropbox.com/s/tg3ux7iss856k7a/TP-disabled-built-in-page?dl=0

Hm, so the "Turn on Tracking Protection" button would flip the preference rather than going to the Privacy Preferences, and the the user would see the version of the page with the "See what's new" button again?
(In reply to :Paolo Amadini from comment #11)
> (In reply to agrigas from comment #10)
> > Here's the final design. It may need copy review but Matej is still out so
> > will have to do for now.
> > https://www.dropbox.com/s/tg3ux7iss856k7a/TP-disabled-built-in-page?dl=0
> 
> Hm, so the "Turn on Tracking Protection" button would flip the preference
> rather than going to the Privacy Preferences, and the the user would see the
> version of the page with the "See what's new" button again?

Yes. We want to encourage people to use this feature - its something Firefox is recommended is the best private browsing experience so having it easy to turn back on, in case it got turned off accidentally or by someone else using your browser, we think is important.
(In reply to agrigas from comment #12)
> Yes. We want to encourage people to use this feature - its something Firefox
> is recommended is the best private browsing experience so having it easy to
> turn back on, in case it got turned off accidentally or by someone else
> using your browser, we think is important.

Okay, thanks for explaining the rationale!
Comment on attachment 8634694 [details]
MozReview Request: Bug 1177156 - Provide a button to re-enable Tracking Protection in about:privatebrowsing. r=ttaubert

Bug 1177156 - Provide a button to re-enable Tracking Protection in about:privatebrowsing. r=ttaubert
Attachment #8634694 - Attachment description: MozReview Request: Bug 1177156 - Differentiate tour and preferences link in about:privatebrowsing based on whether TP is enabled. r=ttaubert → MozReview Request: Bug 1177156 - Provide a button to re-enable Tracking Protection in about:privatebrowsing. r=ttaubert
Attachment #8634694 - Flags: review?(ttaubert)
Updated to provide the button and added a test for it, should be ready for review.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=08c37be952f5
Summary: Differentiate tour and preferences link in about:privatebrowsing based on whether TP is enabled → Provide a button to re-enable Tracking Protection in about:privatebrowsing
Attachment #8634694 - Flags: review?(ttaubert) → review+
Comment on attachment 8634694 [details]
MozReview Request: Bug 1177156 - Provide a button to re-enable Tracking Protection in about:privatebrowsing. r=ttaubert

https://reviewboard.mozilla.org/r/13433/#review12217

r=me with the two tiny issues fixed.

::: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js:125
(Diff revision 2)
> +        prefBranch.removeObserver("enabled", prefObserver, false);

removeObserver() doesn't take a third argument.

::: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js:129
(Diff revision 2)
> +    prefBranch.addObserver("enabled", prefObserver, false);

So it's not actually added as a weak ref, good. Then we'll just have to remove the extra QI entry above.

::: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js:121
(Diff revision 2)
> +    let prefObserver = {
> +      QueryInterface : XPCOMUtils.generateQI([Ci.nsIObserver,
> +                                              Ci.nsISupportsWeakReference]),
> +      observe: function () {

This must not be a weak ref or we'll create another intermittent failure. Nothing holds onto |prefObserver|.
Blocks: 1185528
https://hg.mozilla.org/mozilla-central/rev/34427253904c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Whiteboard: [fxprivacy] [strings] → [fxprivacy] [strings] [campaign]
Verified in Nightly 42.0a1, 2015-07-27.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: