Closed
Bug 806683
Opened 12 years ago
Closed 12 years ago
Port browser_privatebrowsing_crh.js to the new per-window PB APIs
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
RESOLVED
FIXED
Firefox 19
People
(Reporter: ehsan.akhgari, Assigned: andreshm)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
2.97 KB,
patch
|
jdm
:
review+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_crh.js In order to port this test, the file needs to be copied to the perwindow/ directory, and then instead of setting privateBrowsingEnabled sequentially, the test needs to open a new private browsing window and then run the test on that window. This involves rewriting the test structure to make it asynchronous.
Reporter | ||
Updated•12 years ago
|
Blocks: pbngentest
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → andres
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #679169 -
Flags: review?(josh)
Comment 2•12 years ago
|
||
Comment on attachment 679169 [details] [diff] [review] Patch v1 Review of attachment 679169 [details] [diff] [review]: ----------------------------------------------------------------- r=me with these nits addressed. ::: browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_crh.js @@ +8,5 @@ > +function test() { > + waitForExplicitFinish(); > + > + function checkDisableOption(aPrivateMode, aWindow, aCallback) { > + executeSoon(function() { Does the test pass without this? @@ +10,5 @@ > + > + function checkDisableOption(aPrivateMode, aWindow, aCallback) { > + executeSoon(function() { > + let crhCommand = aWindow.document.getElementById("Tools:Sanitize"); > + ok(crhCommand, "The chr command should exist"); Be explicit here: Clear Recent History, not chr. @@ +13,5 @@ > + let crhCommand = aWindow.document.getElementById("Tools:Sanitize"); > + ok(crhCommand, "The chr command should exist"); > + > + is(PrivateBrowsingUtils.isWindowPrivate(aWindow), aPrivateMode, > + "PrivateBrowsingUtils should accept the correct per-window private browsing status"); s/accept/report/
Attachment #679169 -
Flags: review?(josh) → review+
Assignee | ||
Comment 3•12 years ago
|
||
> browser/components/privatebrowsing/test/browser/perwindow/
> browser_privatebrowsing_crh.js
> @@ +8,5 @@
> > +function test() {
> > + waitForExplicitFinish();
> > +
> > + function checkDisableOption(aPrivateMode, aWindow, aCallback) {
> > + executeSoon(function() {
>
> Does the test pass without this?
No, the test fails without that. I suppose that the attribute hasn't been set.
Attachment #679169 -
Attachment is obsolete: true
Attachment #679323 -
Flags: review?(josh)
Updated•12 years ago
|
Attachment #679323 -
Flags: review?(josh) → review+
Reporter | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7de203873898 (Nit: please use hg cp in the future. Thanks!)
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7de203873898
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
You need to log in
before you can comment on or make changes to this bug.
Description
•