gecko-dev/devtools/client/inspector/rules
Patrick Brosset d440e92be8 Bug 1499755 - Select the right inline stylesheet on rule-view source url click; r=gl
The code we had to jump to the style-editor when a rule-view source link is clicked did
not make any distinction between multiple inline stylesheets. If you had many of them,
they would all have the same url (i.e. the url of the document, because they are
inline). And we were matching stylesheets in the style-editor by url, so we would
always select the first inline stylesheet.

This change makes use of the fact that the style-editor's selectStyleSheet function
also accept a StyleSheetFront object. When passing this object, there can be no
confusion, because they're all different.

Now, I'm only doing this for inlin stylesheets because other stylesheets have unique
urls and it's important to preserve the previous logic since source-maps may also be
involved.

I'm taking this opportunity to re-enable browser_rules_style-editor-link.js which had
been disabled a long time ago, and removing a part that just doesn't work anymore at
all apparently.

Differential Revision: https://phabricator.services.mozilla.com/D9093

--HG--
extra : moz-landing-system : lando
2018-10-18 15:15:12 +00:00
..
models Bug 1494162 - Part 15: Use the cached css properties in the rules view. r=pbro 2018-09-28 13:14:33 -04:00
test Bug 1499755 - Select the right inline stylesheet on rule-view source url click; r=gl 2018-10-18 15:15:12 +00:00
views Bug 1499755 - Select the right inline stylesheet on rule-view source url click; r=gl 2018-10-18 15:15:12 +00:00
moz.build Bug 1476262 - update moz.build meta data for inspector components. r=pbro 2018-07-17 15:25:07 +03:00
rules.js Bug 1497950 - Ensure CSSRuleView has immediate access to PageStyleFront from inspector; r=gl 2018-10-17 18:10:01 +00:00