Commit Graph

435 Commits

Author SHA1 Message Date
Brian Grinstead
c12c02094f Bug 1172164 - Don't allow the walker to start with a node that it doesn't recognize due to a filter;r=pbrosset 2015-06-09 11:06:28 -07:00
Jennifer Fong
f1c41ff68f Bug 1163183 - Show HTML5 Forms pseudo elements in the rule view. r=bgrins 2015-06-05 14:48:00 -04:00
Patrick Brosset
a496f99b40 Bug 1147826 - Remove deprecated TabActor reference in runAt:server GCLI commands; r=jwalker; r=miker
We used to rely on the TabActor a lot in
/toolkit/devtools/server/actors/highlighter.
This object was being passed around to various highlighter classes, helper
classes and functions.
It was a useful way to get access to the window the highlighters are shown,
listen to DOM events in that window, and also listen to tabActor's will-navigate
events.

Using this object isn't the best idea because it assumes the debugger server is
started and attached to a tab, which makes re-using highlighters outside of this
context impossible (or harder).
Plus we wanted to get rid of the tabActor reference in gcli command contexts.

This change introduces a HighlighterEnvironment that fulfills the requirements
above without relying on a tabActor.
It needs to be initialized either with a tabActor, when we have one (when using
the highlighter from the inspector panel), or with a window (which is what gcli
commands will use).

This change also fixes the highlight command and the rulers command (which
didn't work well with e10s either).

--HG--
extra : rebase_source : 461fbb722877479cbdeb1108dc7d2ca97ca68caa
2015-06-01 14:41:12 +02:00
Gabriel Luong
27a928fdca Bug 1084525 - Part 6: Add onPromiseSettled event handler to PromisesActor r=fitzgen 2015-06-02 14:53:12 -07:00
Gabriel Luong
22dde4881e Bug 1084525 - Part 5: Add onNewPromise event handler to PromisesActor r=fitzgen 2015-06-02 14:53:09 -07:00
Gabriel Luong
d721f8d0e5 Bug 1084525 - Part 4: Add listPromises method to PromisesActor r=fitzgen 2015-06-02 14:52:56 -07:00
Gabriel Luong
78acd7471f Bug 1084525 - Part 3: Add attach and detach methods to PromisesActor r=fitzgen 2015-06-02 14:52:53 -07:00
Gabriel Luong
83a240b339 Bug 1084525 - Part 1: Create initial PromisesActor skeleton r=fitzgen 2015-06-02 14:52:46 -07:00
Gabriel Luong
33de07f14a Bug 1169064 - Part 3: Refactor LongStringActor, createValueGrip, stringIsLong and longStripGrip from script.js to object.js r=fitzgen 2015-05-30 02:05:39 -07:00
Gabriel Luong
9f7a43f362 Bug 1169064 - Part 1: Move ObjectActor to object.js r=fitzgen 2015-05-30 02:05:28 -07:00
Tom Tromey
64eb38d330 Bug 1168088 - Remove SpiderMonkey-specific syntax from toolkit/devtools. r=pbrosset 2015-05-28 11:54:00 -04:00
Nick Fitzgerald
bb41d221a3 Bug 1024774 - Followup: Don't redefine the Debugger property in xpcshell tests;
r=jorendorff
2015-05-28 07:37:43 -07:00
Nick Fitzgerald
bf8b9ad359 Bug 1024774 - Part 13: Change to new SpiderMonkey style from bug 1144366; r=me 2015-05-28 07:37:43 -07:00
Nick Fitzgerald
8f4dd8a443 Bug 1024774 - Part 12: Add a GTest for the JS::ubi::Node specialization for
DeserializedNode; r=jimb
2015-05-28 07:37:43 -07:00
Nick Fitzgerald
887d7debc4 Bug 1024774 - Part 10: Add an xpcshell test for reading heap snapshots. r=jimb 2015-05-28 07:37:43 -07:00
Nick Fitzgerald
e355bde685 Bug 1024774 - Part 6: Add a mochitest-chrome sanity check test. r=bholley 2015-05-28 07:37:42 -07:00
Nick Fitzgerald
dc503d95e1 Bug 1024774 - Part 5: Add GTests for core dump serialization. r=jimb 2015-05-28 07:37:42 -07:00
Nick Fitzgerald
e20ce5640c Bug 1024774 - Part 4: Add an xpcshell test for saving heap snapshots. r=jimb 2015-05-28 07:37:42 -07:00
Patrick Brosset
8c2aaa42cf Bug 1166189 - ESLint configuration files for devtools; r=tromey
Adds a global .eslintrc file for all source files in /browser/devtools.
This file defines a set of global variables that are commonly used in
/browser/devtools code.
The files that import modules with Cu.import will need to define their
own globals as /* globals ... */ comments.
This file also defines the configuration for all the rules we want to
use.

This also adds a set of .eslintrc files, one per test directory in
/browser/devtools. Each of these files extend from one of 2 parent config
files: .eslintrc.xpcshell or .eslintrc.mochitest.
The parent config define the set of globals these types of tests have
access to (test runner functions, assertion functions, etc.).

Finally, this also adds .eslintrc files in /toolkit/devtools for code and
tests, which just extend from their counterparts in /browser/devtools.

--HG--
extra : rebase_source : d7b6f639634b64dc084d0835a5fb36c9720a87e7
2015-05-28 09:30:03 +02:00
Bobby Holley
4b34155f9f Bug 1162187 - Remove ignoreReportedErrors. r=glandium
Now that we don't have to worry about XPCShellErrorReporter being invoked at
weird times, we can get rid of this nastiness - though it unfortunately means
getting rid of one of my best comments in the tree. :-(
2015-05-26 13:51:49 -07:00
Wes Kocher
51fad76ff2 Merge fx-team to m-c a=merge 2015-05-14 15:34:39 -07:00
Dave Camp
3d19c10d18 Bug 892935 - Auto-expand elements with only text in the markup view;r=pbrosset,r=bgrins 2015-05-13 14:55:09 -07:00
Shu-yu Guo
92f95889a0 Bug 1154115 - Fix devtools tests to use the new profiler JSON format. (r=jsantell) 2015-05-11 14:16:44 -07:00
Ehsan Akhgari
1a03395848 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Jim Blandy
bb2e6d29aa Bug 1162067: Ensure test_Debugger.Source.prototype.element.html doesn't get confused by genuine resize events. r=jlongster
--HG--
extra : rebase_source : e0d92f68e3c7fd6952f52278ff9d64c9dd2bbc80
extra : amend_source : ffd8d5cab3b4086391a33027764446789ad738a6
2015-05-07 21:33:35 -07:00
Jim Blandy
48654d46b8 Bug 1162067: Add some debugging output to test_Debugger.Source.prototype.element.html, to catch intermittent failures. r=jlongster
--HG--
extra : rebase_source : 93672173ca2a30e50885d602be48bd1111502557
2015-05-06 14:04:32 -07:00
Jordan Santell
80553d32fb Bug 1145187 - Implement polling for buffer status on performance actor facades. r=vp 2015-05-05 17:12:49 -07:00
Patrick Brosset
92856897c5 Bug 1155653 - Preview animation target nodes in animationinspector panel; r=bgrins
This adds a generic walker method that cna be used to retrieve AnimationPlayerActor's
target DOM nodes in a way that they can be highlighted/selected later in the inspector.
Making the AnimationPlayerActor return the nodeActor directly wouldn't fully work, as
the walker would have missed the missing parent nodeFronts updates.
On the UI, this adds a new component in each PlayerWidget that displays a preview of the
target DOM nodes, highlight them on hover, and select them on click.

--HG--
extra : rebase_source : dfbf459d9de14233f125d028cf81f6b934941ea2
2015-05-04 13:55:51 +02:00
Jordan Santell
8c96d4fc02 Bug 114187 - Add getBufferInfo to devtools profiler actor. r=fitzgen 2015-05-04 11:49:27 -07:00
Patrick Brosset
3a5e7d4a71 Bug 921102 - 3 - Open/copy markup-view attribute links; r=bgrins
This part adds contextual menu items that become enabled when
the user right clicks on an attribute that has a link.
Depending on the nature of the link, a new tab will be opened or a node
selected.
The user can also choose to copy the link in the clipboard.

--HG--
extra : rebase_source : 00128a076003ebac34096d81d9e326bee6631259
extra : histedit_source : c1d67e84e9d57280040e5831233df523fff904e2
2015-05-02 22:37:45 +02:00
ziyunfei
e1db0f779e Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Jordan Santell
3eabbee916 Bug 1145824 - Profiler actor and performance tools now handle
passing in a startTime to filter out SPS profiles on platform rather than
 client. r=vp,fitzgen
2015-04-17 12:44:52 -07:00
Tooru Fujisawa
8a03f610ab Backed out changeset fb84ee59e04a (bug 1145824) for mochitest-other failure 2015-04-25 14:12:21 +09:00
Jordan Santell
ee2bb39767 Bug 1145824 - Profiler actor and performance tools now handle
passing in a startTime to filter out SPS profiles on platform rather than
 client. r=vp,fitzgen
2015-04-17 12:44:52 -07:00
Jan Odvarko
d218e784d4 Bug 1155168 - Always use the same actor pool. r=ochameau
--HG--
extra : rebase_source : 42953e101b99e810c5ab043b1b188246bb696933
2015-04-23 20:10:32 +02:00
Nick Fitzgerald
db0be39304 Bug 1137527 - Part 2: Add a test for GC MemoryActor events. r=jryans
--HG--
extra : rebase_source : ba19473ed6147df6f478fe3f33b1f0aa737d578e
2015-04-23 16:26:00 -04:00
Carsten "Tomcat" Book
bab9dbe9c4 Backed out 19 changesets (bug 1149397, bug 1065657, bug 1024774) for fixing Linux PGO xpcshell bustage on a CLOSED TREE
Backed out changeset 53058615e7a3 (bug 1024774)
Backed out changeset 68fe0894bb09 (bug 1065657)
Backed out changeset 1b9620d674df (bug 1024774)
Backed out changeset a31c514b59da (bug 1024774)
Backed out changeset 0fcf8757f6c2 (bug 1024774)
Backed out changeset 9a3c71b925d4 (bug 1024774)
Backed out changeset 783acc92af04 (bug 1024774)
Backed out changeset ad71c9a3446b (bug 1024774)
Backed out changeset 4f37e72e70f6 (bug 1024774)
Backed out changeset ec869578cc0a (bug 1024774)
Backed out changeset 3c1d306c8a3d (bug 1024774)
Backed out changeset b3a90f30892d (bug 1024774)
Backed out changeset cf7bbb3774c0 (bug 1024774)
Backed out changeset 2522eb4d3cf2 (bug 1024774)
Backed out changeset 89a502d88f9c (bug 1024774)
Backed out changeset 61046ad3161f (bug 1024774)
Backed out changeset 36706aaa2f06 (bug 1024774)
Backed out changeset ba8e68e05149 (bug 1149397)
Backed out changeset 532169437c2f (bug 1065657)

--HG--
rename : toolkit/components/protobuf/src/google/protobuf/extension_set.cc => toolkit/components/protobuf/google/protobuf/extension_set.cc
rename : toolkit/components/protobuf/src/google/protobuf/extension_set.h => toolkit/components/protobuf/google/protobuf/extension_set.h
rename : toolkit/components/protobuf/src/google/protobuf/stubs/atomicops_internals_pnacl.h => toolkit/components/protobuf/google/protobuf/generated_message_util.cc
rename : toolkit/components/protobuf/src/google/protobuf/stubs/stringprintf.h => toolkit/components/protobuf/google/protobuf/generated_message_util.h
rename : toolkit/components/protobuf/src/google/protobuf/io/coded_stream.cc => toolkit/components/protobuf/google/protobuf/io/coded_stream.cc
rename : toolkit/components/protobuf/src/google/protobuf/io/coded_stream.h => toolkit/components/protobuf/google/protobuf/io/coded_stream.h
rename : toolkit/components/protobuf/src/google/protobuf/io/coded_stream_inl.h => toolkit/components/protobuf/google/protobuf/io/coded_stream_inl.h
rename : toolkit/components/protobuf/src/google/protobuf/io/package_info.h => toolkit/components/protobuf/google/protobuf/io/package_info.h
rename : toolkit/components/protobuf/src/google/protobuf/service.cc => toolkit/components/protobuf/google/protobuf/io/zero_copy_stream.cc
rename : toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream.h => toolkit/components/protobuf/google/protobuf/io/zero_copy_stream.h
rename : toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream_impl.h => toolkit/components/protobuf/google/protobuf/io/zero_copy_stream_impl.h
rename : toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc => toolkit/components/protobuf/google/protobuf/io/zero_copy_stream_impl_lite.cc
rename : toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h => toolkit/components/protobuf/google/protobuf/io/zero_copy_stream_impl_lite.h
rename : toolkit/components/protobuf/src/google/protobuf/message_lite.cc => toolkit/components/protobuf/google/protobuf/message_lite.cc
rename : toolkit/components/protobuf/src/google/protobuf/message_lite.h => toolkit/components/protobuf/google/protobuf/message_lite.h
rename : toolkit/components/protobuf/src/google/protobuf/package_info.h => toolkit/components/protobuf/google/protobuf/package_info.h
rename : toolkit/components/protobuf/src/google/protobuf/repeated_field.cc => toolkit/components/protobuf/google/protobuf/repeated_field.cc
rename : toolkit/components/protobuf/src/google/protobuf/repeated_field.h => toolkit/components/protobuf/google/protobuf/repeated_field.h
rename : toolkit/components/protobuf/src/google/protobuf/stubs/common.cc => toolkit/components/protobuf/google/protobuf/stubs/common.cc
rename : toolkit/components/protobuf/src/google/protobuf/stubs/common.h => toolkit/components/protobuf/google/protobuf/stubs/common.h
rename : toolkit/components/protobuf/src/google/protobuf/stubs/hash.h => toolkit/components/protobuf/google/protobuf/stubs/hash.h
rename : toolkit/components/protobuf/src/google/protobuf/stubs/once.cc => toolkit/components/protobuf/google/protobuf/stubs/once.cc
rename : toolkit/components/protobuf/src/google/protobuf/stubs/once.h => toolkit/components/protobuf/google/protobuf/stubs/once.h
rename : toolkit/components/protobuf/src/google/protobuf/stubs/stl_util.h => toolkit/components/protobuf/google/protobuf/stubs/stl_util-inl.h
rename : toolkit/components/protobuf/src/google/protobuf/wire_format_lite.cc => toolkit/components/protobuf/google/protobuf/wire_format_lite.cc
rename : toolkit/components/protobuf/src/google/protobuf/wire_format_lite.h => toolkit/components/protobuf/google/protobuf/wire_format_lite.h
rename : toolkit/components/protobuf/src/google/protobuf/wire_format_lite_inl.h => toolkit/components/protobuf/google/protobuf/wire_format_lite_inl.h
2015-04-23 08:37:24 +02:00
Wes Kocher
a79764cf6b Merge inbound to m-c a=merge CLOSED TREE 2015-04-22 17:15:53 -07:00
Nick Fitzgerald
9b739f4fd0 Bug 1024774 - Followup: Don't redefine the Debugger property in xpcshell tests on a CLOSED TREE; r=jorendorff 2015-04-22 13:19:48 -07:00
Nick Fitzgerald
6e0841b4f5 Bug 1024774 - Part 13: Change to new SpiderMonkey style from bug 1144366; r=me 2015-04-22 11:09:55 -07:00
Nick Fitzgerald
c54f2570b3 Bug 1024774 - Part 12: Add a GTest for the JS::ubi::Node specialization for
DeserializedNode; r=jimb
2015-04-22 11:09:54 -07:00
Nick Fitzgerald
d000a5ce40 Bug 1024774 - Part 10: Add an xpcshell test for reading heap snapshots. r=jimb 2015-04-22 11:09:54 -07:00
Nick Fitzgerald
c66579bc06 Bug 1024774 - Part 6: Add a mochitest-chrome sanity check test. r=bholley 2015-04-22 11:09:54 -07:00
Nick Fitzgerald
a4bd068288 Bug 1024774 - Part 5: Add GTests for core dump serialization. r=jimb 2015-04-22 11:09:54 -07:00
Nick Fitzgerald
6b7167b4d6 Bug 1024774 - Part 4: Add an xpcshell test for saving heap snapshots. r=jimb 2015-04-22 11:09:54 -07:00
Patrick Brosset
b2a9538957 Bug 1155651 - Return all players below a node in getAnimationPlayersForNode; r=miker
Now when the front requests the list of AnimationPlayers for a node,
all players for this node + the nodes in its subtree are returned.
Also the mutationobserver starts observing all mutations in the node
and its subtree.

--HG--
extra : rebase_source : c419bd2f397617317fa9c9d0b7fd22f07abc12cf
2015-04-21 09:22:30 +02:00
Nick Fitzgerald
b52a48f101 Bug 1156865 - Re-enable RDP logging in debugger xpcshell tests; r=jlongster 2015-04-21 11:13:01 -07:00
Jennifer Fong
7836d45e7a Bug 901250 - Add scroll into view menu item for the inspector. r=bgrins 2015-04-17 11:03:24 -07:00
Patrick Brosset
a53d2ad7da Bug 1149999 - 2 - Send animation removed events to the animation-panel for re-starting transitions; r=past
When transitions re-start (when a css class is toggled for instance), new AnimationPlayer objects
are created everytime. But now (since bug 1122414) names are given for AnimationPlayers that
correspond to transitions, and so we can use that to know when a transition re-starts on a node
and therefore send the correct events to the animation-panel.

--HG--
extra : rebase_source : 06fb4699438939efb42b363cbfabd0430a15d8c3
extra : histedit_source : 8d4ea42715c50be4138289613a6b7fda0a69e3c6
2015-04-16 10:20:21 +02:00
Patrick Brosset
292adfbff7 Bug 1121528 - Avoid the inspector going blank when quickly navigating; r=bgrins
This prevents the WalkerActor from failing at handling various requests when
those requests are about DeaedNodes. Indeed, the async nature of the devtools
protocol means that the client could be asking for information about a node that
doesn't exist anymore because it was part of a page that was navigated away from.
The WalkerActor should know how to deal with such cases, so the patch adds a
number of early returns and a new test for them.
This helps avoiding the inspector-panel from going blank in some edge cases.

--HG--
extra : rebase_source : 26ef72eee71334f6fe467d46a486768296035b8a
extra : histedit_source : 697ddbd179ec2992706f20ca7baccbd4f90f9175%2C6e1130e38ed538809f3ee16fd9a5291fe60a85c1
2015-04-17 12:09:58 +02:00