Commit Graph

2 Commits

Author SHA1 Message Date
Patrick Brosset
0016a8a5bb Bug 1158822 - Link css url attributes to style-editor and js url attributes to debugger; r=jsantell
The node-attribute-parser now marks uris to css and js files as cssresource and jsresource.
Thanks to this, the inspector can open the corresponding files in the style-editor and
debugger rather than just opening a new tab with the source.
This makes use of 2 new toolbox methods: viewSourceInStyleEditor and viewSourceInDebugger.
2015-05-04 09:23:04 +02:00
Patrick Brosset
c2c0627641 Bug 921102 - 1 - Linkify URIs in the inspector; r=tromey, miker
This first part adds a parser for node attributes which, given some node
information and an attribute name, generates a small AST-like array of
objects that tells which parts of the attribute (if any) are links, and
what they link to.
Using this, the markup-view generates the right HTML structure to display
these parts as links.
This part 1 doesn't yet allow users to follow these links.
2015-04-30 10:43:04 +02:00