Closed Bug 1408670 Opened 7 years ago Closed 7 years ago

Bug 1399429 should have used PBU.isContentWindowPrivate instead of PBU.isBrowserPrivate

Categories

(Firefox :: Private Browsing, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 58
Tracking Status
firefox-esr52 --- unaffected
firefox56 --- unaffected
firefox57 --- unaffected
firefox58 --- fixed

People

(Reporter: Kwan, Assigned: Kwan)

References

Details

Attachments

(1 file, 1 obsolete file)

I misread the code and used the wrong function in bug 1399429. It works fine
(and does the exact same thing) but causes console spam because of [1], and
won't work fine in future when that stops being just a warning.
See bug 1069059 

[1] https://searchfox.org/mozilla-central/rev/1c1a5cef772214e9cff487040ac3068d56e96cc6/toolkit/modules/PrivateBrowsingUtils.jsm#23
Follow up correction to bug 1399429.

MozReview-Commit-ID: JMoTVbc3SAx
Ian, I think you forgot to flag a reviewer.
Flags: needinfo?(moz-ian)
Comment on attachment 8918571 [details] [diff] [review]
Use PBU.isContentWindowPrivate instead of PBU.isBrowserPrivate in ContextMenu.jsm. r?

Hey Felipe, sorry for the churn, I only later realised isBrowserPrivate causes console spam (and might in the future break).
Attachment #8918571 - Attachment is obsolete: true
Comment on attachment 8919243 [details]
Bug 1408670 - Use PBU.isContentWindowPrivate instead of PBU.isBrowserPrivate in ContextMenu.jsm.

https://reviewboard.mozilla.org/r/190142/#review195478

I wonder if it's better to move this to the original bug due to the need for the uplift request..
Attachment #8919243 - Flags: review?(felipc) → review+
Keywords: checkin-needed
(In reply to Ian Moody [:Kwan] from comment #6)
> Thanks for the quick review!
> I was just going to add a branch patch to bug 1399429 with these changes
> folded in.

Great, works for me!
Okay, actually doing the right thing in the code now, with a try run to prove it:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b369d636d592c1acd55d1524ef041db97fb3172e
(you can see the previous one blowing up try on reviewboard)
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/6af3f537a063
Use PBU.isContentWindowPrivate instead of PBU.isBrowserPrivate in ContextMenu.jsm. r=Felipe
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/6af3f537a063
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
The fix in this was rolled up into the uplift in bug 1399429, so 57 was never actually affected.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: