gecko-dev/devtools/client
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
..
aboutdebugging Backed out changeset b062b1682bbd (bug 1495855) for failures on browser_addons_debug_info.js. CLOSED TREE 2018-10-17 19:23:45 +03:00
aboutdebugging-new Bug 1488506 - Add mochitest for enable/disable USB debugging in Connect page;r=ladybenko,daisuke 2018-10-18 14:34:15 +00:00
accessibility Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes 2018-10-15 08:36:12 +00:00
application Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes 2018-10-15 08:36:12 +00:00
canvasdebugger Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes 2018-10-15 08:36:12 +00:00
debugger Bug 1499333 - Rename all "worker client" to "worker target front". r=jdescottes 2018-10-18 07:21:02 +00:00
dom Bug 1397020 - Remove useless calls to TabTarget.attach r=yulia 2018-09-26 21:11:51 +00:00
framework Bug 1499710 - Remove autohideOnDestroy trait; r=ochameau 2018-10-18 14:10:59 +00:00
inspector Bug 1499755 - Select the right inline stylesheet on rule-view source url click; r=gl 2018-10-18 15:15:12 +00:00
jsonview Bug 1458224 - Fix Linux root font size in DevTools; r=pbro,nchevobbe 2018-10-02 16:46:45 +00:00
locales Bug 1495717 - More user-friendly Flex item sizing information; r=gl 2018-10-12 08:46:34 +00:00
memory Bug 1488375 - Use target.getFront to instantiate MemoryFront; r=ochameau 2018-10-17 10:36:33 +00:00
netmonitor Bug 1495551 - Rename all "tab client" occurences to "target front". r=jdescottes 2018-10-16 18:45:33 +00:00
performance Bug 1492613 - Use document.createXULElement in performance tool and scratchpad when we explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:18:59 +00:00
performance-new Bug 1457481 - Hook up the new devtools performance panel to nsIProfiler.getSymbolTable. r=gregtatum 2018-10-02 01:52:32 +00:00
preferences Bug 1499614 - Enable top-level await support on every release channel; r=Honza. 2018-10-18 10:10:37 +00:00
responsive.html Bug 1497905 - Avoid destroying the markup iframe on navigation. r=pbro 2018-10-14 22:26:05 -04:00
scratchpad Bug 1497644 - Always call Root actor's getProcess request via RootClient.getProcess r=yulia 2018-10-11 16:26:45 +00:00
shadereditor Bug 1485660 - Special test fixes. r=jdescottes 2018-10-15 08:36:15 +00:00
shared Bug 1499333 - Rename all "worker client" to "worker target front". r=jdescottes 2018-10-18 07:21:02 +00:00
sourceeditor Bug 1471163 - Remove devtools floating scrollbars and set scrollbar-color on Linux; r=jdescottes 2018-10-14 17:14:10 +00:00
storage Bug 1488374 - Use target.getFront to instantiate StorageFront; r=ochameau 2018-09-30 06:55:23 +00:00
styleeditor Bug 1488378 - Use target.getFront to instantiate CSSUsageFront; r=ochameau 2018-10-08 10:53:50 +00:00
themes Merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-10-18 02:02:07 +03:00
webaudioeditor Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes 2018-10-15 08:36:12 +00:00
webconsole Bug 1499070 - Fix timestamp for evaluation result; r=Honza. 2018-10-18 09:41:53 +00:00
webide Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes 2018-10-15 08:36:10 +00:00
webreplay Revert "Backed out changeset edc506b37439 (bug 1495300) for failing at /browser_toolbox_options_disable_buttons.js on a CLOSED TREE" 2018-10-05 10:28:46 -04:00
.eslintrc.js Bug 1451821 - Move new-console-output content one folder up; r=jdescottes. 2018-04-06 15:03:20 +02:00
definitions.js Bug 1499056 - Use target.getFront for screenshot front; r=ochameau 2018-10-17 10:40:48 +00:00
jar.mn Bug 1317076 - Making navigation marker more obvious; r=nchevobbe 2018-10-17 15:11:28 +00:00
menus.js Bug 1493131 - use custom memoization for the inspector; r=ochameau 2018-10-05 08:39:47 +00:00
moz.build Bug 1495341 - Place Web Replay menu items in their own submenu, r=jlast. 2018-10-01 09:41:32 -10:00