Closed
Bug 175092
Opened 23 years ago
Closed 23 years ago
[FIXr]ctrl+middleclick in body to open selection in new window sends referer
Categories
(SeaMonkey :: UI Design, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.3alpha
People
(Reporter: jmd, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 1 obsolete file)
|
6.53 KB,
patch
|
timeless
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
major privacy/security and correctness issue.
load a slashdot page in one tab.
select a bugzilla link in another application.
ctrl+middle-click mozilla to load the bugzilla link in a new tab.
bugzilla slashdot blocked page is shown
Some situations we're feeding sites private URLs.
Some situations we're just feeding sites bogus referer data, corrupting their
links-in, data, and confusing them to how we got from the open page to theirs.
Linux 2002101508.
| Assignee | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Comment 2•23 years ago
|
||
May as well take this...
Assignee: blaker → bzbarsky
Priority: -- → P2
Summary: ctrl+midleclick in body to open selection in new window sends referer → [FIX]ctrl+midleclick in body to open selection in new window sends referer
Target Milestone: --- → mozilla1.3alpha
Comment 3•23 years ago
|
||
isn't this a feature?
| Assignee | ||
Comment 4•23 years ago
|
||
No.
| Reporter | ||
Comment 5•23 years ago
|
||
Most excellente señor. No referer sent for current or new tab windows.
And the shift bg toggle works perfect too. I think that fixes another bug
somewhere out there (which I may have filed as well). Tested it with both
settings for load in bg. Beautiful.
*chants one-point-two, one-point-two, one-point-two*
Only one thing I'm not sure of:
if (saveModifier) { // if saveModifier is down
- saveURL(href, linkNode ? gatherTextUnder(linkNode) : "");
+ saveURL(href, linkNode ? gatherTextUnder(linkNode) : "", null, true);
You added two args to saveURL() and I don't see you changing that function's
prototype anywhere. Don't even know what this block of code does, so I may just
be confused.
| Assignee | ||
Comment 6•23 years ago
|
||
Oh, whoops. These changes:
- saveURL(href, linkNode ? gatherTextUnder(linkNode) : "");
+ saveURL(href, linkNode ? gatherTextUnder(linkNode) : "", null, true);
+ if (url != "about:blank") {
+ gURLBar.value = url;
+ }
belong to other bugs...
So as far as testing goes, here's what needs to be tested:
1) referrer is sent when middle-clicking links (tab and window), ctrl-clicking
links (tab and window), doing "open link in new window/tab" from context
menu, clicking on links normally.
2) referrer not sent for middlemouse paste, with or without control key.
I'll try to get to that this weekend...
Comment 7•23 years ago
|
||
ohhh, you're right, I read that as middle-click on a link / Ctrl+click on a link.
didn't know about ctrl+middleclick...
| Assignee | ||
Comment 8•23 years ago
|
||
I took out the saveURL. I left in the gURLBar thing because it's standalone and
the time it would take me to find the relevant bug is not worth it. Hopefully
reviewers are OK with it. ;)
Attachment #103231 -
Attachment is obsolete: true
Comment 9•23 years ago
|
||
Comment on attachment 104452 [details] [diff] [review]
punt the extraneous stuff
sr=jag
Attachment #104452 -
Flags: superreview+
Attachment #104452 -
Flags: review+
| Assignee | ||
Updated•23 years ago
|
Summary: [FIX]ctrl+midleclick in body to open selection in new window sends referer → [FIXr]ctrl+midleclick in body to open selection in new window sends referer
| Assignee | ||
Updated•23 years ago
|
Summary: [FIXr]ctrl+midleclick in body to open selection in new window sends referer → [FIXr]ctrl+middleclick in body to open selection in new window sends referer
| Assignee | ||
Comment 10•23 years ago
|
||
Fix checked in for 1.3a
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 11•23 years ago
|
||
Sorry, maybe it's just me but the description for this pref setting is getting
very confusing this way.
all.js:
-------
pref("network.http.sendRefererHeader", 2); // 0=don't send any, 1=send only on
clicks, 2=send on image requests as well
Isn't control-click and/or middle-click just a click?
| Assignee | ||
Comment 12•23 years ago
|
||
It's not a click on a _LINK_. Clicks on bookmarks in the personal toolbar or
the home button are clicks too, and do not send referrer.
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•