Closed
Bug 183401
Opened 23 years ago
Closed 19 years ago
Bring target tab to front on link drop, based on tab load-in-background setting
Categories
(Camino Graveyard :: Tabbed Browsing, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino1.5
People
(Reporter: bugmail, Assigned: bugzilla-graveyard)
References
Details
(Keywords: fixed1.8.1.1)
Attachments
(1 obsolete file)
If the user has specified that tabs open in the foreground in the Preferences,
then dragging a link to a background tab should bring that tab to the foreground
as it does in Mozilla.
Otherwise, the current behavior, leaving the target tab in the background,
should persist.
Summary: Bring target tab of drag and drop operation to front based on tab foreground/background setting → Bring target tab of drag-and-drop operation to front (based perhaps on tab foreground/background setting)
Note that Firebird also does this correctly (that is, like Mozilla), also, based
on its' load-links-in-background setting.
Summary: Bring target tab of drag-and-drop operation to front (based perhaps on tab foreground/background setting) → Bring target tab to front on link drop, based on tab load-in-background setting
Comment 5•20 years ago
|
||
Bump. This is important, but maybe not for 1.0 now. How simple is this to fix?
Updated•20 years ago
|
Target Milestone: Camino1.0 → Camino1.1
QA Contact: bugzilla → tabbed.browsing
Target Milestone: Camino1.1 → Camino1.2
| Assignee | ||
Comment 6•19 years ago
|
||
This ought to work:
// if the user wants tabs to load in the background, DO NOT activate the URI when loading it
BOOL loadInBG = ![[PreferenceManager sharedInstance] getBooleanPref:"browser.tabs.loadInBackground" withSuccess:NULL];
NSLog(@"Over a tabViewItem, will activate = %d", loadInBG);
(inserted at line 295 of BrowserTabView.mm), but for some reason, when I pass |loadURI:referrer:flags:activate:allowPopups| a YES in the activate: parameter, it doesn't work.
I wonder if that's a bug in the loadURI method on BrowserWrapper?
cl
| Assignee | ||
Comment 7•19 years ago
|
||
I now see why I thought the loadURI method had a bug: the "activate" parameter doesn't actually activate the tab. From discussion on IRC, it seems that it puts focus in the content area.
I told Ian to look into re-naming that everywhere, and I'll file a separate bug for it.
cl
| Assignee | ||
Comment 8•19 years ago
|
||
Targeting for 1.1 since we've got a patch now.
cl
Target Milestone: Camino1.2 → Camino1.1
Comment on attachment 223390 [details] [diff] [review]
selects the tabViewItem that is the drag target if tabs load in foreground
Shouldn't this respect the shift toggle, too?
Otherwise, it seems to work.
Comment 10•19 years ago
|
||
Comment on attachment 223390 [details] [diff] [review]
selects the tabViewItem that is the drag target if tabs load in foreground
>+ // if the user wants tabs to load in the background, DO NOT select the tab that is the drag target after loading the URI
>+ BOOL shouldSelectTab = ![[PreferenceManager sharedInstance] getBooleanPref:"browser.tabs.loadInBackground" withSuccess:NULL];
>+ if (shouldSelectTab)
>+ [self selectTabViewItem:overTabViewItem];
What if shift is currently held down?
If only there were some kind of central method somewhere that would do the right thing...
Comment 11•19 years ago
|
||
(In reply to comment #10)
> What if shift is currently held down?
>
> If only there were some kind of central method somewhere that would do the
> right thing...
Yeah, that has been haunting us in so many bugs already!
I think that checking the current modifiers works, as long as you're not in a menu (in which case you ideally add an alternate menuitem). Chris, wanna try that in this patch?
| Assignee | ||
Comment 12•19 years ago
|
||
Comment on attachment 223390 [details] [diff] [review]
selects the tabViewItem that is the drag target if tabs load in foreground
Obsolete. See bug 320668 for current patch.
cl
Attachment #223390 -
Attachment is obsolete: true
Attachment #223390 -
Flags: review?(hwaara)
| Assignee | ||
Updated•19 years ago
|
Comment 13•19 years ago
|
||
Chris, this was fixed by the checkin from bug 320668, right?
| Assignee | ||
Comment 14•19 years ago
|
||
Affirmative, sir.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Keywords: fixed1.8.1.1
You need to log in
before you can comment on or make changes to this bug.
Description
•