Closed
Bug 113072
Opened 23 years ago
Closed 23 years ago
Shift should unbackground a new tab
Categories
(SeaMonkey :: Tabbed Browser, enhancement, P3)
SeaMonkey
Tabbed Browser
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: bugzilla, Assigned: caillon)
Details
Attachments
(1 file, 1 obsolete file)
1.75 KB,
patch
|
doronr
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 BuildID: 2001112012 I was very pleasantly surprised when I discovered that adding a shift to a middle-click (or ctrl-click) causes a tab to load in the background. However, when the "load in background" tabbed-browsing option is set, using the shift modifier does not cause the tab to load in the foreground like I wish it would. Reproducible: Always Steps to Reproduce: 1.Turn on tabbed browsing for middle-click and set the load-in-background option. 2.Shift-middle-click a link. Actual Results: The link loads in the background, just like it would without the shift. Expected Results: I'd like the link to load in the foreground when shift is used.
-> Tabbed browser
Assignee: asa → hyatt
Component: Browser-General → Tabbed Browser
QA Contact: doronr → sairuh
Updated•23 years ago
|
Target Milestone: --- → Future
Updated•23 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•23 years ago
|
Keywords: helpwanted
Assignee | ||
Comment 3•23 years ago
|
||
taking. I have a fix for this.
Assignee: jaggernaut → caillon
Keywords: helpwanted
Assignee | ||
Comment 4•23 years ago
|
||
We only want to load a tab in the foreground if the pref is on and the shift key was clicked. or the pref is off and shift is not clicked. meaning both true or both false. Since we're dealing with 2 boolean values, we just compare them.
Comment 5•23 years ago
|
||
Comment on attachment 65972 [details] [diff] [review] Proposed fix r=doron You might want to consider putting a comment about this, since a equality check between a pref and a event is kinda confusing at first :)
Attachment #65972 -
Flags: review+
Assignee | ||
Comment 6•23 years ago
|
||
>a equality check between a pref and a event is kinda confusing at first :)
Technically, I'm comparing, not checking for equality: There's a difference :)
But point taken. I still think it is better than
if ((event.shiftKey && pref.getBoolPref("browser.tabs.loadInBackground"))
|| (!event.shiftKey && !pref.getBoolPref("browser.tabs.loadInBackground")))
So, I can do this in both places:
+
+ // if event.shiftKey and pref.getBoolPref() are both true or both false
+ if (event.shiftKey == pref.getBoolPref("browser.tabs.loadInBackground"))
jag, will you sr= with the above comment in both places?
Status: NEW → ASSIGNED
OS: Linux → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: Future → mozilla0.9.9
Comment 7•23 years ago
|
||
oopsey, almost forgot to cc marlon to see if he has any strong opinions here. :)
Comment 8•23 years ago
|
||
Comment on attachment 65972 [details] [diff] [review] Proposed fix Nifty solution, but I think this is more readable and maintainable: var loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground"); if (event.shiftKey) loadInBackground = !loadInBackground; if (!loadInBackground) ...
Attachment #65972 -
Flags: needs-work+
Assignee | ||
Comment 9•23 years ago
|
||
Attachment #65972 -
Attachment is obsolete: true
Comment 10•23 years ago
|
||
Comment on attachment 66135 [details] [diff] [review] Patch v2 - the "not-so-nifty"(tm) patch r=doron
Attachment #66135 -
Flags: review+
Comment 11•23 years ago
|
||
Comment on attachment 66135 [details] [diff] [review] Patch v2 - the "not-so-nifty"(tm) patch sr=jag
Attachment #66135 -
Flags: superreview+
Comment 12•23 years ago
|
||
checked into trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 13•23 years ago
|
||
spiffy! verified fixed using 2002.01.29.1x comm bits on linux rh7.2, win2k and mac 10.1.2. added note to self: if/when we get around to writing a doc about modified mouse actions, this nifty feature should be mentioned. also, on mac [or wherever the middlemouse button isn't turned on for opening links], command+shift+click would work in this case.
Status: RESOLVED → VERIFIED
Whiteboard: se-radar: add to mousing doc?
Updated•23 years ago
|
Whiteboard: se-radar: add to mousing doc?
Updated•16 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•