Closed Bug 812828 Opened 13 years ago Closed 13 years ago

"Open All in Tabs" doesn't work when only Library window is open with no other windows in background

Categories

(Toolkit :: Places, defect)

19 Branch
x86_64
Windows 7
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla20
Tracking Status
firefox19 - verified

People

(Reporter: Virtual, Assigned: jdm)

References

Details

(Keywords: nightly-community, regression, verifyme)

Attachments

(1 file)

An error in error console as follows: Error: TypeError: aWindow is null Source file: resource://gre/modules/PrivateBrowsingUtils.jsm Line: 24 Suspected bug 723005
Blocks: 723005
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Bookmarks & History → Places
Product: Firefox → Toolkit
Version: Trunk → 19 Branch
we should likely assume not-in-pb-window if there's no open browser window, unless windows opened from a pb window should gain some pb flag... Josh?
Flags: needinfo?(josh)
we should likely assume not-in-pb-window if there's no open browser window, unless windows opened from a pb window should gain some pb flag... Josh?
Agreed.
Flags: needinfo?(josh)
Assignee: nobody → josh
Comment on attachment 683124 [details] [diff] [review] If there's no active window when opening targets in tabs, assume we don't want private browsing. Review of attachment 683124 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the following change ::: browser/components/places/src/PlacesUIUtils.jsm @@ +550,5 @@ > var urls = []; > for (let item of aItemsToOpen) { > + urls.push(item.uri); > + if (browserWindow && PrivateBrowsingUtils.isWindowPrivate(browserWindow)) { > + continue; So, now that I look at this again, the pb status is not going to change through the loop, so it should be moved outside of it like if (!pb) { for () {} }
Attachment #683124 - Flags: review?(mak77) → review+
her I missed the .push(), so just move out the pbwin && ispbwin to a temp var and check the var in the loop.
https://hg.mozilla.org/integration/mozilla-inbound/rev/a401cd8c40e4 This may need backporting depending on when the merge occurs,
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment on attachment 683124 [details] [diff] [review] If there's no active window when opening targets in tabs, assume we don't want private browsing. [Approval Request Comment] Bug caused by (feature/regressing bug #): 723005 User impact if declined: Open all in tabs doesn't from from the Library if no browser window is open Testing completed (on m-c, etc.): Manual testing. Risk to taking this patch (and alternatives if risky): None, just a null check String or UUID changes made by this patch: None.
Attachment #683124 - Flags: approval-mozilla-aurora?
Not a severe enough regression to track, but approving for Aurora 19 nonetheless.
Attachment #683124 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
VERIFIED on latest hourly Nightly builds Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:20.0) Gecko/20.0 Firefox/20.0 buildID: 20121120180539 Source: Built from http://hg.mozilla.org/integration/mozilla-inbound/rev/0dc53785ef12 Thank you! :)
Status: RESOLVED → VERIFIED
Summary: "Open All in Tabs" don't work when only Library window is open with no other windows in background → "Open All in Tabs" doesn't work when only Library window is open with no other windows in background
Is this something that could be automated in testsuite?
Flags: in-testsuite?
Keywords: verifyme
Verified as fixed on Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 (20130109111322).
QA Contact: ioana.budnar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: