Closed
Bug 1006231
Opened 10 years ago
Closed 10 years ago
Style Editor should load original source's content from the map's `sourcesContent` if it exists
Categories
(DevTools :: Style Editor, defect)
DevTools
Style Editor
Tracking
(firefox31 fixed, firefox32 fixed)
RESOLVED
FIXED
Firefox 32
People
(Reporter: harth, Assigned: harth)
Details
Attachments
(1 file, 1 obsolete file)
16.14 KB,
patch
|
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Right now the Style Editor fetches the content of the original source from its resolved location. We should be getting the content from the `sourcesContent` property of the source map, if it exists. The debugger does this already. We should really share some of this code at some point.
Assignee | ||
Comment 1•10 years ago
|
||
Small fix. Also refactored the source maps test and added a test for a self contained sourcemap in a data url. Fixed a "TypeError: this.rawSheet.ownerNode.ownerDocument.location is null" that was cropping up when I ran the test.
Assignee: nobody → fayearthur
Attachment #8419192 -
Flags: review?(nfitzgerald)
Comment 2•10 years ago
|
||
Comment on attachment 8419192 [details] [diff] [review] Look at 'sourcesContent' before fetching, add test for self contained sourcemap Review of attachment 8419192 [details] [diff] [review]: ----------------------------------------------------------------- Looks great!
Attachment #8419192 -
Flags: review?(nfitzgerald) → review+
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•10 years ago
|
||
Patch from before, but with a test change to fix an intermittent it introduced. Try: https://tbpl.mozilla.org/?tree=Try&rev=a5799f0a6a54
Attachment #8419192 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/6719d530f795
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6719d530f795
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Nick Fitzgerald [:fitzgen] from comment #6) > Heather, we should probably uplift this, yeah? Yeah, def, let's wait a bit for it to bake.
Flags: needinfo?(fayearthur)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8419741 [details] [diff] [review] To check in, patch with orange fix [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 926014 User impact if declined: A significant number of people using source maps in the developer tools will see empty files in the Style Editor - making it useless. One user reached out over twitter to report this bug. Testing completed (on m-c, etc.): This has been on mozilla-central for several days, has tests. Risk to taking this patch (and alternatives if risky): Nothing known. String or IDL/UUID changes made by this patch: None.
Attachment #8419741 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
status-firefox31:
--- → affected
status-firefox32:
--- → fixed
Updated•10 years ago
|
Attachment #8419741 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Flags: in-testsuite?
Comment 10•10 years ago
|
||
Heather, should I mark this as being in-testsuite? You mentioned it has tests but didn't flag it.
Flags: needinfo?(fayearthur)
Updated•10 years ago
|
Flags: in-testsuite? → in-testsuite+
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•