Commit Graph
2283 Commits
Author SHA1 Message Date
Alexandre Poirot d06be892b2 Bug 1509315 - Remove unecessary calls to listTabs. r=yulia
These tests are calling listTabs, but that is no longer necessary thanks to rootForm
being automatically managed within RootFront.

MozReview-Commit-ID: AmC6dTIJjiY

Depends on D12732

Differential Revision: https://phabricator.services.mozilla.com/D12733
2018-11-27 21:48:03 +00:00
Alexandre Poirot b402ba2756 Bug 1509315 - Remove leftover from debugger head.js file. r=yulia
I also removed the get root form leftover.

MozReview-Commit-ID: DxPwG9a5YAG

Depends on D12731

Differential Revision: https://phabricator.services.mozilla.com/D12732
2018-11-27 21:48:01 +00:00
Alexandre Poirot 0205bcb97a Bug 1509315 - Use TargetFactory.forTab for creating targets in tests. r=yulia
There is 4 patterns here:
* Tests using attachThreadActorForUrl like event-listeners ones. I augmented this helper method to call TargetFactory.
* Tests using attachTargetActorForUrl like debugger-statement, dbg-navigation and target-scoped-actor. Uses TargetFactory directly.
* Tests using connectDebuggerClient like navigateEvents and spaw_actor_in_parent. Uses TargetFactory directly.
* All the others, where creating DebuggerClient on their own, and calling listTabs+attachTarget. They now use TargetFactory directly.

A note about webconsole-helpers, only consoleClient attribute was used from tests using this helper.
Also, in various tests I remove the call to client.destroy, that's because shared-head will
close all the tabs/toolboxes and it should lead to target/client destruction.
Finally, debugger-statement now request the thread actor via the client instead of manual request,
it should help the refactoring to a front!

MozReview-Commit-ID: 2ah4UmSjuoi

Depends on D12730

Differential Revision: https://phabricator.services.mozilla.com/D12731
2018-11-27 21:47:59 +00:00
Alexandre Poirot 2c7d0fee4e Bug 1509315 - Pass the full target form to all BrowsingContextTargetFront instances. r=yulia
For now, we only pass { actor } for all tab target fronts created via DebuggerClient.attachTarget,
whereas parent process target fronts were passing the full form from RootFront.getProcess.

MozReview-Commit-ID: 1H2NxFv8glY

Differential Revision: https://phabricator.services.mozilla.com/D12730
2018-11-27 21:47:52 +00:00
Alexandre Poirot 6d6a725f9b Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 19:17:48 +00:00
Alexandre Poirot f2cc564831 Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575
2018-11-27 19:18:06 +00:00
Razvan Caliman 5d8e8e0263 Bug 1503924 - Mark style sources from iframes in the Changes panel. r=gl
Depends on D12590

Differential Revision: https://phabricator.services.mozilla.com/D12697
2018-11-26 05:02:06 +00:00
Andreea Pavel 2e1438afd5 Backed out 7 changesets (bug 1506546) fo failing devtools at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js on a CLOSED TREE
Backed out changeset fbe3f2183f32 (bug 1506546)
Backed out changeset 8972a2f14015 (bug 1506546)
Backed out changeset 00fe26234b3d (bug 1506546)
Backed out changeset 7d8e650e25c2 (bug 1506546)
Backed out changeset a293a37483b9 (bug 1506546)
Backed out changeset 7b75250a4f12 (bug 1506546)
Backed out changeset 23ad29cb776e (bug 1506546)
2018-11-27 14:37:14 +02:00
Alexandre Poirot 215fe5609a Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 11:23:22 +00:00
Alexandre Poirot caf7aef5cd Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575
2018-11-27 11:23:20 +00:00
Michael Ratcliffe ff9510a7d4 Bug 1509543 - Add missing option parameter comment to devtools/server/actors/styles.js::getComputed() r=rcaliman
Rasvan, if you could r+ this for me then that would be great.

Differential Revision: https://phabricator.services.mozilla.com/D12779
2018-11-26 09:41:36 +00:00
Nazım Can Altınova eb059f7d89 Bug 1476775 - Part 2: Change the profiler usage in devtools after API change r=julienw,gregtatum
Depends on D6267

Differential Revision: https://phabricator.services.mozilla.com/D6268
2018-11-23 16:10:08 +00:00
Razvan Caliman d21ce8366a Bug 1506751 - Re-assign listeners for Observable instances that monitor TargetActor windows on navigate. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D12560
2018-11-23 15:46:26 +00:00
Narcis Beleuzu c1ff465f3a Backed out changeset 0fa44cb3f4b6 (bug 1506751) for xpcshell failures on reflow.js 2018-11-23 16:46:26 +02:00
Razvan Caliman 3eb9fa7482 Bug 1506751 - Re-assign listeners for Observable instances that monitor TargetActor windows on navigate. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D12560
2018-11-23 13:19:44 +00:00
Daniel Varga e28f73ced2 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-22 23:53:13 +02:00
Alexandre Poirot f957d16f3d Bug 1508287 - Refactor server xpcshell tests that do not pass in worker context. r=yulia
MozReview-Commit-ID: 4qGo1ZF7ITC

Depends on D12311

Differential Revision: https://phabricator.services.mozilla.com/D12312
2018-11-22 15:23:26 +00:00
Alexandre Poirot 2f1e127be2 Bug 1508287 - Refactor xpcshell tests using custom principal. r=yulia
MozReview-Commit-ID: 3a9IB4XFjff

Depends on D12310

Differential Revision: https://phabricator.services.mozilla.com/D12311
2018-11-22 15:23:24 +00:00
Alexandre Poirot f381d2e193 Bug 1508287 - Refactor most debugger server test using run_test_with_server to share more code. r=yulia
There is a lot of code being copy paste in all these tests
and as I'm most likely going to change things around them in the near future
regarding fission, it would be better if we start sharing more code.

After this there is still a couple of copy paste code (but way less!):
* breakpoints: wait a paused event and eval a custom script in a sandbox
* object grips: set the security.allow_eval_with_system_principal pref, eval stopMe and wait for paused
* stepping: use executeOnNextTickAndWaitForPause to eval a custom script and wait for pause while doing this only on next tick

There is most likely more to share, but at least this isn't framework code, but now only code specific to the debugger.

MozReview-Commit-ID: JgD389cas2j

Depends on D12309

Differential Revision: https://phabricator.services.mozilla.com/D12310
2018-11-22 15:23:22 +00:00
Brian Hackett 38d1c5dcad Bug 1508314 Part 3 - Clear out stepping hooks via ReplayDebugger, r=lsmyth. 2018-11-20 14:27:18 -10:00
Brian Hackett 2723817b12 Bug 1506718 - Tolerate exceptions being thrown when getting environment names, r=lsmyth. 2018-11-20 12:00:12 -10:00
Coroiu Cristina 4e386258b7 Merge inbound to mozilla-central a=merge 2018-11-21 23:43:13 +02:00
Brian Hackett 228cd8f616 Bug 1508314 Part 2 - Use parent frame's location when finding step offsets, r=jlast. 2018-11-19 14:09:56 -10:00
Michael Ratcliffe 93d38f4504 Bug 1507733 - Multiple flex-badges can appear active, even though just a single highlighter is visible on page r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D12566
2018-11-21 17:19:36 +00:00
Michael Ratcliffe 5b30e0d380 Bug 1499630 - Text nodes that are flex items aren't highlighted correctly in the flexbox highlighter when they wrap r=gl
Depends on D11654 and D12307

Differential Revision: https://phabricator.services.mozilla.com/D12313
2018-11-21 14:20:30 +00:00
Michael Ratcliffe b8554c5c0f Bug 1505578 - Flexbox highlighter is offset when container contains padding r=gl
Differential Revision: https://phabricator.services.mozilla.com/D11654
2018-11-21 17:04:35 +00:00
yulia 9003a64fc0 bug 1507146 - add await to all target.getFront calls in async callsites; r=ochameau
Depends on D11885

Differential Revision: https://phabricator.services.mozilla.com/D11886
2018-11-14 15:11:59 +00:00
Micah Tigley d478bb9f3d Bug 1503347 - Modify the Flex Item actor to consider CSS rules using the important keyword. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D11789
2018-11-20 22:19:58 +00:00
Brian Hackett 95d2bb25c6 Bug 1508088 - Don't start new recording when navigating from blank tab, r=jlast. 2018-11-17 11:28:50 -10:00
Luke Wagner aacef9712c Bug 1492301 - Baldr: remove unneeded Debugger.allowWasmBinarySource option (r=yury) 2018-11-19 16:45:51 -06:00
Julian Descottes 8f65cf7e89 Bug 1498143 - Pass nodeActorID to screenshot actor to enable feature in iframes and shadowroots;r=pbro,yulia
Differential Revision: https://phabricator.services.mozilla.com/D12124
2018-11-19 13:27:51 +00:00
Patrick Brosset ad9ef02ac1 Bug 1506792 - Bail out when trying to get getComputedStyle for a non attached node; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D12117
2018-11-19 10:55:45 +00:00
Brian Hackett b68dc1ad51 Bug 1507359 Part 3 - Control pausing and resuming in ReplayDebugger, r=lsmyth. 2018-11-17 07:59:33 -10:00
Jason Laster 609c5a77d9 Bug 1504222 - Notify the client when devtools goes from replaying to recording. r=dwalsh
Tags:

Bug #: 1504222

Differential Revision: https://phabricator.services.mozilla.com/D11593
2018-11-16 10:24:27 -05:00
Bogdan Tara 228d1068ee Merge inbound to mozilla-central. a=merge 2018-11-16 11:47:51 +02:00
Yura Zenevich 64a8563fd4 Bug 1505848 - switch from CSS based approach to calculating contrast to canvas one, that also handles gradients and images. r=jdescottes,pbro
MozReview-Commit-ID: JS39hAY571f

Differential Revision: https://phabricator.services.mozilla.com/D11368
2018-11-16 03:59:08 +00:00
Yura Zenevich 90bf3e954d Bug 1505848 - change the way accessible object is determined when using accessible highlighter. r=pbro
MozReview-Commit-ID: IiUGsFojZP1

Differential Revision: https://phabricator.services.mozilla.com/D11366
2018-11-16 03:57:25 +00:00
Brian Hackett 6e672d1e4d Bug 1506469 - Allow inspecting objects logged to the console without switching to a replaying child, r=lsmyth. 2018-11-15 14:08:22 -10:00
Csoregi Natalia d427ab8d3a Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Margareta Eliza Balazs e4c8e4836b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
Nicolas Chevobbe 79147a9c34 Bug 1216632 - Make autocompletion work on $_ and $0; r=bgrins.
To make $0 autocompletion work, we need to pass the current
selectedNode actor from the frontend, so we can retrieve the
object reference later.
For $_, we need the webconsole actor reference to be able
to retrieve the last input result.
Since the list of parameters of JsPropertyProviders was
getting a bit long, we transform them in an object so it's
more legible on the consumer side.
Mochitests are added for both helpers to ensure this work
as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11866
2018-11-15 09:49:14 +00:00
Julian Descottes f941be3058 Bug 1504355 - Do not return inlineTextChild for shadow hosts in inspector walker;r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D11742
2018-11-15 10:46:06 +00:00
Brian Hackett 892e0289cb Bug 1505935 Part 2 - Expose scripts to the debugger which have their progress counters updated, r=lsmyth. 2018-11-10 15:27:14 -10:00
Brian Hackett 881ef09a34 Bug 1506707 - Keep track of duplicate console messages in the client, r=nchevobbe. 2018-11-12 12:11:18 -10:00
Luca Greco 8f82776fed Bug 1498293 - Ensure the webextension fallback window has a TabChild actor in content. r=ochameau
This patch remove the usage of `Services.appShell.createWindowlessBrowser` from the
webextension target actor (that runs in a child process when the extension is in oop-mode).

As a fallback window (needed when an extension doesn't have an extension page yet, e.g. while
the extension is being reloaded, or when the extension doesn't have a background page), the actor
is going to search for the window related to the XUL browser element created to connect into
the extension process.

If the extension runs in the child process (e.g. as it currently happens on all platforms supported
by Firefox Desktop), the TabParent/TabChild's tabId is used to identify the fallback window.

On the contrary, when the extension runs in the parent process (e.g. as it currently happens on
Firefox for Android), the XUL browser's ownerGlobal innerWindowID is used to identify the
fallback window.

Differential Revision: https://phabricator.services.mozilla.com/D8573
2018-11-15 19:00:44 +00:00
Alexandre Poirot e1d0ca7c1b Bug 1506548 - Return WorkerTargetFront from listWorkers instead of form. r=yulia
MozReview-Commit-ID: 4CBQNwC8tKq

Depends on D11762

Differential Revision: https://phabricator.services.mozilla.com/D11763
2018-11-15 10:23:50 +00:00
Alexandre Poirot a517296222 Bug 1506549 - Introduce API to listen for new child fronts of a given type. r=yulia
MozReview-Commit-ID: EKWTGhGo0VM

Depends on D11624

Differential Revision: https://phabricator.services.mozilla.com/D11625
2018-11-15 10:23:00 +00:00
Alexandre Poirot e9c1084d13 Bug 1506549 - Stop returning the actor from Pool.manage. r=yulia
This was only used by test and isn't much useful.

MozReview-Commit-ID: DeIimVmMOOs

Depends on D11623

Differential Revision: https://phabricator.services.mozilla.com/D11624
2018-11-15 10:22:58 +00:00
Alexandre Poirot 781a5ac688 Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-15 10:22:49 +00:00
Brian Hackett 6aedff97cc Bug 1506739 - Fix problems when stepping out of frames while replaying, r=jlast. 2018-11-13 08:06:16 -10:00