Commit Graph

1082 Commits

Author SHA1 Message Date
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
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
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
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
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
arthur.iakab
6877b6a75c Backed out 9 changesets (bug 1485676)for perma failures in devtools/client/canvasdebugger/test/browser_canvas-actor-test-01.js CLOSED TREE
Backed out changeset 9f5ec2aa7109 (bug 1485676)
Backed out changeset 0d530c1316a4 (bug 1485676)
Backed out changeset 03278e6fe685 (bug 1485676)
Backed out changeset 275463260056 (bug 1485676)
Backed out changeset 4c5a956b33f7 (bug 1485676)
Backed out changeset d8fe80bb0e3c (bug 1485676)
Backed out changeset 56240996921f (bug 1485676)
Backed out changeset ec0a322f5cc9 (bug 1485676)
Backed out changeset f0f4f9407970 (bug 1485676)
2018-09-21 12:48:48 +03:00
Alexandre Poirot
cffaacada5 Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:08:24 +00:00
Alexandre Poirot
c023333832 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
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

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:08:11 +00:00
Alexandre Poirot
196d295b46 Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D4078

--HG--
extra : moz-landing-system : lando
2018-09-21 08:07:48 +00:00
Alexandre Poirot
71f3e5e9f8 Bug 1485676 - Adapt gDevTools API to new async forTab and also adapt its callsites. r=yulia
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

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:07:25 +00:00
Alexandre Poirot
2ec27d0a50 Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Depends On D4536

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:11:53 +00:00
Mantaroh Yoshinaga
892caaf501 Bug 1476549 - Part 5. Modify the tests which is realted to frames button. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D4633

--HG--
extra : moz-landing-system : lando
2018-09-20 08:03:21 +00:00
Mantaroh Yoshinaga
993f83b2af Bug 1476549 - Part 4. Make the frame button to MenuButton. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D6353

--HG--
extra : moz-landing-system : lando
2018-09-20 06:54:39 +00:00
Mantaroh Yoshinaga
0a1ca8ae92 Bug 1476549 - Part 2. Change the several functions to the local function of ToolboxToolbar. r=jdescottes
This patch will move the global functions of ToolboxToolbar to its local
function. As a result of this changes, each function can refer 'props' from
'this' scope.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 03:57:43 +00:00
Mantaroh Yoshinaga
c71dc7f54f Bug 1476549 - Part 1. Rename toolbox.onHightlightFrame to toolbox.onHighlightFrame. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4630

--HG--
extra : moz-landing-system : lando
2018-09-14 05:54:47 +00:00
Alexandre Poirot
8d5356574c Bug 1485605 - Remove usages of TabTarget.window. r=yulia
This code only works on non-e10s and appear to no longer be used.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 12:16:51 +00:00
Dorel Luca
c1a2ab3088 Backed out changeset 6a4032171aaf (bug 1485605) for Eslint failure on builds/worker/checkouts/gecko/devtools/client/framework/target.js. CLOSED TREE 2018-09-20 12:42:40 +03:00
Alexandre Poirot
75c671c299 Bug 1485605 - Remove usages of TabTarget.window. r=yulia
This code only works on non-e10s and appear to no longer be used.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 08:35:03 +00:00
Alexandre Poirot
f12c00cd13 Bug 1485671 - Expose and use TabClient.listFrames and switchToFrame. r=yulia
Depends On D6272

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

--HG--
extra : moz-landing-system : lando
2018-09-20 08:30:32 +00:00
Alexandre Poirot
036563e90b Bug 1485671 - Expose and use TabClient.logInPage instead of sending request manually. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D6272

--HG--
extra : moz-landing-system : lando
2018-09-20 07:50:54 +00:00
Bogdan Tara
e7c653959c Merge inbound to mozilla-central. a=merge 2018-09-20 00:58:18 +03:00
Daisuke Akatsuka
0485028f23 Bug 1492101: Store a preference which includes extension existence after drag and drap instead of when closing toolbox. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D6225

--HG--
extra : moz-landing-system : lando
2018-09-19 08:24:25 +00:00
Jan Odvarko
d48833fbbc Bug 1491749 - Stop using xul:keyset and xul:key in toolbox-window.xul; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6015

--HG--
extra : moz-landing-system : lando
2018-09-19 09:58:08 +00:00
David Walsh
088e31f9d2 Bug 1314057 - Remove new-debugger-frontend flag from framework devtool when not defaulted to true r=davidwalsh
--HG--
extra : histedit_source : cd24b9bc0b62bb6c78a90619f0172a0eb5fe22e7
2018-09-17 07:43:12 -05:00
David Walsh
fba376c0ce Bug 1314057 - Remove new-debugger-frontend flag from framework devtool r=davidwalsh
--HG--
extra : histedit_source : 3ebc26fc59569147e709cf9109ea4f4815fe879a
2018-09-07 13:31:09 -05:00
Narcis Beleuzu
fdb058b01f Backed out 5 changesets (bug 1314057) for devtools failures on browser_browser_toolbox_debugger.js . CLOSED TREE
Backed out changeset 9bb3fd62313e (bug 1314057)
Backed out changeset cdb30006eb31 (bug 1314057)
Backed out changeset 7691cbfeac6a (bug 1314057)
Backed out changeset 1b274560201f (bug 1314057)
Backed out changeset 059a19d11454 (bug 1314057)
2018-09-17 07:29:31 +03:00
David Walsh
b92cb4bd3c Bug 1314057 - Remove new-debugger-frontend flag from framework devtool when not defaulted to true. r=jlast
--HG--
extra : rebase_source : 2d838e31f76bc98df8334c583a87894fd5e58a4a
2018-09-13 12:29:14 -05:00
David Walsh
1fab65ce10 Bug 1314057 - Remove new-debugger-frontend flag from framework devtool. r=jlast
--HG--
extra : rebase_source : 33eac01f43ceb02656420e2b15db58d9549baefd
2018-09-07 13:31:09 -05:00
Mantaroh Yoshinaga
38d6ddfd63 Bug 1487580 - Multiply the min-width of toolbox and zoom value. r=jdescottes
The toolbox specified the min-width to the own xul attribtue. However,
the coordinate system differ from inner and outer frame if we zoom in/out the
devtool panel.

This patch will multiply the min-width of toolbox and zoom value to prevent
this coordinate problem.

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

--HG--
extra : moz-landing-system : lando
2018-09-14 05:37:18 +00:00
Jonathan Kingston
45825d47d3 Bug 1485305 - devtools/ Ensure loadURI always passes a triggeringPrincipal() r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4555

--HG--
extra : source : d23e6557ba279e46f853d9bf59e4c5693aa5ce2a
extra : intermediate-source : 68200d86ebc80827c7f8c330a5b5ae004a5959e3
2018-08-29 15:46:12 +01:00
Daisuke Akatsuka
2b08d1333b Bug 1469075 - Part 5: Add unit test for a function which make tabs order. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D5726

Depends on D5238

--HG--
extra : rebase_source : 59602924c137eeeb4b17d2ae332629c9301bd38f
extra : amend_source : 046c6230cdd64c470c126f2d4285a84469e7f349
2018-09-12 17:59:05 +09:00
Daisuke Akatsuka
b9e06e32e5 Bug 1469075 - Part 4: Add test with secondary toolbox. r=jdescottes
Depends on D5121

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

--HG--
extra : rebase_source : 45c5e9127ef57fe5945cdf0816017d1a79fd206b
2018-09-07 16:39:55 +09:00
Daisuke Akatsuka
bf4797d7e3 Bug 1469075 - Part 3: Add test for hidden extension. r=jdescottes
Depends on D5119

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

--HG--
extra : rebase_source : ec1565b8f37ab806e9c118c413a343f20b2cfe8d
2018-09-06 17:42:56 +09:00
Daisuke Akatsuka
438941a658 Bug 1469075 - Part 2: Keep add-ons id till uninstall. r=jdescottes
Depends on D5118

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

--HG--
extra : rebase_source : 9476a0ec6ed3f5ea96aa693fe19a6e356e65729a
2018-09-06 10:03:04 +09:00
Daisuke Akatsuka
c485f73892 Bug 1469075 - Part 1: Save tabs order preference with hidden tools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D5118

--HG--
extra : rebase_source : 5d069617a85487e3d4d87dea3e64c34ebb8efdc0
2018-09-03 18:11:13 +09:00
Mike Conley
6ae07908c6 Bug 1482402 - Dispatch DevTools toolbox visibilitychange event on the iframe document instead of the iframe window. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D5456

--HG--
extra : rebase_source : 88821e9354fd7909a0b3f4919f5121ada9c1eb76
2018-09-07 15:19:47 -07:00
Jan Odvarko
f26bf4140b Bug 1488915 - Migrate toolbox-process-window.xul to HTML; r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D5255

--HG--
rename : devtools/client/framework/toolbox-process-window.xul => devtools/client/framework/toolbox-process-window.html
extra : moz-landing-system : lando
2018-09-10 17:14:57 +00:00
yulia
9611217838 Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

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

--HG--
extra : moz-landing-system : lando
2018-09-06 11:42:57 +00:00
arthur.iakab
4862d62ddf Backed out changeset 5e21be5fdf9d (bug 1429421)for build busteges CLOSED TREE 2018-09-06 12:12:40 +03:00
yulia
139e4e0b9a Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

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

--HG--
extra : moz-landing-system : lando
2018-09-06 08:55:50 +00:00
Daisuke Akatsuka
2710768e5d Bug 1488302 - Part 2: Modify so that the dragging tab does not exceed both ends of tabs. r=jdescottes
If the amount of mouse moving at mousemove event will exceed to both ends of tabs, the dragging tab will move to exceed the ends. This patch makes to avoid this.

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

Depends on D4906

--HG--
extra : rebase_source : f2560a61e33a98cacf01c9f08f1806c58d1e8d8b
2018-08-28 09:29:27 +09:00
Daisuke Akatsuka
65a63d52f2 Bug 1488302 - Part 1: Remove mouseout handling. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4906

--HG--
extra : rebase_source : 97c84eb3fcc95ff0597eba589eb7d5868f9d70d8
2018-08-28 09:29:27 +09:00
yulia
5ecbde0627 Bug 1447490 - replace GCLI toolbox buttons with highlighters and appropriate actors; r=ochameau
GCLI has been handling the state of our buttons as well as managing shared highlighters.
Since the gcli removal, we no longer share the rulers and measure with any other UI, so a location
for shared state is no longer needed.

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

--HG--
extra : moz-landing-system : lando
2018-09-03 14:54:04 +00:00