Commit Graph

33 Commits

Author SHA1 Message Date
Phil Ringnalda
7b80069fd3 Back out 85ce4ef19b93 (bug 1179048) for a wide variety of devtools test failures 2015-07-01 20:18:09 -07:00
Eric Rahm
a1a1e3c758 Bug 1179048 - Use mouseout instead of mouseleave in devtools. r=fitzgen
Using mouseleave in chrome code generates a warning in docshell about
performance which notes mouseout should be used instead. This patch replaces
usage of mouseleave with mouseout across the devtools codebase.
2015-07-01 17:27:14 -07:00
Patrick Brosset
9196a7965e Bug 1170477 - 2 - Fix undefined inspector.strings accessor in breadcrumbs; r=tromey
The only user of the l10s inspector strings bundle is a string that this
change removes.
The "Siblings" string is supposed to tell users that the section of the
menu that follows contains sibling nodes, but it's disabled (and looks like
an item you should normally be able to click on), and it's separated from
the list of siblings by a horizontal separator (making it look like even
less related to the next section).

Also fixed the fact that the inspector context menu was regenerated for
every sibling found on the current node.

Also fixed the fact that the inspector context menu would not appear when
right clicking on the documentElement breadcrumb node.
2015-06-02 11:49:11 +02:00
Patrick Brosset
a0fea1dcf4 Bug 1170477 - 1 - Quick code cleanup for better eslint compliancy; r=tromey 2015-06-02 11:26:24 +02:00
Patrick Brosset
923cdc222d Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans 2015-05-22 20:50:01 +02:00
Patrick Brosset
7c632b0f8d Bug 966787 - 2 - Skip inspector breadcrumb updates when the output doesn't change; r=bgrins
Whenever something changed on the selected element (pseudo, attribute), the
breadcrumbs widget used to loop over all breadcrumbs buttons and re-create the
markup for each.
Now, we cache a string version of the text displayed in a button and compare
the new value to that in the loop, to skip DOM updates.

Additionally, the breadcrumbs widget used to update itself after all markup mutations
in the DOM tree displayed in the inspector. The update method now looks at the mutations
array and early return if none of them actually impact the displayed breadcrumbs.
2015-04-13 10:22:05 +02:00
Patrick Brosset
ddd1789411 Bug 966787 - 1 - Code cleanup in breadcrumbs.js; r=bgrins
For a better consistency with the rest of the DevTools codebase.
2015-04-08 12:16:25 +02:00
Sami Jaktholm
eb638365c2 Bug 940542 - Use Promise.jsm instead of deprecated-sync-thenables in Inspector. r=pbrosset 2014-12-16 10:06:00 -05:00
Brian Grinstead
8cb3638a5d Bug 920141 - Add support for inspecting anonymous content. r=pbrosset 2014-09-29 09:29:00 +02:00
Jayesh Choudhari
ae8aa8bcde Bug 993445 - Highlight nodes on hover of breadcrumbs. r=pbrosset, r=bgrins 2014-07-30 15:46:00 -04:00
Patrick Brosset
3ea0049432 bug 1034601 - Enable devtools/markupview tests with e10s; r=bgrins 2014-07-16 22:17:30 +02:00
Patrick Brosset
1ceab3ef0e Bug 1032801 - Avoid unhandled promise chain rejection in browser_inspector_pseudoClass_menu.js. r=jwalker 2014-07-01 06:32:00 +02:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Vikneshwar
ee78456672 Bug 1003546 - Use Arrow function instead of bind(). r=fitzgen 2014-06-14 06:49:00 -04:00
Paolo Amadini
6d99e32a9f Bug 995184 - Copy the legacy "promise.js" implementation from the Add-on SDK to devtools. r=past 2014-04-22 20:55:01 +01:00
Brandon Benvie
4520a9d6f2 Bug 943510 - Convert to Promise.jsm in the devtools framework. r=pbrosset, r=rcampbell 2014-03-17 11:11:00 -07:00
Michael Ratcliffe
2e943c9d37 Bug 663778 - Misc fixes r=pbrosset 2014-03-09 17:03:00 +00:00
Ryan VanderMeulen
c633e65783 Backed out 6 changesets (bug 663778) for browser_dbg_listtabs-02.js leaks on a CLOSED TREE.
Backed out changeset cbd200206f9b (bug 663778)
Backed out changeset b0b74401e614 (bug 663778)
Backed out changeset df5255cffbfa (bug 663778)
Backed out changeset e6d0dd124356 (bug 663778)
Backed out changeset 134f77474941 (bug 663778)
Backed out changeset 456609873c5f (bug 663778)
2014-03-13 13:56:22 -04:00
Michael Ratcliffe
2b2ceb04c1 Bug 663778 - Misc fixes r=pbrosset 2014-03-13 15:46:37 +00:00
Brian Grinstead
9c694d75ea Bug 936421 - Update the breadcrumbs as per Shorlander's new designs. OVERRIDE HOOK;r=pbrosset 2014-01-30 14:24:30 -06:00
Brian Grinstead
0a70d2822a Bug 931990 - [markup view] Context menu disappearing in markup tree during after mutation; r=paul 2013-11-07 13:03:40 -06:00
Patrick Brosset
c91397515c Bug 848731 - Deleting nodes or container frames now resets the markup, highlighter, css views accordingly, r=paul 2013-10-02 02:14:00 +02:00
Paul Rouget
388eb4197a Bug 897960 - walker should support mozbrowser iframes. Patch C. r=dcamp 2013-09-08 11:01:00 +02:00
Blair McBride
b059ed329c Backout 86b5d8778fc4,fab07b9d6dee,89a059433037,bbb54cde82c3 (bug 897960) due to orange 2013-09-09 12:45:31 +12:00
Paul Rouget
b22ebeaf0b Bug 897960 - walker should support mozbrowser iframes. r=dcamp 2013-09-08 11:01:00 +02:00
Paul Rouget
5160d5c7ff Bug 912915 - Implement a simple generic highlighter. r=jwalker 2013-09-07 11:39:50 +02:00
Paul Rouget
b61a1f2a00 Bug 898918 - many files have wrong mode-lines in comments. r=robcee 2013-08-01 10:53:31 +02:00
Dave Camp
75a11161fe Bug 891357 - iframes don't appear in breadcrumbs. r=robcee 2013-07-23 14:42:12 -07:00
Dave Camp
c47c604d17 Bug 886036 - Port pseudoclass lock to the inspector actor. r=harth 2013-06-10 21:18:46 -07:00
Dave Camp
99949a06bb Bug 879520 - Remote the inspector breadcrumbs. r=paul 2013-06-07 14:33:39 -07:00
Dave Camp
31ce67e5e0 Bug 855914 - Start using the jetpack loader in devtools. r=jwalker, f=ochameau 2013-04-11 13:59:08 -07:00
Dave Camp
a5c65f65e2 Backed out changeset 9117c7ad29d5 for MaxHeap regression. 2013-04-28 14:42:23 -07:00
Dave Camp
fee966b388 Bug 855914 - Start using the jetpack loader in devtools. r=jwalker, f=ochameau 2013-04-11 13:59:08 -07:00