Closed
Bug 806699
Opened 12 years ago
Closed 12 years ago
Port browser_privatebrowsing_ui.js to the new per-window PB APIs
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
RESOLVED
FIXED
Firefox 20
People
(Reporter: ehsan.akhgari, Assigned: marioalv)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
10.30 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_ui.js
In order to port this test, the file needs to be copied to the perwindow/ directory, and then instead of setting privateBrowsingEnabled, we need to open a new private browsing window and then run the test on that window.
Updated•12 years ago
|
Assignee: nobody → marioalv.mozilla
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
I modified the logic of the test, because there were UI elements that don't exist in the new per-window private browsing mode, like pbMenuItem.getAttribute("start") and pbMenuItem.getAttribute("stoplabel").
The test idea is the same: first verify the UI elements when not on per-window private mode, change to private mode (by opening the per-window private mode from the interface) and then verify the UI elements when on per-window private mode.
Attachment #683821 -
Flags: review?(ehsan)
Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 683821 [details] [diff] [review]
Patch to migrate the test to the new per window private mode
Hmm, this patch doesn't apply cleanly for me:
$ hg qpush -v
applying pach
patching file browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_ui.js
bad hunk #1 @@ -3,100 +3,82 @@
(100 99 81 81)
patch failed, rejects left in working dir
errors during apply, please fix and refresh pach
Can you please attach a new version which does? Thanks!
Attachment #683821 -
Flags: review?(ehsan)
Assignee | ||
Comment 3•12 years ago
|
||
I fixed the patch. Let me know if this works OK for you.
Thanks.
Attachment #683821 -
Attachment is obsolete: true
Attachment #684168 -
Flags: review?(ehsan)
Reporter | ||
Updated•12 years ago
|
Attachment #684168 -
Attachment is patch: true
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 684168 [details] [diff] [review]
Patch to migrate the test to the new per window private mode
Review of attachment 684168 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #684168 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
You need to log in
before you can comment on or make changes to this bug.
Description
•