Open
Bug 1475201
Opened 6 years ago
Updated 2 years ago
Consider removing ability to drag javascript: urls to the new window button
Categories
(Firefox :: Toolbars and Customization, enhancement, P3)
Firefox
Toolbars and Customization
Tracking
()
NEW
People
(Reporter: jkt, Unassigned)
References
Details
When working on Bug 1466801, I noticed the test was breaking for dragging multiple urls to the new window button if one contained a javascript: url. browser/base/content/test/general/browser_newWindowDrop.js Even once I manually changed to permit inherit principal in newWindowButtonObserver and newTabButtonObserver it still didn't work for new windows but did for tabs. The _handleURIToLoad code is called lazily for new windows, currently this permits the use of inherit principal, so I had to change that also. I would prefer to lock down this function also. Changing _handleURIToLoad to handle another window argument seems like a lot more complexity just for this behaviour. Can we consider removing it?
Updated•6 years ago
|
Flags: needinfo?(arai.unmht)
Updated•6 years ago
|
Priority: -- → P3
Reporter | ||
Updated•6 years ago
|
Assignee: nobody → jkt
Comment 1•6 years ago
|
||
I have no objection :) for drag-and-drop specifically, we can handle in ContentAreaDropListener: https://searchfox.org/mozilla-central/source/dom/base/contentAreaDropListener.js maybe just filter javascript: URIs out from _addLinksFromItem, or reject it in _validateURI.
Flags: needinfo?(arai.unmht)
Reporter | ||
Comment 2•6 years ago
|
||
Seems fine, just one test to fix: https://treeherder.mozilla.org/#/jobs?repo=try&revision=55e6d7556876518c965bcc432c7b88779ac48eda
Comment 3•5 years ago
|
||
See also bug 1506100
Comment 4•4 years ago
|
||
I'm taking care of the new tab button in bug 1605050. Seems like the new window button should be an easy fix as well. jkt, do you want to get back to this?
Flags: needinfo?(jkt)
Summary: Consider removing ability to drag javascript: urls to the new tab and new window button → Consider removing ability to drag javascript: urls to the new window button
Reporter | ||
Comment 5•4 years ago
|
||
Unassigning from me as I'm unlikely to be fixing this. Sorry.
Assignee: jonathan → nobody
Flags: needinfo?(jonathan) → needinfo?(dao+bmo)
Updated•4 years ago
|
Flags: needinfo?(dao+bmo)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•