Closed
Bug 946450
Opened 11 years ago
Closed 10 years ago
[e10s] CMD+click on about:newtab link opens site in current tab, not a new background tab
Categories
(Firefox :: New Tab Page, defect, P1)
Firefox
New Tab Page
Tracking
()
VERIFIED
FIXED
Firefox 34
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: cpeterson, Assigned: evilpie)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Open new tab.
2. CMD+click a site link on the page.
EXPECTED:
Site should open in a new background tab.
RESULT:
Site opens in the current tab. Right-clicking and selecting "Open Link in New Tab" works correctly on about:newtab.
This bug only affects the about:newtab page. CMD+click works correctly on regular pages' links.
Updated•11 years ago
|
Assignee: nobody → felipc
Status: NEW → ASSIGNED
Reporter | ||
Updated•11 years ago
|
tracking-e10s:
--- → +
Comment 1•11 years ago
|
||
I vote m2. all paths to opening new tabs should work before GA (and keyboard shortcuts too).
Updated•11 years ago
|
Blocks: old-e10s-m2
Comment 2•11 years ago
|
||
Mass-move to Firefox::New Tab Page.
Filter on new-tab-page-component.
Component: General → New Tab Page
Comment 3•11 years ago
|
||
Additionally, clicking site links on e10s about:newtab with the middle mouse button doesn't open the link at all. It should open in a new background tab.
(Let me know if this should be a separate bug!)
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Updated•10 years ago
|
Assignee: felipc → jmathies
Status: RESOLVED → REOPENED
Priority: -- → P1
Resolution: WORKSFORME → ---
Assignee | ||
Updated•10 years ago
|
Assignee: jmathies → evilpies
Assignee | ||
Comment 4•10 years ago
|
||
We already have a nice function that does all the work of selecting the right target.
Attachment #8463624 -
Flags: review?(jmathies)
Updated•10 years ago
|
Attachment #8463624 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Comment 7•10 years ago
|
||
Ctrl+click
current tab: 2014-07-29-03-02-02-mozilla-central-firefox-34.0a1.en-US.linux-x86_64
new foreground tab: 2014-08-01-03-02-01-mozilla-central-firefox-34.0a1.ru.linux-x86_64
new foreground tab (normal sites: new background tab): 2014-08-05-03-03-00-mozilla-central-firefox-34.0a1.ru.linux-x86_64
QA Whiteboard: [bugday-20140706]
Updated•10 years ago
|
Status: RESOLVED → REOPENED
QA Whiteboard: [bugday-20140706] → [bugday-20140806]
Resolution: FIXED → ---
Assignee | ||
Comment 8•10 years ago
|
||
Okay I see what you mean. It opens a new foreground tab instead of background tab. (Your description wasn't really that obvious)
Assignee | ||
Comment 9•10 years ago
|
||
So the problem seems to be that whereToOpenLink does the exact opposite of what normals happens when pressing CTRL. (You can actually notice this when clicking on the back button while pressing ctrl). I guess the function is just not the right one to use?
Normal Link:
ctrl + click = open new background tab
ctrl + shift + click = open new tab in foreground (i.e. switch to it)
What whereToOpenLink does:
ctrl + click = open new tab in foreground
ctrl + shift + click = open new background tab
Assignee | ||
Comment 10•10 years ago
|
||
openLinkIn will generally prefer to load tabs in the foreground when "fromChrome" is true and "inBackground" is not set. By passing the value of "browser.tabs.loadInBackground" (default: true) we basically reverse that behavior and notch it in the direction of opening tabs in background by default, and in the foreground when shift is pressed.
Attachment #8470863 -
Flags: review?(jmathies)
Comment 11•10 years ago
|
||
Comment on attachment 8470863 [details] [diff] [review]
Fix background behavior
Review of attachment 8470863 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/browser.js
@@ +2577,5 @@
> if (anchorTarget instanceof HTMLAnchorElement &&
> anchorTarget.classList.contains("newtab-link")) {
> event.preventDefault();
> let where = whereToOpenLink(event, false, false);
> + let inBackground = Services.prefs.getBoolPref("browser.tabs.loadInBackground");
nit - lets add a comment here similar to your bug comment 10 explaining why we do this.
Attachment #8470863 -
Flags: review?(jmathies) → review+
Updated•10 years ago
|
Attachment #8463624 -
Attachment is obsolete: true
Comment 12•10 years ago
|
||
Comment on attachment 8463624 [details] [diff] [review]
v1
Hmm, I just realized this was already marked as fixed and this patch is associated with the landing.
In the future lets do follow ups in follow up bugs.
Attachment #8463624 -
Attachment is obsolete: false
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8470863 [details] [diff] [review]
Fix background behavior
I just realized that this is not the best way to fix this bug. I am going to open a new bug and mark this bug as fixed. Sorry for the trouble.
Attachment #8470863 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 14•10 years ago
|
||
Verified fixed with 2014-08-19-03-02-02-mozilla-central-firefox-34.0a1.ru.linux-x86_64.
QA Whiteboard: [bugday-20140806] → [bugday-20140820]
Flags: qe-verify+
Comment 15•10 years ago
|
||
Confirming this also works on Windows 7 64-bit, Mac OS X 10.8.5 and Ubuntu 12.04 using latest Nightly, build ID: 20141021030208.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•