Closed
Bug 859841
Opened 12 years ago
Closed 11 years ago
In Firefox 22, copied URL has some "--\n" characters in front of real URL.
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: ege, Unassigned)
References
()
Details
(Whiteboard: [fixed by bug 793996])
User Agent: Mozilla/5.0 (masking-agent; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20130406181013
Steps to reproduce:
In developer tools, web console. I copy the link and when I paste it, it becomes something like "--
http://example.com"
Expected results:
It should be only the original URL.
Component: Untriaged → Developer Tools: Console
OS: Other → Linux
Hardware: Other → x86
From where in the web console did you copy it?
The log window?
console.log('http://example.com'); and copying that line i get:
[17:58:10.750] http://example.com
Flags: needinfo?(ege)
I tested it on some different sites now. First of all, I copy by right clicking on request and clicking on "Copy Link Location". However it happens only in AJAX requests. I load my site (or another) then do it on the initially loaded HTML or CSS. The copied URL is normal. Then I click something that does AJAX call. Right click on the request from web console and copy link location and when I paste, it is "--
http://example.com/". Note that there is a newline after "--".
Flags: needinfo?(ege)
OK, I've managed to reproduce this:
STR:
1. load http://jsfiddle.net/C5Ps8/
2. hit ctrl+shift+k
3. clear the web consoles log
4. click the run button in jsfiddle
5. right click the POST line in web console (open in tab and copy location is disabled)
6. right click the GET line and select Copy Link Location
Expected result:
Clipboard should contain the string "http://fiddle.jshell.net/"
Actual result:
Clipboard contains "--
http://fiddle.jshell.net/"
I've been able to reproduce this problem on ajax and normal net calls, and with get, post and put's so that has nothing to do with it. If i reduce the timeout on the ajax call in the testcase the "--" isn't added to the strings, so it seams to be a timing issue somewhere.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: x86 → All
Version: 22 Branch → Trunk
Comment 4•12 years ago
|
||
Thanks for the bug report. You just found an obsolete "feature" of the web console output: time-based "grouping". :) This needs to be removed/reimplemented properly.
Blocks: console-output
Updated•12 years ago
|
OS: Linux → All
Priority: -- → P3
Comment 5•11 years ago
|
||
This is going to be fixed by bug 793996, which will remove the "--" lines.
Depends on: 793996
Comment 6•11 years ago
|
||
Please reopen if you find that this bug is not fixed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by bug 793996]
Target Milestone: --- → Firefox 25
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•