Closed Bug 677423 Opened 13 years ago Closed 13 years ago

Add togglePrivateBrowsing() to head.js

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 8

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

(Whiteboard: [cleanup])

Attachments

(1 file, 1 obsolete file)

This is now used in a lot of Panorama tests and we should move this to head.js instead of having duplicates.
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #551633 - Flags: feedback?(raymond)
Comment on attachment 551633 [details] [diff] [review]
patch v1

Looks good
Attachment #551633 - Flags: feedback?(raymond) → feedback+
Comment on attachment 551633 [details] [diff] [review]
patch v1

>+function togglePrivateBrowsing(callback) {
>+  if (callback) {

This probably shouldn't be called without a callback.
Attached patch patch v2Splinter Review
(In reply to Dão Gottwald [:dao] from comment #3)
> >+function togglePrivateBrowsing(callback) {
> >+  if (callback) {
> 
> This probably shouldn't be called without a callback.

Agreed.
Attachment #551633 - Attachment is obsolete: true
Attachment #551712 - Flags: review?(dao)
Comment on attachment 551712 [details] [diff] [review]
patch v2

>--- a/browser/base/content/test/tabview/browser_tabview_bug624727.js
>+++ b/browser/base/content/test/tabview/browser_tabview_bug624727.js
>@@ -58,18 +58,17 @@ function test() {
>     assertOneTabInGroup(prefix, group1);
>     assertOneTabInGroup(prefix, group2);
>   }
> 
>   let testStateAfterEnteringPB = function () {
>     let prefix = 'enter';
>     ok(!pb.privateBrowsingEnabled, prefix + ': private browsing is disabled');
>     registerCleanupFunction(function () {
>-      if (pb.privateBrowsingEnabled)
>-        pb.privateBrowsingEnabled = false
>+      pb.privateBrowsingEnabled = false

lacks a semicolon
Attachment #551712 - Flags: review?(dao) → review+
http://hg.mozilla.org/integration/fx-team/rev/3a90c0752436
Whiteboard: [cleanup] → [cleanup][fixed-in-fx-team]
http://hg.mozilla.org/mozilla-central/rev/3a90c0752436
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [cleanup][fixed-in-fx-team] → [cleanup]
Target Milestone: --- → Firefox 8
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: