Location bar doesn't encode the address when using UNIX copy/paste (selecting)
VERIFIED
FIXED
in Firefox 3.1b2
Status
()
People
(Reporter: Raúl Porcel, Assigned: dao)
Tracking
(Blocks: 1 bug)
Firefox Tracking Flags
(Not tracked)
Details
(URL)
Attachments
(1 attachment)
|
4.87 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
So, on UNIX when you select something, it gets copied to the clipboard. So if we select the url in the location bar, and it has spaces, the clipboard paste shows spaces literally, not with %20 like it does when doing ctrl-c. Feature or bug? Steps to reproduce: 1. Go to http://dev.gentoo.org/~armin76/space%20plop.html 2. Select all the url, the URL gets copied to the clipboard 3. Paste the clipboard somewhere else using the middle button of the mouse 4. You get: http://dev.gentoo.org/~armin76/space plop.html Bug reported by Andrew Gaffney <agaffney at gentoo dot org>
Comment 1•10 years ago
|
||
Drag copying doesn't go through the copy command controller, I guess? Not sure how that works.
Comment 2•10 years ago
|
||
Obviously copying with the register should use the fully encoded URL, the problem isn't confined to spaces. Can we have an about:config option in the next minor release to disable the decode feature, while we're waiting for this bug to be fixed properly?
Comment 3•10 years ago
|
||
Changing hardware and OS to all, as this is being observed with v3.0.1 on Mac OS X v10.4.9. Is this related to bug #416144?
OS: Linux → All
Hardware: PC → All
| (Reporter) | ||
Comment 4•10 years ago
|
||
In fact this is a dupe of that one, thanks :)
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 416144
| (Assignee) | ||
Updated•10 years ago
|
||
Blocks: 416144
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: Location bar doesn't decodes spaces when using UNIX copy/paste(selecting) → Location bar doesn't encode the address when using UNIX copy/paste (selecting)
| (Assignee) | ||
Updated•10 years ago
|
||
| (Assignee) | ||
Updated•10 years ago
|
||
| (Assignee) | ||
Comment 5•10 years ago
|
||
Created attachment 337350 [details] [diff] [review] patch
Comment 6•9 years ago
|
||
Comment on attachment 337350 [details] [diff] [review] patch >diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml >+ <handler event="select"><![CDATA[ This relies on the fact that the select event fires after the editor code does it's usual clipboard handling, right? Is that guaranteed? I suppose the existing copy controller already relies on running after the native editor code. As written this will mean that keyboard selections (e.g. Ctrl+Arrow) will also add items to the selection clipboard, which I don't think is expected. The only editor code that sets kSelectionClipboard seems to be in mouseclick.
| (Assignee) | ||
Comment 7•9 years ago
|
||
(In reply to comment #6) > This relies on the fact that the select event fires after the editor code does > it's usual clipboard handling, right? Is that guaranteed? Probably not, in the sense that it's not documented anywhere, but it seems to be implemented this way. > I suppose the > existing copy controller already relies on running after the native editor > code. That's guaranteed, though, because the controller is inserted at the first position.
| (Assignee) | ||
Updated•9 years ago
|
||
Attachment #337350 -
Flags: review?(gavin.sharp)
| (Assignee) | ||
Comment 8•9 years ago
|
||
Comment on attachment 337350 [details] [diff] [review] patch (In reply to comment #6) > As written this will mean that keyboard selections (e.g. Ctrl+Arrow) will also > add items to the selection clipboard, Actually this seems to be the correct behavior. Firefox 3, gedit and Nautilus behave this way.
Attachment #337350 -
Flags: review?(gavin.sharp)
Comment 9•9 years ago
|
||
Comment on attachment 337350 [details] [diff] [review] patch OK
Attachment #337350 -
Flags: review?(gavin.sharp) → review+
| (Assignee) | ||
Updated•9 years ago
|
||
Keywords: checkin-needed
| (Assignee) | ||
Comment 10•9 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/7b2a03375806
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago → 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.1b2
Comment 11•9 years ago
|
||
Verified FIXED using: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2pre) Gecko/20081009 Minefield/3.1b2pre Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1b2pre) Gecko/20081009 Minefield/3.1b2pre -and- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081009 Minefield/3.1b2pre Also, in-litmus+: https://litmus.mozilla.org/show_test.cgi?id=7053
Status: RESOLVED → VERIFIED
Flags: in-litmus+
You need to log in
before you can comment on or make changes to this bug.
Description
•