Closed Bug 517307 Opened 15 years ago Closed 15 years ago

Some tabs opened in background from middle clicks still focus the browser

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

(Keywords: fixed-seamonkey2.0)

Attachments

(1 file)

The existing openNewTabWith method used to open link clicks in a new tab does not raise the browser if it was configured to open a new tab in the background. The new openUILinkIn method however focuses the browser with the new tab, although this seems pointless as we deliberately didn't switch to the new tab.
Attached patch Proposed patchSplinter Review
I thought moving the focus() calls was neater than fiddling around with setting loadInBackground to false when opening in an existing window.

I cleaned up the code for opening multiple tabs slightly.

Note that these functions differ from the openNewTabWith family in that they are designed for links in chrome, not in content.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #401274 - Flags: review?(iann_bugzilla)
Version: unspecified → Trunk
Comment on attachment 401274 [details] [diff] [review]
Proposed patch

Is it worth making openUILinkIn call openUILinkArrayIn seeing the former is just a special case of the latter?
Attachment #401274 - Flags: review?(iann_bugzilla) → review+
Comment on attachment 401274 [details] [diff] [review]
Proposed patch

I think that openUILinkIn is sufficiently simpler to make it worth keeping separate.
Attachment #401274 - Flags: approval-seamonkey2.0?
Attachment #401274 - Flags: approval-seamonkey2.0? → approval-seamonkey2.0+
Pushed changeset 043683cd4f96 to comm-central.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: