Closed Bug 845811 Opened 13 years ago Closed 13 years ago

openLinkIn should use the target window's isBlankPageURL function

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 22

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
openLinkIn calls isBlankPageURL to determine whether it should raise the window and focus the location bar. isBlankPageURL returns true for about:newtab and false for about:privatebrowsing in non-private windows and vice versa in private windows. Therefore it should be called in the target window's context, as that may have a different privacy status than the current window.
Attachment #718968 - Flags: review?(ehsan)
Comment on attachment 718968 [details] [diff] [review] patch Review of attachment 718968 [details] [diff] [review]: ----------------------------------------------------------------- Nice catch! How did you find this bug, out of curiosity?
Attachment #718968 - Flags: review?(ehsan) → review+
(In reply to :Ehsan Akhgari from comment #1) > Nice catch! How did you find this bug, out of curiosity? Just by reading the code.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: