Closed
Bug 746648
Opened 13 years ago
Closed 13 years ago
Too large script labels in various pages
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 15
People
(Reporter: past, Assigned: vporof)
References
Details
Attachments
(1 file, 1 obsolete file)
4.78 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
STR:
1) Visit cnn.com
2) Open the script debugger
3) Observe the huge labels in the script list
In SS__getScriptLabel we trim the query string before deciding on a unique, short label for the script. In this case, however, the query string is what differentiates the script URLs.
The best mitigation I came up with is using the path info as usual, but instead of appending the whole query string, just add a unique subset of it, probably with ellipsis characters before and after.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•13 years ago
|
||
http://rawkes.com/ from bug 759629 is another good case for huge script labels due to long query strings. In this particular case however, the query string delimiter character '?' is missing, which confuses SS__trimUrlQuery. I'm not even sure such URLs are valid:
http://rawkes.com.woopra-ns.com/visit/ra=RTQE96Y6BFVTG8BQ9MQZE9CPAIC85Z39&cookie=R93U390OEXA93DSSGVQ166PUYBM8G9Q9&vid=-1&meta=MzYxNzI3JjMmNCYyMTMmMTMzODM2MjM1MjQ3MyYxMzM4MzYyOTk0MTc3JiYxMDAmJjImJiYm&alias=rawkes.com&language=en-US&page=%2F&pagetitle=Exploring%20the%20Frontiers%20of%20Online%20Media%20%7C%20Rawkes&referer=&screen=1920x1200&localtime=10%3A29
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Panos Astithas [:past] from comment #2)
> I'm not even sure such URLs are valid
Sometimes I'm surprised the whole internet thing even works...
Assignee | ||
Updated•13 years ago
|
Summary: Too large script labels in cnn.com → Too large script labels in various pages
Assignee | ||
Comment 5•13 years ago
|
||
I just realized that until now, the whole "for (let i = 0; i < vs._scripts.itemCount; i++)" check for script urls was incorrect, because there was no 1:1 relationship between the test urls array and the actual added urls in the dropdown. This means that, although it worked and the order wasn't important, not all the urls were tested. Fixed in this version.
Attachment #628299 -
Attachment is obsolete: true
Attachment #628299 -
Flags: review?(past)
Attachment #628301 -
Flags: review?(past)
Reporter | ||
Comment 6•13 years ago
|
||
Comment on attachment 628301 [details] [diff] [review]
v1.1
Review of attachment 628301 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Attachment #628301 -
Flags: review?(past) → review+
Reporter | ||
Updated•13 years ago
|
Whiteboard: [land-in-fx-team]
Comment 7•13 years ago
|
||
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Target Milestone: --- → Firefox 15
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•