Commit Graph

2016 Commits

Author SHA1 Message Date
yulia
72f9e83eb1 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Summary: Depends on D6477

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : rebase_source : ae52db7b028b4d866d8a363eae9ae7c124714458
2018-09-26 10:09:15 +02:00
yulia
29af71d6af Bug 1473513 - resolve memory leak
Summary: Depends on D6476

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 61ccae905e3136ad3c293db692551786e83075c7
2018-09-26 10:08:43 +02:00
yulia
dd29e366ea Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
Summary:
MozReview-Commit-ID: FNMK4f553yI

Depends on D6474

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : c61d394da0a20991def49968f01ee563fea9afde
2018-09-26 10:07:27 +02:00
yulia
9c120b705d Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
Summary:
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Reviewers: ochameau

Reviewed By: ochameau

Subscribers: reviewbot

Bug #: 1473513

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

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 3ea4edd91ca8b09ad5e25ae01df885c587bee7b1
2018-09-26 10:06:43 +02:00
yulia
0c9522358e Bug 1473513 - Ensure that actorPools in root are destroyed on destroy; r=ochameau
Summary: Depends on D6472

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 075dd9b2128adf04f0bbf6fc7f0708ca532a49aa
2018-09-26 10:06:00 +02:00
yulia
e1c0e43fff Bug 1473513 - remove other instances of ActorPool from browsingContext and root; r=ochameau
Summary:
MozReview-Commit-ID: GxkLzvxJgdY

Depends on D6471

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 8877be9e01d379375a167c58c61d94efd4997e19
2018-09-26 10:05:31 +02:00
yulia
4a8f74eb3e Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
Summary:
create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor;

Depends on D6468

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
rename : devtools/server/actors/common.js => devtools/shared/protocol/lazy-pool.js
extra : rebase_source : 09a1c8eac3cbb5856a5e3e61a1c0540efe32e5bd
2018-09-26 10:03:33 +02:00
yulia
7caf289dbe Bug 1473513 - use Protocol.js pools for workerTargetActorPool in Target Actors; r=ochameau
Summary: MozReview-Commit-ID: 5uIWwOR7CHp

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : b5f560e404727a168c5b35924961a49c51b849df
2018-09-26 10:02:54 +02:00
Logan F Smyth
c14f7c8aff Bug 1473996 - Expose fn.apply in the devtools server. r=nchevobbe
Depends on D6722

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

--HG--
extra : moz-landing-system : lando
2018-09-26 16:23:25 +00:00
Logan F Smyth
11febfa688 Bug 1473996 - Expose getPropertyValue in devtools server to fully evaluate an object property. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D6722

--HG--
extra : moz-landing-system : lando
2018-09-26 16:12:56 +00:00
Nicolas Chevobbe
14ff2e3235 Bug 1476656 - Trigger autocomplete on bracket; r=Honza.
This patch adds the ability to open the autocomplete popup when
typing an opening bracket (i.e. `[`]) in the console input.
This impacts a significant amount of function where we assumed
that the only way to get a completion was to use a dot.
We uses the rename `anylyzeInputString` function to get the
completion part from an input, as well as if the user is performing
an element access (i.e., using the bracket).
We then send that information to the webconsole actor, which send
it to the client.
This allows us to rely on a single parse of the input and gives us
access to this information everywhere we need to, be it on the client
or on the server.

We allow the user to type property name without quotes, and we add
them when the user accept an autocompletion.
We also automatically add a closing bracket (i.e. `]`), when it's needed.

Some test are added. On the server side to make sure the actor's autocomplete
function returns what's expected.
We take that as an opportunity to add test for commands.
On the client side, tests are added to ensure the different behavior works
as expected (check the completion text and the input  after accepting
the completion when the user entered some letters, or not, with or without
quotes, with different quotes, hitting the autocomplete cache, …).

A test which accesses the autocomplete cache was modified since the shape
of the cache changed to include the last matchProp as well as the
isElementAccess boolean.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 13:54:35 +00:00
sreeise
847b33d284 Bug 1423201 - Changed uses of defer to new Promise in devtools/server/tests/mochitest r=nchevobbe
Functions using 'defer' for promises are being switched to the 'new Promise' syntax. This is for changes in devtools/server/tests/mochitest.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 02:44:56 +00:00
Alexandre Poirot
816dd96825 Bug 1490927 - Stop sharing maps in NetworkMonitor between all instances. r=Honza
When opening a web console and a browser console, we instantiate two NetworkMonitor
instances in the same process and they need independant states.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 23:26:05 +00:00
Alexandre Poirot
e008acf411 Bug 1473513 - Backed out changeset 0e431edddacd for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 1BlQk4H0c1w

Depends on D6812

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6813
2018-09-25 19:35:14 +03:00
Alexandre Poirot
18a737b18d Bug 1473513 - Backed out changeset 27419719402e for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 43tUMmC1Je0

Depends on D6811

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6812
2018-09-25 19:35:00 +03:00
Alexandre Poirot
67f96eff34 Bug 1473513 - Backed out changeset e56c70bd2f9a for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 9FIL35Nq726

Depends on D6809

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6810
2018-09-25 19:34:43 +03:00
Alexandre Poirot
bb3ecc7ca4 Bug 1473513 - Backed out changeset c690d2383ca4 for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: KSgxXnGdsJk

Depends on D6808

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6809
2018-09-25 19:34:35 +03:00
Alexandre Poirot
1255c658b2 Bug 1473513 - Backed out changeset d72f6ff37ca6 for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: LKPmFrhaQ5q

Depends on D6807

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6808
2018-09-25 19:34:26 +03:00
Alexandre Poirot
40272ff560 Bug 1473513 - Backed out changeset f9f12b44a3ab for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 8POm9seFrAk

Depends on D6806

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6807
2018-09-25 19:34:18 +03:00
Alexandre Poirot
e73ec8adf4 Bug 1473513 - Backed out changeset 80c51a6e896e for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 3TCiKetO6fn

Depends on D6804

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6805
2018-09-25 19:34:01 +03:00
Alexandre Poirot
a3c7499a55 Bug 1473513 - Backed out changeset 174fe98999ea for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: GfSX2wYfLrN

Depends on D6803

Bug #: 1473513

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

--HG--
rename : devtools/server/actors/utils/actor-registry.js => devtools/server/actor-registry.js
2018-09-25 19:33:52 +03:00
Alexandre Poirot
8dac98409f Bug 1473513 - Backed out changeset 950ce58bfb24 for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary: MozReview-Commit-ID: 1HAisV9S6ls

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6803
2018-09-25 19:33:43 +03:00
Alexandre Poirot
62fca91459 Bug 1473513 - Fix merge conflict between bug 1473513 and 1485676 against this test. CLOSED TREE
Summary: MozReview-Commit-ID: KyizI0V5pt5

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6778
2018-09-25 17:24:00 +03:00
Margareta Eliza Balazs
5ad86cabda Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-25 12:50:02 +03:00
Margareta Eliza Balazs
ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
yulia
04d870f203 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Depends on D6477

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

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : moz-landing-system : lando
2018-09-25 08:47:10 +00:00
yulia
19b4e8fbe6 Bug 1473513 - resolve memory leak r=ochameau
Depends on D6476

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:06:25 +00:00
yulia
1ad50b5afe Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
MozReview-Commit-ID: FNMK4f553yI

Depends on D6474

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:05:47 +00:00
yulia
e857119004 Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

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

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : moz-landing-system : lando
2018-09-25 08:05:29 +00:00
yulia
08c887b837 Bug 1473513 - Ensure that actorPools in root are destroyed on destroy; r=ochameau
Depends on D6472

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:04:59 +00:00
yulia
54d3f62aa0 Bug 1473513 - remove other instances of ActorPool from browsingContext and root; r=ochameau
MozReview-Commit-ID: GxkLzvxJgdY

Depends on D6471

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:04:41 +00:00
yulia
1cea42cdd7 Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor;

Depends on D6468

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

--HG--
rename : devtools/server/actors/common.js => devtools/shared/protocol/lazy-pool.js
extra : moz-landing-system : lando
2018-09-25 08:03:42 +00:00
yulia
56e91adaa1 Bug 1473513 - use Protocol.js pools for workerTargetActorPool in Target Actors; r=ochameau
MozReview-Commit-ID: 5uIWwOR7CHp

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:02:11 +00:00
Alexandre Poirot
c7a9923fc3 Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
Summary:
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: Exz5fWyWyfN
2018-09-24 09:52:59 -07:00
Alexandre Poirot
fc8714580a Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 09:52:57 -07:00
Alexandre Poirot
082e20e693 Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: JAwiySsBZBu
2018-09-24 09:52:55 -07:00
Alexandre Poirot
1322b8f8a4 Bug 1485676 - Prevent exceptions in the emulation actor when trying to use it while it is already destroyed. r=yulia
Summary: Depends On D4540

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: 2fTZ4WRq9je
2018-09-24 09:52:52 -07:00
Anshul Malik
efdb07ca38 Bug 832983 - Basic support for adding xhr breakpoints r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D5662

--HG--
extra : moz-landing-system : lando
2018-09-21 22:20:37 +00:00
shindli
51a3c01ced Backed out 9 changesets (bug 1485676) for failures in browser/tools/mozscreenshots/devtools/browser_devtools.js CLOSED TREE
Backed out changeset d358feec4ca1 (bug 1485676)
Backed out changeset ed554dbb062f (bug 1485676)
Backed out changeset 6e78058df94d (bug 1485676)
Backed out changeset 3a6f1b0e71f4 (bug 1485676)
Backed out changeset 16d2403aa787 (bug 1485676)
Backed out changeset 454eddf52157 (bug 1485676)
Backed out changeset 926f725f2183 (bug 1485676)
Backed out changeset fb03f174bd5f (bug 1485676)
Backed out changeset ceb93dd1799a (bug 1485676)
2018-09-24 15:27:27 +03:00
Andrea Marchesini
61a7f9a598 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
Alexandre Poirot
d2897f66aa Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
Summary:
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: Exz5fWyWyfN
2018-09-24 01:25:03 -07:00
Alexandre Poirot
796f22b354 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 01:25:02 -07:00
Alexandre Poirot
631e7bfdf9 Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: JAwiySsBZBu
2018-09-24 01:25:01 -07:00
Alexandre Poirot
81c6eab1f0 Bug 1485676 - Prevent exceptions in the emulation actor when trying to use it while it is already destroyed. r=yulia
Summary: Depends On D4540

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: 2fTZ4WRq9je
2018-09-24 01:25:00 -07:00
Gurzau Raul
ad28ad0169 Backed out 9 changesets (bug 1485676) for failing at damp inspector/cold-open.js on a CLOSED TREE
Backed out changeset 4de2e71debfe (bug 1485676)
Backed out changeset e63025150c7a (bug 1485676)
Backed out changeset f9ef30ae3f7f (bug 1485676)
Backed out changeset a83636fab16a (bug 1485676)
Backed out changeset b1fd24929e09 (bug 1485676)
Backed out changeset acb27b915742 (bug 1485676)
Backed out changeset ba2157632772 (bug 1485676)
Backed out changeset d1d6b9bc2372 (bug 1485676)
Backed out changeset d7646ea8640b (bug 1485676)
2018-09-22 19:42:04 +03:00
Alexandre Poirot
f98d0997fe Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
Summary:
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: Exz5fWyWyfN
2018-09-22 08:34:21 -07:00
Alexandre Poirot
8724260e30 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-22 08:34:21 -07:00
Alexandre Poirot
48f5790c9b Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: JAwiySsBZBu
2018-09-22 08:34:20 -07:00
Alexandre Poirot
036625ce21 Bug 1485676 - Prevent exceptions in the emulation actor when trying to use it while it is already destroyed. r=yulia
Summary: Depends On D4540

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: 2fTZ4WRq9je
2018-09-22 08:34:20 -07:00
Brindusan Cristian
4c389d3514 Backed out changeset 70d1a0c0270c (bug 832983) for devtools failures on /test/browser_inspector_pseudoclass-lock.js. CLOSED TREE 2018-09-21 23:23:59 +03:00