Closed Bug 690419 Opened 13 years ago Closed 12 years ago

Script debugger picks the wrong highlighting engine in URLs with a query string

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: past, Assigned: past)

References

Details

Attachments

(2 files, 3 obsolete files)

The conditional that picks between JavaScript and HTML source highlighting should strip the query string from the URL first.
Component: Developer Tools → Developer Tools: Debugger
QA Contact: developer.tools → developer.tools.debugger
Priority: -- → P2
A similar issue is that the highlighting engine is not updated when the selected script is changed.
Assignee: nobody → past
Status: NEW → ASSIGNED
Attached patch Working patch (obsolete) — Splinter Review
This patch fixes both issues.
Attachment #592167 - Flags: review?(dcamp)
Attached patch Working patch v2 (obsolete) — Splinter Review
Improved the mochitest a bit.
Attachment #592167 - Attachment is obsolete: true
Attachment #592167 - Flags: review?(dcamp)
Attachment #592700 - Flags: review?(dcamp)
We're fetching source from necko, right?  Can we do this with server-provided content types rather than filename sniffing?
Attached patch Working patch v3 (obsolete) — Splinter Review
(In reply to Dave Camp (:dcamp) from comment #4)
> We're fetching source from necko, right?  Can we do this with
> server-provided content types rather than filename sniffing?

Yep, for non-local scripts we sure can. Thanks!
Attachment #592700 - Attachment is obsolete: true
Attachment #592700 - Flags: review?(dcamp)
Attachment #594147 - Flags: review?(dcamp)
Attachment #594147 - Flags: review?(dcamp) → review+
Made a small test fix required after the last merge with fx-team.
Attachment #594147 - Attachment is obsolete: true
Attachment #595828 - Flags: review?(dcamp)
These are the changes.
Attachment #595828 - Flags: review?(dcamp) → review+
Whiteboard: [land-in-fx-team]
Attachment #595828 - Attachment description: Working patch v4 → [in-fx-team] Working patch v4
https://hg.mozilla.org/integration/fx-team/rev/7b6bf801d765
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/7b6bf801d765
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 13
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: