Commit Graph

9833 Commits

Author SHA1 Message Date
Gabriel Luong
3a26040bed Bug 1248619 - Part 1: Refactor and restore the reload condition settings in RDM. r=rcaliman 2018-09-24 13:04:03 -04: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
d31ef570b8 Bug 1485676 - Adapt gDevTools API to new async forTab and also adapt its callsites. r=yulia
Summary:
When switching to async, it is important to catch exception or register a rejection handler
so that errors keep being logged.
So in this patch I'm catching exception in a couple of important codepath.

Depends On D4541

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: IDPJVkAPbTs
2018-09-24 09:52:54 -07:00
Alexandre Poirot
5af3a78471 Bug 1485676 - Tweak RDM manage to support new async forTab. r=yulia
Summary:
Fetching any target is now asynchronous. But RDM setup/destroy codepath is very fragile
and introduce many low level exception when trying to restore the original browser element
if any timing changes.
So this patch prevents trying to fetch the target object if a toolbox isn't already opened.
The target object is being used only for Telemetry purpose for now.

Depends On D4538

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: 2QDUNqentMP
2018-09-24 09:52:51 -07:00
Alexandre Poirot
f421baa62a Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Summary: Depends On D4536

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: E3AIMyFgL5m
2018-09-24 09:52:50 -07:00
Alexandre Poirot
dff4dedc72 Bug 1485676 - Convert TargetFactory.forTab call to forRemoteTab in debugger mochitest. r=yulia
Summary:
We are not passing a tab here. It only works by chance!

Depends On D4535

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: K0ztxPM2N6A
2018-09-24 09:52:48 -07:00
Alexandre Poirot
dc5f0efff6 Bug 1485676 - Refactor gDevTools.getTargetForTab callsites to assume getTargetForTab is async. r=yulia
Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: FyERWaYipZo
2018-09-24 09:52:47 -07:00
shindli
2060f92f7d Merge inbound to mozilla-central. a=merge 2018-09-24 19:46:04 +03:00
Gabriel Luong
4e0c260292 Bug 1478397 - Part 18: Refactor the logic to get the flex items for a given flex container. r=pbro 2018-09-24 09:22:50 -04: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
Coroiu Cristina
68a73ded70 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-09-24 12:53:39 +03: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
fe30914ea1 Bug 1485676 - Adapt gDevTools API to new async forTab and also adapt its callsites. r=yulia
Summary:
When switching to async, it is important to catch exception or register a rejection handler
so that errors keep being logged.
So in this patch I'm catching exception in a couple of important codepath.

Depends On D4541

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: IDPJVkAPbTs
2018-09-24 01:25:00 -07:00
Alexandre Poirot
57c47d0e7a Bug 1485676 - Tweak RDM manage to support new async forTab. r=yulia
Summary:
Fetching any target is now asynchronous. But RDM setup/destroy codepath is very fragile
and introduce many low level exception when trying to restore the original browser element
if any timing changes.
So this patch prevents trying to fetch the target object if a toolbox isn't already opened.
The target object is being used only for Telemetry purpose for now.

Depends On D4538

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: 2QDUNqentMP
2018-09-24 01:24:59 -07:00
Alexandre Poirot
7b7f2b7ebd Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Summary: Depends On D4536

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: E3AIMyFgL5m
2018-09-24 01:24:59 -07:00
Alexandre Poirot
36471d8e5c Bug 1485676 - Convert TargetFactory.forTab call to forRemoteTab in debugger mochitest. r=yulia
Summary:
We are not passing a tab here. It only works by chance!

Depends On D4535

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: K0ztxPM2N6A
2018-09-24 01:24:58 -07:00
Alexandre Poirot
35bc2e7546 Bug 1485676 - Refactor gDevTools.getTargetForTab callsites to assume getTargetForTab is async. r=yulia
Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: FyERWaYipZo
2018-09-24 01:24:58 -07:00
Julian Descottes
cd7c5f04a6 Bug 1489421 - Add i18n for ExtensionDetail component;
Depends on D6609

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

--HG--
extra : moz-landing-system : lando
2018-09-24 12:48:41 +00:00
Julian Descottes
5fa076dfc7 Bug 1489423 - Add i18n for InspectAction component;
Depends on D6608

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

--HG--
extra : moz-landing-system : lando
2018-09-24 09:30:46 +00:00
Julian Descottes
400f74639c Bug 1489424 - Add i18n for ServiceWorkerAction component;
Depends on D6607

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

--HG--
extra : moz-landing-system : lando
2018-09-24 09:28:03 +00:00
Julian Descottes
56fb105866 Bug 1489419 - Add i18n for DebugTargetList component;
Depends on D6606

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

--HG--
extra : moz-landing-system : lando
2018-09-24 09:44:48 +00:00
Julian Descottes
54e21e5141 Bug 1489425 - Add i18n for TemporaryExtensionAction components;
Depends on D6605

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

--HG--
extra : moz-landing-system : lando
2018-09-24 09:44:17 +00:00
Julian Descottes
79420d3af8 Bug 1489426 - Add i18n for TemporaryExtensionInstaller component;
Differential Revision: https://phabricator.services.mozilla.com/D6605

--HG--
extra : moz-landing-system : lando
2018-09-24 09:43:54 +00:00
Nicolas Chevobbe
d9eff244dc Bug 1491354 - Extends top-level await mapping from debugger to toolbox; r=bgrins,jlast.
This patch makes the parser-worker available at the toolbox level.
This way, the console does not have to rely on the debugger being
open to map top-level await expression.
In order to make the worker works in the toolbox, some changes
are required (passing a window object, checking inToolbox differently).

We take this as an opportunity to *not* display the async iife result,
a promise, in the console. This is made by checking if the input was
mapped, and if so, ignoring the result we get from the server.

A couple tests are added to ensure the basic usage works as expected.

This patch should be considered as a v0 for top-level await evaluation
as there are things that are not perfect here. Since we rely on console.log
the result are treated differently from other evaluation results:
- the style is different
- the result gets added to the log cache (when restarting the console,
the results will still be displayed, but not the commands).
- the results can be filtered, although evaluation results should not
- `$_` after a top-level await evaluation returns the Promise created
by the async iife, not the result that was displayed in the console.

All those should be addressed in Bug 1410820.

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

--HG--
extra : moz-landing-system : lando
2018-09-24 08:17:30 +00:00
Preeti Mukherjee
23778fba25 Bug 1366534-convert uses of 'defer' to 'new Promise' in client/shadereditor;r=nchevobbe
convert uses of "defer" to "new Promise" in client/shadereditor

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

--HG--
extra : moz-landing-system : lando
2018-09-24 07:38:25 +00:00
shindli
957b91ec70 Backed out changeset 2defd19a1467 (bug 1491946) for ES lint failure 2018-09-24 10:37:54 +03:00
Jim Blandy
4634133ae0 Bug 1491946: Save devtools heap snapshots with the extension '.fxsnapshot.gz'. r=fitzgen 2018-09-17 11:57:42 -07:00
Dao Gottwald
ab68e55ad5 Bug 1493412 - "Remove warning-64.png on Windows" r=ntim 2018-09-22 06:29:00 +03: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
b553b3b567 Bug 1485676 - Adapt gDevTools API to new async forTab and also adapt its callsites. r=yulia
Summary:
When switching to async, it is important to catch exception or register a rejection handler
so that errors keep being logged.
So in this patch I'm catching exception in a couple of important codepath.

Depends On D4541

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: IDPJVkAPbTs
2018-09-22 08:34:20 -07:00
Alexandre Poirot
8cd354df9d Bug 1485676 - Tweak RDM manage to support new async forTab. r=yulia
Summary:
Fetching any target is now asynchronous. But RDM setup/destroy codepath is very fragile
and introduce many low level exception when trying to restore the original browser element
if any timing changes.
So this patch prevents trying to fetch the target object if a toolbox isn't already opened.
The target object is being used only for Telemetry purpose for now.

Depends On D4538

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: 2QDUNqentMP
2018-09-22 08:34:19 -07:00
Alexandre Poirot
5cd419ffca Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Summary: Depends On D4536

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: E3AIMyFgL5m
2018-09-22 08:34:19 -07:00
Alexandre Poirot
1e7e1b1c81 Bug 1485676 - Convert TargetFactory.forTab call to forRemoteTab in debugger mochitest. r=yulia
Summary:
We are not passing a tab here. It only works by chance!

Depends On D4535

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: K0ztxPM2N6A
2018-09-22 08:34:18 -07:00
Alexandre Poirot
e2590d206d Bug 1485676 - Refactor gDevTools.getTargetForTab callsites to assume getTargetForTab is async. r=yulia
Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: FyERWaYipZo
2018-09-22 08:34:18 -07:00
Julien Wajsberg
8dccd09804 Bug 1492893 - [Devtools Performance-new] Remove the unused toolbox object from the redux store r=gregtatum
MozReview-Commit-ID: 1LJ6HypOYbM

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:57:05 +00:00
arthur.iakab
fb9c5e11eb Backed out 2 changesets (bug 1489224)
Backed out changeset d414a44d8119 (bug 1489224)
Backed out changeset 6300cdbc0e04 (bug 1489224)
2018-09-21 19:28:04 +03:00
Zibi Braniecki
83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Julian Descottes
f0fe1b2410 Bug 1490301 - Always use relative paths in new about:debugging;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6398

--HG--
extra : moz-landing-system : lando
2018-09-21 11:31:07 +00:00
Julian Descottes
672c02580e Bug 1489224 - Add mochitest to check runtimes section of aboudebugging sidebar;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6402

--HG--
extra : moz-landing-system : lando
2018-09-21 14:38:16 +00:00
Julian Descottes
151130d992 Bug 1489224 - Fix order of tests in aboutdebugging-new;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6403

--HG--
extra : moz-landing-system : lando
2018-09-21 12:31:16 +00:00
Daisuke Akatsuka
edb0efe097 Bug 1405235 - Part 3: Remove extra extensions defining for test. r=jdescottes
Depends on D5648

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

--HG--
extra : moz-landing-system : lando
2018-09-21 12:17:26 +00:00
Daisuke Akatsuka
2b352eba33 Bug 1405235 - Part 2: Show USB devices using SidebarItem. r=jdescottes
Depends on D5647

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

--HG--
extra : moz-landing-system : lando
2018-09-20 03:27:05 +00:00
Daisuke Akatsuka
9d7105adee Bug 1405235 - Part 1: Implement a mechanism to show USB devices. r=jdescottes
Depends on D5386

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

--HG--
extra : moz-landing-system : lando
2018-09-21 11:24:18 +00:00