Closed
Bug 319257
Opened 20 years ago
Closed 20 years ago
URLs from external apps don't bring window to front
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino1.0
People
(Reporter: bugzilla-graveyard, Assigned: sfraser_bugs)
References
Details
(Keywords: fixed1.8, regression)
Attachments
(2 files, 2 obsolete files)
|
1.94 KB,
patch
|
stuart.morgan+bugzilla
:
review+
sfraser_bugs
:
superreview-
|
Details | Diff | Splinter Review |
|
807 bytes,
patch
|
Details | Diff | Splinter Review |
If the Download Manager is the frontmost application window, loading a URL from an external app will no longer bring the frontmost *browser* window to the foreground.
This was caused by the checkin for bug 295858. Oops.
Patch coming.
| Reporter | ||
Comment 1•20 years ago
|
||
Attachment #205110 -
Flags: review?
| Reporter | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
| Reporter | ||
Comment 2•20 years ago
|
||
Requesting blocking for 1.0.
Sorry for the stupidity here. I should've caught it in testing yesterday.
cl
Flags: camino1.0?
Updated•20 years ago
|
Flags: camino1.0? → camino1.0+
Comment 3•20 years ago
|
||
Comment on attachment 205110 [details] [diff] [review]
Get the new BWC, then activate its view properly
Please do this the way I suggest in the previous bug, setting controller to the frontmost window in the openNewWindow case (and using the original activate line). There's no reason to do a somewhat expensive operation to get the front controller again in all the cases where it's known to be the same.
Attachment #205110 -
Flags: review? → review-
| Reporter | ||
Comment 4•20 years ago
|
||
Thanks for your patience, Stuart. How's that one?
cl
Attachment #205110 -
Attachment is obsolete: true
Attachment #205119 -
Flags: review?
| Reporter | ||
Comment 5•20 years ago
|
||
Per Torben's comment in bug 295858. Woops.
Attachment #205119 -
Attachment is obsolete: true
Attachment #205143 -
Flags: review?
Attachment #205119 -
Flags: review?
Comment 6•20 years ago
|
||
Comment on attachment 205143 [details] [diff] [review]
removes duplicate variable declaration
Looks good. r=me
Attachment #205143 -
Flags: superreview?(sfraser_bugs)
Attachment #205143 -
Flags: review?
Attachment #205143 -
Flags: review+
| Assignee | ||
Comment 7•20 years ago
|
||
Comment on attachment 205143 [details] [diff] [review]
removes duplicate variable declaration
I'm not sure I agree with this patch (or the way it was before any of these changes). The new setActive: line makes the content area active for the browser window that was frontmost, or opened. But we ignore the fact that loadInBackground may be YES, so the user may have focus in the URL bar, which we'll change.
I think we only want to bring the browser window to the front if we're loading in an empty tab, or !background.
Attachment #205143 -
Flags: superreview?(sfraser_bugs) → superreview-
Comment 8•20 years ago
|
||
Good point. In fact, that line will probably completely defeat the "load in background" pref--we've just never noticed because there aren't currently any code paths that call this with forceFront:NO and another window open.
| Assignee | ||
Comment 9•20 years ago
|
||
Assignee: bugzilla → sfraser_bugs
| Assignee | ||
Comment 10•20 years ago
|
||
Fixed, b+t.
Comment 11•20 years ago
|
||
this is still broken for me in 2005120804
if i have a window open and dblclick a webloc on the desktop, the new window starts in teh bg, comes to the fg, then may or may not jump back and forth a few times before it's done loading. sometimes it ends up in the bg, sometimes it ends up in the fg.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•20 years ago
|
||
Probably because Simon's patch didn't add the
controller = (BrowserWindowController*)[[self getFrontmostBrowserWindow] windowController];
in the openNewWindowWithURL case, so it's pulling the old window forward instead of the new window, like the earlier patch in the other bug.
| Assignee | ||
Comment 13•20 years ago
|
||
Oh, now I get it, and the reason for that comment that we removed.
[BrowserWindowController openNewWindowWithURL:...] is evil because it returns a NEW window. Duh.
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 14•20 years ago
|
||
OK, I think I fixed it this time.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 15•20 years ago
|
||
(In reply to comment #14)
> OK, I think I fixed it this time.
Possibly related issue:
http://forums.mozillazine.org/viewtopic.php?t=355209
I can't tell for sure if this is the same issue or not, but it sounds pretty similar. Might be worth a look, anyway.
cl
You need to log in
before you can comment on or make changes to this bug.
Description
•