Commit Graph

634 Commits

Author SHA1 Message Date
Alexandre Poirot
8c5e401017 Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes
* debugger-controller and events.js are special and require to support two cases because this is
the only production codepath that can have a TabTarget or a WorkerTarget.
Thus, leading to either TargetFront or WorkerClient on target.activeTab.
* webide.js doesn't need to listen for tabNavigated, this is redundant with tabListChanged.
* application's initializer. In case you are wondering this code can't be spawn against a WorkerTarget.
The application panel doesn't work in worker toolboxes.
* The code modified in target is in TabTarget, so we don't have to support the WorkerClient case, we always have a TargetFront here.
* I tried to update the doc file the best I can but this all feel outdated.

MozReview-Commit-ID: 2hGchebfIub

Depends on D7458

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

--HG--
extra : moz-landing-system : lando
2018-10-11 15:46:28 +00:00
yulia
55c6df01ea Bug 1488377 - remove outdated backwards compat code; r=ochameau
Depends on D7886

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

--HG--
extra : moz-landing-system : lando
2018-10-10 15:37:11 +00:00
David Walsh
e31a432ca5 Bug 1314057 - Move worker actor and console tests to shared. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_WorkerTargetActor.attach.js => devtools/client/shared/test/browser_dbg_WorkerTargetActor.attach.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_worker-console-01.js => devtools/client/shared/test/browser_dbg_worker-console-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_worker-console-02.js => devtools/client/shared/test/browser_dbg_worker-console-02.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_worker-console-03.js => devtools/client/shared/test/browser_dbg_worker-console-03.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_worker-console-04.js => devtools/client/shared/test/browser_dbg_worker-console-04.js
rename : devtools/client/debugger/test/mochitest/code_WorkerTargetActor.attach-worker1.js => devtools/client/shared/test/code_WorkerTargetActor.attach-worker1.js
rename : devtools/client/debugger/test/mochitest/code_WorkerTargetActor.attach-worker2.js => devtools/client/shared/test/code_WorkerTargetActor.attach-worker2.js
rename : devtools/client/debugger/test/mochitest/code_WorkerTargetActor.attachThread-worker.js => devtools/client/shared/test/code_WorkerTargetActor.attachThread-worker.js
rename : devtools/client/debugger/test/mochitest/code_frame-script.js => devtools/client/shared/test/code_frame-script.js
rename : devtools/client/debugger/test/mochitest/doc_WorkerTargetActor.attach-tab1.html => devtools/client/shared/test/doc_WorkerTargetActor.attach-tab1.html
rename : devtools/client/debugger/test/mochitest/doc_WorkerTargetActor.attach-tab2.html => devtools/client/shared/test/doc_WorkerTargetActor.attach-tab2.html
rename : devtools/client/debugger/test/mochitest/doc_WorkerTargetActor.attachThread-tab.html => devtools/client/shared/test/doc_WorkerTargetActor.attachThread-tab.html
2018-10-08 20:23:46 -05:00
David Walsh
ad8f91e70d Bug 1314057 - Move old debugger's multiple-windows, tab and target actors tests. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_multiple-windows.js => devtools/client/shared/test/browser_dbg_multiple-windows.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_navigation.js => devtools/client/shared/test/browser_dbg_navigation.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js => devtools/client/shared/test/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js => devtools/client/shared/test/browser_dbg_target-scoped-actor-02.js
rename : devtools/client/debugger/test/mochitest/doc_script-switching-01.html => devtools/client/shared/test/doc_script-switching-01.html
rename : devtools/client/debugger/test/mochitest/doc_script-switching-02.html => devtools/client/shared/test/doc_script-switching-02.html
2018-10-08 13:21:41 -05:00
David Walsh
694b266a85 Bug 1314057 - Move listtabs and listaddons tests to shared. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/addon1.xpi => devtools/client/shared/test/addon1.xpi
rename : devtools/client/debugger/test/mochitest/addon2.xpi => devtools/client/shared/test/addon2.xpi
rename : devtools/client/debugger/test/mochitest/browser_dbg_listaddons.js => devtools/client/shared/test/browser_dbg_listaddons.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_listtabs-01.js => devtools/client/shared/test/browser_dbg_listtabs-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_listtabs-02.js => devtools/client/shared/test/browser_dbg_listtabs-02.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_listtabs-03.js => devtools/client/shared/test/browser_dbg_listtabs-03.js
rename : devtools/client/debugger/test/mochitest/doc_empty-tab-01.html => devtools/client/shared/test/doc_empty-tab-01.html
rename : devtools/client/debugger/test/mochitest/doc_empty-tab-02.html => devtools/client/shared/test/doc_empty-tab-02.html
2018-10-08 13:02:13 -05:00
David Walsh
41cf7a9677 Bug 1314057 - Move globalactor and global method override tests. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_global-method-override.js => devtools/client/debugger/new/test/mochitest/browser_dbg_global-method-override.js
rename : devtools/client/debugger/test/mochitest/doc_global-method-override.html => devtools/client/debugger/new/test/mochitest/examples/doc_global-method-override.html
rename : devtools/client/debugger/test/mochitest/browser_dbg_globalactor.js => devtools/client/shared/test/browser_dbg_globalactor.js
rename : devtools/client/debugger/test/mochitest/testactors.js => devtools/client/shared/test/testactors.js
2018-10-08 12:08:05 -05:00
Dorel Luca
c5bc5672ed Backed out 4 changesets (bug 1314057) for devtool failures. a=backout
Backed out changeset f46426835026 (bug 1314057)
Backed out changeset 90480b4b4c43 (bug 1314057)
Backed out changeset fa0d46e77437 (bug 1314057)
Backed out changeset 241f876d557f (bug 1314057)

--HG--
rename : devtools/client/shared/test/addon1.xpi => devtools/client/debugger/test/mochitest/addon1.xpi
rename : devtools/client/shared/test/addon2.xpi => devtools/client/debugger/test/mochitest/addon2.xpi
rename : devtools/client/debugger/new/test/mochitest/browser_dbg_global-method-override.js => devtools/client/debugger/test/mochitest/browser_dbg_global-method-override.js
rename : devtools/client/shared/test/browser_dbg_globalactor.js => devtools/client/debugger/test/mochitest/browser_dbg_globalactor.js
rename : devtools/client/shared/test/browser_dbg_listaddons.js => devtools/client/debugger/test/mochitest/browser_dbg_listaddons.js
rename : devtools/client/shared/test/browser_dbg_listtabs-01.js => devtools/client/debugger/test/mochitest/browser_dbg_listtabs-01.js
rename : devtools/client/shared/test/browser_dbg_listtabs-02.js => devtools/client/debugger/test/mochitest/browser_dbg_listtabs-02.js
rename : devtools/client/shared/test/browser_dbg_listtabs-03.js => devtools/client/debugger/test/mochitest/browser_dbg_listtabs-03.js
rename : devtools/client/shared/test/browser_dbg_multiple-windows.js => devtools/client/debugger/test/mochitest/browser_dbg_multiple-windows.js
rename : devtools/client/shared/test/browser_dbg_navigation.js => devtools/client/debugger/test/mochitest/browser_dbg_navigation.js
rename : devtools/client/shared/test/browser_dbg_target-scoped-actor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/shared/test/browser_dbg_target-scoped-actor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js
rename : devtools/client/debugger/new/test/mochitest/examples/doc_global-method-override.html => devtools/client/debugger/test/mochitest/doc_global-method-override.html
2018-10-10 09:16:11 +03:00
David Walsh
596770203c Bug 1314057 - Move old debugger's multiple-windows, tab and target actors tests. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_multiple-windows.js => devtools/client/shared/test/browser_dbg_multiple-windows.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_navigation.js => devtools/client/shared/test/browser_dbg_navigation.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js => devtools/client/shared/test/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js => devtools/client/shared/test/browser_dbg_target-scoped-actor-02.js
rename : devtools/client/debugger/test/mochitest/doc_script-switching-01.html => devtools/client/shared/test/doc_script-switching-01.html
rename : devtools/client/debugger/test/mochitest/doc_script-switching-02.html => devtools/client/shared/test/doc_script-switching-02.html
2018-10-08 13:21:41 -05:00
David Walsh
14f2f48d33 Bug 1314057 - Move listtabs and listaddons tests to shared. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/addon1.xpi => devtools/client/shared/test/addon1.xpi
rename : devtools/client/debugger/test/mochitest/addon2.xpi => devtools/client/shared/test/addon2.xpi
rename : devtools/client/debugger/test/mochitest/browser_dbg_listaddons.js => devtools/client/shared/test/browser_dbg_listaddons.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_listtabs-01.js => devtools/client/shared/test/browser_dbg_listtabs-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_listtabs-02.js => devtools/client/shared/test/browser_dbg_listtabs-02.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_listtabs-03.js => devtools/client/shared/test/browser_dbg_listtabs-03.js
rename : devtools/client/debugger/test/mochitest/doc_empty-tab-01.html => devtools/client/shared/test/doc_empty-tab-01.html
rename : devtools/client/debugger/test/mochitest/doc_empty-tab-02.html => devtools/client/shared/test/doc_empty-tab-02.html
2018-10-08 13:02:13 -05:00
David Walsh
6a0e0d9abe Bug 1314057 - Move globalactor and global method override tests. r=loganfsmyth
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_global-method-override.js => devtools/client/debugger/new/test/mochitest/browser_dbg_global-method-override.js
rename : devtools/client/debugger/test/mochitest/doc_global-method-override.html => devtools/client/debugger/new/test/mochitest/examples/doc_global-method-override.html
rename : devtools/client/debugger/test/mochitest/browser_dbg_globalactor.js => devtools/client/shared/test/browser_dbg_globalactor.js
rename : devtools/client/debugger/test/mochitest/testactors.js => devtools/client/shared/test/testactors.js
2018-10-08 12:08:05 -05:00
Jan Odvarko
e3949549a8 Bug 1493646 - Browser toolbox shortcut closes the regular toolbox; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D7092

--HG--
extra : moz-landing-system : lando
2018-10-03 11:38:49 +00:00
Gabriel Luong
59a4d98868 Bug 1496157 - Remove the three pane tooltip and first run code. r=rcaliman 2018-10-03 15:30:42 -04:00
yulia
2324dc62c4 Bug 1485373 - Use client.mainRoot.getFront to fetch all global actors; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D6792

--HG--
extra : moz-landing-system : lando
2018-09-28 07:07:14 +00:00
Gurzau Raul
a8d8876e9e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-27 19:45:35 +03:00
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
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
Michael Ratcliffe
4e3c6d2b5f Bug 1491879 - Fix telemetry support for multiple tabs / windows r=nchevobbe
- Various telemetry methods now need an object to be passed in in order to keep them seperate e.g. if the inspector is opened in tab 1 a timer is started. If an inspector is opened in tab 2 the same timer is restarted. Closing tab 2 would then erase the timing event invalidating the timer in tab 1.
- We no longer need to preface telemetry calls with category "devtools.main" because this is the only category we will be using.
- There are some changes to `devtools/client/debugger/new/dist/vendors.js` and `devtools/client/debugger/new/src/utils/telemetry.js` that need to be ported to the debugger at the same time as landing this.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 12:57:13 +00:00
Alexandre Poirot
4c1bb0403e Bug 1397020 - Remove useless calls to TabTarget.attach r=yulia
TabTarget.attach is being called from the toolbox, before opening the tools,
so we do not have to call it from panel's open functions, nor code that is opening
a toolbox right after.

MozReview-Commit-ID: 77TZFbvOaFt

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

--HG--
extra : moz-landing-system : lando
2018-09-26 21:11:51 +00:00
Mantaroh Yoshinaga
495837c33c Bug 1472942 - Part 2. Add setContentSize() instead of setContent() in HTMLTooltip. r=birtles
This patch will remove setContest(), and change the following things instead of this:

 * Use HTMLTooltip.panel.appendChild() instead of HTMLTooltip.setContent().
 * Add HTMLTooltip.setContetnSize() to specify the panel size if need this.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 07:14:55 +00: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
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
Margareta Eliza Balazs
5ad86cabda Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-25 12:50:02 +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
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
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
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
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
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
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
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
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
Daisuke Akatsuka
2bdd2e5359 Bug 1463621 - Part 3: Rename application name. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D5500

--HG--
extra : rebase_source : 58e2edeb00e21dc3b7b3de9b655b9ee15e5a1835
2018-09-10 13:10:12 +09:00
Daisuke Akatsuka
8fe55e6c4b Bug 1463621 - Part 2: Remove devtools.new-animationinspector.enabled preference. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D5499

--HG--
extra : rebase_source : 90102721f4bb5aada1c27e2bac1bcf3262997602
2018-09-10 12:58:20 +09: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
Nicolas Chevobbe
3d61a36abf Bug 1479373 - Refactor autocomplete popup for performance; r=jdescottes.
This patch introduces some options that can be passed to
setItems and openPopup to prevent doing unecessary work.
The main ideas here are to create all the popup items and
put them in a document fragment which then will be appended
to the popup, so we don't add them one by one which can be costly.
When creatingthe items, we also create one directly with the
selected class if autoSelect is set to true. This way, we don't have
to toggle the class later (which led to another reflow).

We take this work as an opportinuity to clean up the component.
Unused function (like appendItem and removeItem) are removed,
selectedIndex does not use a getter/setter anymore.

Some of the consumers calls are updated and so is the component test.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 05:48:02 +00:00
Dorel Luca
a036d8964b Backed out changeset ff6b5bae0da4 (bug 1479373) for devtools failures on devtools/client/inspector/rules/test/browser_rules_completion-new-property_04.js. CLOSED TREE 2018-09-05 15:10:37 +03:00
Nicolas Chevobbe
13d59f5645 Bug 1479373 - Refactor autocomplete popup for performance; r=jdescottes.
This patch introduces some options that can be passed to
setItems and openPopup to prevent doing unecessary work.
The main ideas here are to create all the popup items and
put them in a document fragment which then will be appended
to the popup, so we don't add them one by one which can be costly.
When creatingthe items, we also create one directly with the
selected class if autoSelect is set to true. This way, we don't have
to toggle the class later (which led to another reflow).

We take this work as an opportinuity to clean up the component.
Unused function (like appendItem and removeItem) are removed,
selectedIndex does not use a getter/setter anymore.

Some of the consumers calls are updated and so is the component test.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 08:34:47 +00: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
Mantaroh Yoshinaga
94698538d1 Bug 1472931 - Drop the autofocus feature of HTMLTooltip. r=birtles
This feature is no longer used. So this patch will remove this feature.

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

--HG--
extra : moz-landing-system : lando
2018-08-27 01:35:55 +00:00
arthur.iakab
457fa2b8ab Backed out 7 changesets (bug 1473513) for failing devtools e.g. leakcheck | default process: 1618727 bytes leaked
Backed out changeset deb8812556ef (bug 1473513)
Backed out changeset 5bf38cfa04f9 (bug 1473513)
Backed out changeset 6e157bea362a (bug 1473513)
Backed out changeset 12eb1139a802 (bug 1473513)
Backed out changeset ce86ea60a31c (bug 1473513)
Backed out changeset 7acc52a7f81f (bug 1473513)
Backed out changeset 4e1e283b347e (bug 1473513)

--HG--
extra : rebase_source : a79787b05e0cf6c837e08c9541d559e4509b0deb
2018-08-22 18:23:46 +03:00
yulia
8cde2abb7a Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
MozReview-Commit-ID: 3GsXRxcIKfx

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 5988ed48f4d4cfc077c7bc768a546698f3e5d541
2018-07-13 18:03:28 +02:00
Belén Albeza
11358a959e Bug 1460862 - Smooth scrolling when clicking on 'reveal' in slotted elements. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3509

--HG--
extra : moz-landing-system : lando
2018-08-22 08:35:40 +00:00
yulia
9334e84033 Bug 1447494 - remove all instances of commandline/helpers; r=ochameau
Removed remaining imports of commandline helpers, as they are no longer used anywhere

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:06:07 +00:00
Csoregi Natalia
0ed25650ef Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-08 13:02:49 +03:00
Nicolas Chevobbe
372a786c24 Bug 1478251 - Enable client/shared/test/browser_layoutHelpers.js in e10s; r=jdescottes.
Removing the skip-if seems to work fine.

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

--HG--
extra : moz-landing-system : lando
2018-08-08 06:43:44 +00:00
Nicolas Chevobbe
e3cf7e35dd Bug 1478252 - Enable client/shared/test/browser_outputparser.js in e10s; r=jdescottes.
The test was disabled for intermittent failure, but I did
not managed to make it fail with --verify.
There was a fixed needed in the test for the angle since
the property used there was deprecated.

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

--HG--
extra : moz-landing-system : lando
2018-08-07 05:07:31 +00:00
Tom Tromey
1ca6fd6782 Bug 1478184 - fix handling of html comments in parseDeclarations; r=gl
parseDeclarations was ignoring html comment tokens, but in fact they
should not be treated any differently from other CSS tokens.

MozReview-Commit-ID: 27Mxt5zbSSJ

--HG--
extra : amend_source : 91e47bbf6951ac9dd4709ac10c49ff51c1781ce8
2018-08-07 13:03:34 -07:00
Brian Hackett
4dea999cef Bug 1465491 Part 2 - Helper functions for web replay mochitests, r=jryans.
--HG--
extra : rebase_source : c900dd3d263428472c3ddf3dc8eef5e14ee38481
2018-08-02 15:37:20 +00:00
Boris Zbarsky
79181a1a13 Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
Dave Townsend
389a969138 Bug 1479050: Migrate a number of call-sites to use document.createXULElement. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D2489

--HG--
extra : moz-landing-system : lando
2018-07-31 19:13:38 +00:00
Alexandre Poirot
a536d5758a Bug 1478244 - Enable client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js in e10s. r=jdescottes
MozReview-Commit-ID: HKT4whszLKX

--HG--
extra : rebase_source : 19c4c11518d1c652099b3e745d7f96e14d987394
2018-07-25 00:35:36 -07:00
Julian Descottes
3554bddce5 Bug 1476908 - Show keyframes for elements in shadow dom;r=bgrins
MozReview-Commit-ID: 6YJUnReL3PS

--HG--
extra : rebase_source : e1f663dd2044fb642b0606ba2dc153b4f8e43172
2018-07-20 17:48:50 +02:00
Nicolas Chevobbe
405cda88ac Bug 1475165 - Make autocomplete always select first item by default; r=Honza.
Previously, we were trying to select the item the closest
to the input used for the autocompletion. It was causing
some weird behaviour when the popup wasn't displayed at
the expected position.
Always selection the top-most item seems will avoid those
cases, bring us consistency across the toolbox as well as
with other tool having autocompletion (code editors, Chrome, …).
The autocomplete-popup test is modified to assert the new behavior.

MozReview-Commit-ID: DhNovX51KRO

--HG--
extra : rebase_source : cfb2ebaaed23ce5c51ef9d8f447f3fabe0a04a49
2018-07-13 16:52:37 +02:00
Daisuke Akatsuka
bc932a40f4 Bug 1330544 - Part 3: Add test of altering properties. r=pbro
MozReview-Commit-ID: 2vvlQgL53UW

--HG--
extra : rebase_source : 5b41dbe78c9886255d68f9609147e3e47b94b211
2018-07-06 17:26:53 +09:00
Nicolas Chevobbe
eb9667402d Bug 1473305 - Move browser_jsterm_popup.js to devtools/client/shared/test ;r=Honza.
This test is directly calling Autocomplete popup methods and only uses the
console for the instance and the input it provides. This patch moves the
test to the shared component folder, where the autocompletion code lives
so it feels more natural.
A few test cases are added in the jsterm_accessibility test, this time in
direct relation with the console input.

MozReview-Commit-ID: Ih7rOJ3vHpb

--HG--
rename : devtools/client/webconsole/test/mochitest/browser_jsterm_popup.js => devtools/client/shared/test/browser_autocomplete_popup.js
extra : rebase_source : 148e7d3d9ac69a40facc428c1201a9aa52eeda29
extra : source : b8b912f1999018c8f1677299d7180d3a03bcb2d7
2018-07-04 15:30:07 +02:00
Brian Birtles
59e52349bd Bug 1461522 - Add a mechanism to allow updating an HTMLTooltip's size and position; r=jdescottes
MozReview-Commit-ID: 4SDxlTTFp8E

--HG--
extra : rebase_source : c8e429c8d88512bc807a3169b6651609e01e5556
2018-06-28 15:13:05 +09:00
Brian Birtles
b8e1efcc44 Bug 1461522 - Add doorhanger type to HTMLTooltip; r=jdescottes
MozReview-Commit-ID: 6Oq9qauwngX

--HG--
extra : rebase_source : 0e6d333aa10e1580840fe107a8812260d16d0379
2018-06-28 15:04:13 +09:00
Brian Birtles
ae34b55b6a Bug 1461522 - Allow { height: "auto" } in HTMLTooltip setContent and make it the default; r=jdescottes
The current default value for height of Infinity has the unfortunate side
effect that, when combined with using a XUL wrapper, there will be a large
filler element stretching vertically on one side of the tooltip that effectively
neuters all content beneath it. While this is probably fine for tooltips that
are shown on hover, it is problematic if we want to use this for DevTools menus
because it means the user is unable to click anything above/below the menu so
long as it is open (which can be particularly problematic once we make
HTMLTooltip support the "Disable popup autohide" feature"). Even if we were to
decide that clicks outside the tooltip should be consumed anyway we would still
have the problem that hover styles don't apply in this "dead" region.

As a result, this patch makes the { height: Infinity } behaviour opt-in for
those tooltips that really need it. For most uses, however, a height calculated
when the tooltip is shown should be sufficient (and later in this patch series
we will add a mechanism to HTMLTooltip to explicitly request it recalculate its
size and position in response to content changes).

This patch introduces the { height: "auto" } mechanism and also reverses the
order in which size/position properties are calculated to match the regular
manner in which layout is performed: widths first, then heights.

MozReview-Commit-ID: 7BeVkxGVhYn

--HG--
extra : rebase_source : 4f0d88b377e00efc9d443db1a5ef0a7d29295929
2018-06-28 15:03:57 +09:00
Brian Birtles
f60bbdefb3 Bug 1461522 - Make HTMLTooltip position the arrow correctly in RTL mode; r=jdescottes
Currently the arrow offset is not correctly positioned in RTL mode as evidenced
by the test case included in this patch (which fails without the code changes
included in this patch).

This patch logicalizes the calculations for positioning the tooltip which fixes
this and other issues when using RTL mode and will make it easier to introduce
a new "doorhanger" type tooltip later in this patch series.

MozReview-Commit-ID: BQXhDHbPTbl

--HG--
extra : rebase_source : c9227a18442dafef84643981a98b5f3697d9e50b
2018-06-28 14:52:10 +09:00
Mark Banner
cbfcd78cd5 Bug 1470455 - Add the 'expected' arguments to throws/rejects for devtools. r=jdescottes
MozReview-Commit-ID: 3HmVFhiA2FZ

--HG--
extra : rebase_source : 2f9fa5372e91f964bdcad4f1e254aff71ce823cd
2018-06-21 16:56:08 +01:00
J. Ryan Stinnett
ca90a5ef7b Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

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

--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js
2018-06-26 13:27:57 +00:00
arthur.iakab
ff23802cfd Backed out changeset 88960670cf9f (bug 1465637) for failing talos damp tests on server/protocol.js: Error: Can't manage front without an actor ID on a CLOSED TREE
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_tabactor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_tabactor-02.js
2018-06-25 21:56:27 +03:00
J. Ryan Stinnett
8433b7ff9f Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

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

--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js
2018-06-25 17:53:40 +00:00
J. Ryan Stinnett
ead390bee8 Bug 1470497 - Fix navigation after opening container in RDM. r=gl
This fixes the case of navigating a container tab from about:newtab to a remote
site.  This case triggers the process flip machinery where parent process is
told to manage the load.  We needed to allow certain session store messages for
this to complete successfully.

--HG--
extra : rebase_source : bb89e430941039d13a5352c9fc21777844de94e4
2018-06-22 17:28:01 -05:00
Julian Descottes
58aba64766 Bug 1459398 - log a clear test failure if mandatory telemetry-test-helpers.js cannot be loaded;r=miker
MozReview-Commit-ID: KuMO6VeAfsw

--HG--
extra : rebase_source : c34968f0d45920ce03ce3e0228035bd7998ed708
2018-05-05 12:49:39 +02:00
Sebastian Hengst
c0166972be Bug 1466139 - set animation panel ID depending on devtools.new-animationinspector.enabled. r=yulia
MozReview-Commit-ID: H093tRApoPq

--HG--
extra : rebase_source : 50a33bcc59b0321d274ae8649d37b73ef4c57a98
2018-06-18 18:40:22 +03:00
Xidorn Quan
93f4492e83 Bug 1418874 part 1 - Use JS impl of CSS lexer instead of that from InspectorUtils in devtools. r=tromey
MozReview-Commit-ID: 3mam0A2JNif

--HG--
extra : rebase_source : a4d6af4bbd063875903f9d37c221b0fb1fbf0ece
2018-06-14 18:02:02 -07:00
J. Ryan Stinnett
fa78307d48 Bug 1466534 - Centralize DevTools link handling. r=jdescottes
This adds a `openContentLink` helper meant for any link controlled by web
content.  If there is an associated toolbox open, the toolbox's tab is used to
supply a triggering principal for the link.

MozReview-Commit-ID: 45l5yAPGpZr

--HG--
extra : rebase_source : 61a1d471d6792d148932488e854e16de60dea44b
2018-06-11 23:42:19 -07:00
Julian Descottes
9f859ee6b8 Bug 1436303 - Enable mozilla/no-define-cc-etc for some DevTools files;r=ochameau,standard8
MozReview-Commit-ID: IbSt6lAhOYt

--HG--
extra : rebase_source : 61b562240f83da0ec15e584cd0e965466b6be4b1
2018-06-08 16:46:59 +02:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Julian Descottes
5cfc704074 Bug 1467407 - Fix incorrect usage of ok() in devtools mochitests;r=jryans
All the changes here either directly worked when switching from ok() to is()
or were straightforward to fix.

MozReview-Commit-ID: LEcCu0A4msu

--HG--
extra : rebase_source : e46c812a64bca55cc29d7e76298d15bbc1b30b2a
2018-06-07 12:06:20 +02:00
Ciure Andrei
25ae31a366 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-08 00:54:06 +03:00
Ciure Andrei
05605d68c4 Merge inbound to mozilla-central. a=merge 2018-06-08 00:50:18 +03:00
Gabriel Luong
e18a43e435 Bug 1192642 - Add a left host type for the toolbox. r=pbro 2018-06-07 12:45:53 -04:00
Blake Kaplan
49224c479c Bug 1186265 - Move devtools over to getBounds(). r=pbro
This leaves getAdjustedQuads alone because it lives in its own world and its
result gets sent over IPC. That leaves things in a bit of an intermediate
state, but that should be OK for now.

MozReview-Commit-ID: DH6eGqCFhPr

--HG--
extra : rebase_source : 39feed5868c86a104e586f40bd1e80e8f8f34e0b
2018-06-04 16:41:43 -07:00
J. Ryan Stinnett
eaa4969e77 Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o

--HG--
rename : devtools/server/actors/tab.js => devtools/server/actors/targets/browsing-context.js
rename : devtools/shared/specs/tab.js => devtools/shared/specs/targets/browsing-context.js
extra : rebase_source : e62720693ad492cdfb68ab21af1f54d78e85123a
2018-05-25 18:20:28 -05:00
Julian Descottes
7fdc2c153f Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks

--HG--
extra : rebase_source : a3f07665a42c2779a85b7901a07206266a9d1616
extra : source : ae946f375e0d0f4f0f0fc859c54040fef42cbc2c
2018-06-01 12:19:35 +02:00
Julian Descottes
640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Michael Ratcliffe
190ce58cbf Bug 1463083 - Instrument inspection of inspector side panel switching with event telemetry r=yulia
MozReview-Commit-ID: ANPWNvYRfdH

--HG--
extra : rebase_source : 2bc1e86ebaa8eda2ec0b858c918996e1f3600f79
2018-05-24 14:21:49 +01:00
Tom Tromey
d8c5e0102a Bug 1462553 - fix !important parsing in devtools; r=pbro
Bug 1462553 points out that the CSS-parsing code in parsing-utils was
not correctly handling "!important"; in particular, it was allowing
this to appear in the middle of a declaration, rather than only at the
end.  This patch fixes the parser.

MozReview-Commit-ID: 9efv60gX6nV

--HG--
extra : rebase_source : c7e2d1209132bc7a2285850b4bbd24ecbbcbb48d
2018-05-18 11:39:43 -06:00
Michael Ratcliffe
0725240652 Bug 1296723 - Remove logOncePerBrowserVersion telemetry functions and probes r=jryans
MozReview-Commit-ID: AvUuzTgoEhz

--HG--
extra : rebase_source : 22fa33853eb70a2ad780d162f6af545db57e0b43
2018-05-09 12:01:35 +01:00
Ciure Andrei
2f509969e9 Merge inbound to mozilla-central. a=merge 2018-05-19 01:05:58 +03:00
Gabriel Luong
295877e7ea Bug 1462451 - Remove checks for the 3 pane toggle button. r=jryans 2018-05-18 10:59:04 -04:00
Gabriel Luong
9935783cf2 Bug 1433718 - Enable 3 pane inspector in nightly and make unit tests pass. r=pbro 2018-05-04 09:38:47 -04:00
Alexandre Poirot
6d5ecd386d Bug 1461970 - Removing DeveloperToolbar, its menu, its pref and everything using gDevToolsBrowser.getDeveloperToolbar. r=jryans
MozReview-Commit-ID: Es7uUfcWTXu

--HG--
extra : rebase_source : c45f12f3a0d5c86efbd5a6449ad52d9c4ba78494
2018-03-21 08:43:51 -07:00
Mantaroh Yoshinaga
3056de4e7a Bug 1460795 - HTML tooltips should consider the content zoom value. r=jdescottes
This patch will multiply the HTML tooltip position to the zoom value in order to
display HTML tooltip in correct position.

MozReview-Commit-ID: GHVkB5hN44k

--HG--
extra : rebase_source : d966ef51ea4988d025d25d51f0d254ad0b332446
2018-05-17 09:52:38 +09:00
Csoregi Natalia
d2a7e3fcd3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-10 19:45:06 +03:00
Julian Descottes
81f4fb8148 Bug 1459605 - Wait for all workers to have registrationActors before unregistering;r=ladybenko
MozReview-Commit-ID: 729BNJ1hWxC

--HG--
extra : rebase_source : f77bacdc0de245587ae1309fce64b4706e8671cb
2018-05-10 03:48:31 +02:00
Kris Maglione
01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Gurzau Raul
a27667b2c0 Backed out 2 changesets (bug 1433718) for devtools failures on markup/test/browser_markup_events_react_development_15.4.1_jsx.js
Backed out changeset 19576ace167c (bug 1433718)
Backed out changeset b7aeba47bb1f (bug 1433718)
2018-05-05 10:50:14 +03:00
Gabriel Luong
dd29da22c4 Bug 1433718 - Make unit tests pass with the 3 pane inspector on in nightly. r=pbro 2018-05-04 09:38:47 -04:00
Michael Ratcliffe
764c4c8578 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61

--HG--
extra : rebase_source : cd1214d01bd11908f69167839975cd93ecb83421
2018-05-01 18:06:14 +01:00
Gabriel Luong
787fcb84ea Bug 1446944 - Provide onboarding tooltip for the 3 pane inspector feature. r=jdescottes, flod 2018-05-03 13:55:54 -04:00
Julian Descottes
36063dcb4f Bug 1458591 - Use most recent chrome window for DevTools link helper;r=jryans
MozReview-Commit-ID: 8n5tT8qbAiU

--HG--
extra : rebase_source : 9efd2d2fd906856f588e6b7bc357b320e126b264
2018-05-02 20:23:53 +02:00
Xidorn Quan
5050b395ae Bug 1434130 part 13 - Use Servo code to back GetCSSValuesForProperty. r=emilio,gl
This causes various changes to properties-db.js and also many devtools
tests get updated.

There are two changes affect multiple tests:

* `calc` gets removed from everywhere. We never have it listed in all
  properties which deserve it, and doing so without much false positive
  (i.e. properties don't deserve but get it) can be pretty tricky.
  So they are just removed for now.

* The complete color keyword list is no longer included, and instead,
  "COLOR" is prepended to the list directly. We can probably remove
  the related code which replaces color keywords with "COLOR" from
  devtools. Note that, with stylo enabled, the list is already unrelated
  to what the parsing code uses. We should eventually re-enable the
  disabled test here after we can get the color list from cssparser
  in bug 1456715.

Other changes to properties-db.js seem to be valid, some of them also
affect tests:

* `{-webkit-,}align-{content,items,self}` get `first baseline`, `safe`,
  `unsafe`, and lose `left` and `right`.

* `{-moz-,-webkit-,}{animation,transition}{,-timing-function}` has a
  new `frame` keyword which is a function value in `<timing-function>`.

* `{background,{-webkit-,}mask}-position-x` lose `top` and `bottom`, and
  correspondingly `{background,{-webkit-,}mask}-position-y` lose `left`
  and `right`.  They don't deserve those values.

* `{background,{-webkit-,}mask}{,-size}` get `auto`.

* `border` shorthand loses `<image>` values as well as other keyword
  values for `border-image-*` subproperties, because they aren't parsed
  on the shorthand.

* `{-moz-,}border-image{,-width}` get `auto`.

* `-moz-context-properties` gets `none`.

* `cursor` get some -moz-prefixed values as well as `url`.

* `fill` and `stroke` get the color keywords.

* `{-webkit-,}filter` get the keywords and function names.

* `font` shorthand loses values from many of `font-variant-*` properties
  because they are not parsed there.

* `font-variant` and `font-variant-alternates` get function values of
  the longhand.

* `font-variant-{east-asian,ligatures,numeric}` get `normal`, and
  `font-variant-ligatures` in addition gets `none`.
  `font-{feature,variation}-settings` also get `normal`.

* `grid` and `grid-template-{areas,columns,rows}` get `none`.

* `grid`, `grid-template`, and `grid-template-{columns,rows}` get
  `auto`, `fit-content`, `minmax`, and `repeat`.

* `grid-auto-{columns,rows}` get `auto`, `fit-content` and `minmax`.

* `-moz-image-region` gets `auto` and `rect`.

* `{-webkit-,}justify-content` lose `baseline`, `last baseline`, and
  get `safe` and `unsafe`.

* `{justify,place}-items` get `first baseline`, `legacy`, `safe`,
  `unsafe` and lose `auto`.

* `{justify,place}-self` and `place-content` get `first baseline`,
  `safe`, and `unsafe`.

* `outline{,-style}` get `hidden`.

* `scroll-snap-coordinate` gets `none`, and `scroll-snap-points-{x,y}`
  gets `none` and `repeat`.

* `shape-outside`, `text-emphasis{,-style}` get all the keyword values
  and function names they deserve.

* `stroke-dasharray` gets `none`.

* `text-combine-upright` drops `digits` which we never implemented.

* `{-moz-,-webkit-,}transform` and `-moz-window-transform` get their
  transform function list. `accumulatematrix` and `interpolatematrix`
  aren't real CSS value but they have `#[css(function)]` specified.
  We should probably remove them at some point.

* `will-change` gets `auto`.

* All properties accept `<image>` value now gets -webkit-prefixed
  gradient function names, including
  * `background{,-image}`,
  * `{-moz-,-webkit-,}border-image{,-source}`, and
  * `{-webkit-,}mask{,-image}`.

MozReview-Commit-ID: E7Y0CFUFYgW

--HG--
extra : source : bab732c8c531cfca1bcd233f769c25bb2e373773
2018-04-29 09:03:31 +10:00
Boris Zbarsky
76ead58490 Bug 1455674 part 19. Get rid of JS uses of nsIDOMElement. r=qdot
In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType
checks should be fine.
2018-04-26 23:37:34 -04:00
Daisuke Akatsuka
9f38b4533c Bug 1453294: Reduce devtools min-width when docked to side. r=jdescottes
MozReview-Commit-ID: 19NWuivvY1k

--HG--
extra : rebase_source : bb66443ba9f35c04dd58a28d4b6100067fc1a585
2018-04-23 14:39:20 +09:00
Boris Zbarsky
17995a441f Bug 1453869 part 9. Stop creating DOMParser by contract in devtools. r=tromey
There are some extra hoops here because devtools has a lint to prevent Cu.importGlobalProperties, which is the normal way one would import a WebIDL constructor.

MozReview-Commit-ID: 2mdNI6N1z5B
2018-04-20 23:04:40 -04:00
Julian Descottes
288735f7e2 Bug 1451211 - Show a colour swatch next to colour values in the CSS variable autocomplete postlabel. r=jdescottes
MozReview-Commit-ID: 7obhsNOBu4N

--HG--
extra : rebase_source : 8edd4725d6b02870c19054e3db16bc5baab8bc19
2018-04-18 21:34:16 +02:00
Kris Maglione
0f40271841 Bug 1453881: Part 1a - Automatically write add_task(function*) to add_task(async function) r=ochameau
This was done using the script at:

bc5629735d/processors/add-task-async.jsm

MozReview-Commit-ID: KxuS9Cen87

--HG--
extra : rebase_source : c0028e0cd55ba1643610cd30c55c6f4bca7d6e58
extra : histedit_source : ebc84fdec9c2db6176632d62de4e7bdad2a7829d
2018-04-12 21:10:04 -07:00
Alexandre Poirot
24603597f9 Bug 1453385 - Fix actors trying to transfer functions or xpcom objects. r=jryans
MozReview-Commit-ID: 74l85ePCcrY

--HG--
extra : rebase_source : 5af0d60d6fe436a0b0039e0f0b017f8a39b8b5f9
2018-04-12 14:45:10 -07:00
Zhang Junzhi
5f2ae38817 Bug 1448553 - Part 6: Adds xpcshell-based unit tests for the common Unicode-URL related functions defined in Part 1 r=nchevobbe
This patch adds some unit tests for the common Unicode-URL related functions
defined in Part 1.

MozReview-Commit-ID: 2juTaanghnN

--HG--
extra : rebase_source : 25449943d2091cbdb9cfaa00024577254ad2e280
2018-04-03 00:46:55 +08:00
Alexandre Poirot
9b2fdcf8bb Bug 1453712 - Use a preference to set the testing flag. r=jryans
MozReview-Commit-ID: 1cjSQnXtc4h

--HG--
extra : rebase_source : 55c0c9fa81a8dc17b92cba721dcc5912b07d0fab
2018-04-12 09:22:42 -07:00
Brian Grinstead
86d5c02846 Bug 1304794 - Stop using the old frontend for remaining non-console mochitests r=nchevobbe
MozReview-Commit-ID: D9azk5jNzpm

--HG--
extra : rebase_source : c361776292202609c408c25533aeab64428c4a47
2018-04-12 09:29:43 -07:00
Patrick Brosset
e9b33924a6 Bug 1351081 - Always retrieve quads relatively to the top window, correctly; r=gl
Use the getBoxQuads's relativeTo option to avoid having to calculate the offset
due to frames.

Also reduce the precision of numbers used when checking if the highlighter is
correctly displayed.

Finally, for some strange reasons, this patch seems to cause a totally unrelated
events mutation event to be sent during the test. This polutes the mutations
received and made the test fail. So I filtered the list of mutations to only
preserve the ones we care about here.
I could not reproduce this extra mutation when running Firefox. Only during the
test. So I did not investigate further.

MozReview-Commit-ID: 1ZQ6FGULjHG

--HG--
extra : rebase_source : 6406571849afb1d3dcec176f68ef4d3d122a1abf
2018-03-30 11:24:45 +02:00
Brian Grinstead
a977789695 Bug 1378108 - Part 2 - Remove Firebug theme;r=gl
MozReview-Commit-ID: 930pvUVLsiP

--HG--
rename : devtools/client/themes/images/firebug/read-only.svg => devtools/client/themes/images/read-only.svg
extra : rebase_source : e4b1609bff47753d01d4c21ceaca993ce8d93071
2018-04-04 12:32:54 -07:00
Brian Grinstead
244cee4afd Bug 1448555 - Part 1 - Allow the devtools toolbox to shrink when the window shrinks;r=dao,Gijs,jdescottes
By setting flex=10000 on the siblings of the toolbox and flex=1 on the toolbox iframe
we ensure that free space gets allocated to the browser contents and that the devtools
toolbox can shrink when the window needs to resize.

MozReview-Commit-ID: oel3kRw9m6

--HG--
extra : rebase_source : b87d6c024d8e57085115550bdc1b9169d3d70983
2018-04-03 13:57:30 -07:00
Julian Descottes
d06e921eb2 Bug 1430558 - add closing parenthesis automatically in CSS autocompletes;r=gl
MozReview-Commit-ID: LLBrLC3Bq0t

--HG--
extra : rebase_source : c081b53042dcc14c6f7bb022b35edab12a5deff0
2018-01-13 00:41:19 +01:00
Sarah Childs
7f25d63281 Bug 1431949 - Show variable values in the CSS variable autocomplete popup. r=jdescottes 2018-04-03 20:32:22 -04:00
Nicolas Chevobbe
24469148cd Bug 1449635 - convert use of defer to new Promise in shared-head.js; r=jryans.
MozReview-Commit-ID: Hoz9h5vm0m5

--HG--
extra : rebase_source : ca98939c62aba3dc9d89343ccbf770a259298fdf
2018-03-28 18:54:51 +02:00
Emilio Cobos Álvarez
0cb3575d4e Bug 1447506: Make Devtools' TableWidget tests not rely on XBL bindings getting applied synchronously when XUL is mixed with HTML. r=bgrins
So TableWidget's columns does something where they mix HTML and XUL:

  https://searchfox.org/mozilla-central/rev/b29daa46443b30612415c35be0a3c9c13b9dc5f6/devtools/client/shared/widgets/TableWidget.js#1055

The label's .value is an XBL binding property:

  https://searchfox.org/mozilla-central/rev/b29daa46443b30612415c35be0a3c9c13b9dc5f6/toolkit/content/widgets/text.xml#19

This tests expects the XBL binding for the <label> to be applied synchronously,
which the other patch in this bug prevents.

Is there a reason that is a XUL label btw? We don't seem to use the binding
methods at all (except in this test, lol).

Anyway, just use getAttribute("label") in the test instead.

MozReview-Commit-ID: 3DOI0Lff6AW
2018-03-23 16:44:30 +01:00
Bogdan Tara
4785e99532 Merge inbound to mozilla-central. a=merge 2018-03-17 12:29:57 +02:00
Nicolas Chevobbe
5789c8f4fa Bug 1382581 - Remove old-event-emitter usage from devtools/client/framework; r=bgrins.
MozReview-Commit-ID: 4oQJ3391H9S

--HG--
extra : rebase_source : b7068d3b50cec893cb8b1e1b7ab49f37a13723bd
2018-03-14 17:31:12 +01:00
Kris Maglione
313b707b2e Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc

--HG--
extra : rebase_source : 765ddd5c62c9449c07ed050e44d86a3bd5c0ae64
extra : amend_source : 627a7694ac07182200f876901ded7a34721cd228
2018-03-07 19:31:28 -08:00
Alexandre Poirot
bcf6facc3c Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans
MozReview-Commit-ID: HaGOC5cn3JD
2018-03-12 19:46:35 -05:00
J. Ryan Stinnett
23ff4cc75d Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
J. Ryan Stinnett
36cd8d6903 Bug 1442312 - Move allowed rejections into specific tests they apply to. r=ochameau
By moving only the rejections that actually still apply into each test and out
of the shared head file, we are much more likely to notice new instances and
catch them when writing and editing tests in the future.

Bug 1018184 can be used to actually resolve these issues.

MozReview-Commit-ID: Qb71PsuutB

--HG--
extra : rebase_source : 7056bbf9fcd76ffe00015119d811db0bd788aa59
2018-03-08 18:14:52 -06:00
Emilio Cobos Álvarez
70a3b5a0c6 Bug 1444036: Remove trivial uses of getPropertyCSSValue. rs=johannh
getPropertyCSSValue("foo").cssText is the same as getPropertyValue("foo").

MozReview-Commit-ID: HxdSr4749hi
2018-03-08 12:39:36 +01:00
J. Ryan Stinnett
e28260b08a Bug 1436187 - Fix linting errors in shared-head.js. r=bgrins
After moving shared-head.js, linting is activated because the new path is not
ignored.

MozReview-Commit-ID: GCLDfgJ7WCb

--HG--
extra : rebase_source : 598b89a4216e3876831afcfd885464f2b4e75244
2018-03-06 15:28:55 -06:00
J. Ryan Stinnett
d56f6a7b1f Bug 1436187 - Move frame-script-utils.js to shared/test. r=bgrins
Move frame-script-utils.js into shared/test since it is a test only file.  In
addition, it's removed from jar.mn so it won't be part the file we ship.  Test
manifests can use the absolute path syntax to make it accessible in new
directories.

MozReview-Commit-ID: 5sKYvv2rsJs

--HG--
rename : devtools/client/shared/frame-script-utils.js => devtools/client/shared/test/frame-script-utils.js
extra : rebase_source : 8c4d77c37cacdae36d17102b4dbf1222ec1fbd8a
2018-03-06 14:14:55 -06:00
J. Ryan Stinnett
c6cf60a39f Bug 1436187 - Centralize frame-script-utils loading via shared-head. r=bgrins
Use `loadFrameScriptUtils` from shared-head as a central utility for loading the
frame script utils helper.  This means less stray references to the utils file's
path across our tests.

As part of this, I went ahead and converted Canvas Debugger, Shader Editor, and
Web Audio Editor to shared-head, as that seemed like the best path to reduce
duplication.

(I left one extra path reference in profiler-mm-utils.js as-is, since it's a
module, so shared-head is not easily usable there.)

MozReview-Commit-ID: AKbZt8Jo0GM

--HG--
extra : rebase_source : e70b29153ef8d96d7026bc3abd0fb0d2306849bc
2018-03-05 16:31:49 -06:00
J. Ryan Stinnett
724f46419e Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl

--HG--
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
extra : rebase_source : c6f6cd75a9c1a5349f8406f337c9c39f2f755dab
2018-03-02 19:14:05 -06:00
Cosmin Sabou
0bc675f657 Backed out 4 changesets (bug 1436187) for mochitest devtools failures at browser_se_editors-error-gutter.js on a CLOSED TREE
Backed out changeset 253f74e28723 (bug 1436187)
Backed out changeset 9875771c9967 (bug 1436187)
Backed out changeset b2d808aa8c2e (bug 1436187)
Backed out changeset e747480f3cd2 (bug 1436187)

--HG--
rename : devtools/client/shared/test/shared-head.js => devtools/client/framework/test/shared-head.js
rename : devtools/client/shared/test/shared-redux-head.js => devtools/client/framework/test/shared-redux-head.js
rename : devtools/client/shared/test/frame-script-utils.js => devtools/client/shared/frame-script-utils.js
2018-03-07 22:04:35 +02:00
J. Ryan Stinnett
a0d8867796 Bug 1436187 - Fix linting errors in shared-head.js. r=bgrins
After moving shared-head.js, linting is activated because the new path is not
ignored.

MozReview-Commit-ID: GCLDfgJ7WCb

--HG--
extra : rebase_source : 43fa90d8ba528901dc761b566aaa8c53e3eeee51
2018-03-06 15:28:55 -06:00
J. Ryan Stinnett
a5ba5726ef Bug 1436187 - Move frame-script-utils.js to shared/test. r=bgrins
Move frame-script-utils.js into shared/test since it is a test only file.  In
addition, it's removed from jar.mn so it won't be part the file we ship.  Test
manifests can use the absolute path syntax to make it accessible in new
directories.

MozReview-Commit-ID: 5sKYvv2rsJs

--HG--
rename : devtools/client/shared/frame-script-utils.js => devtools/client/shared/test/frame-script-utils.js
extra : rebase_source : cb18b88016df8bc7fba1620534beed473ebb406a
2018-03-06 14:14:55 -06:00
J. Ryan Stinnett
7d61e3b235 Bug 1436187 - Centralize frame-script-utils loading via shared-head. r=bgrins
Use `loadFrameScriptUtils` from shared-head as a central utility for loading the
frame script utils helper.  This means less stray references to the utils file's
path across our tests.

As part of this, I went ahead and converted Canvas Debugger, Shader Editor, and
Web Audio Editor to shared-head, as that seemed like the best path to reduce
duplication.

(I left one extra path reference in profiler-mm-utils.js as-is, since it's a
module, so shared-head is not easily usable there.)

MozReview-Commit-ID: AKbZt8Jo0GM

--HG--
extra : rebase_source : d00f578d7c9078088be8c33ad80eb30a59d6a6e8
2018-03-05 16:31:49 -06:00
J. Ryan Stinnett
5ff93bf9fd Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl

--HG--
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
extra : rebase_source : 58e35632f0a82b0d7e880b0297306500097676e3
2018-03-02 19:14:05 -06:00
yulia
14627be8a8 Bug 1382605 - Fix 6 tests failures on devtools/client/shared due the EventEmitter refactoring r=nchevobbe
MozReview-Commit-ID: EaFYqaY2M79

--HG--
extra : rebase_source : 242b560f9e675bcda84ff0f566a67ecde54e9475
2018-03-07 10:17:03 +01:00
Florian Quèze
f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Frederik Braun
24e2c2fe9b Bug 1433929 - Use createElement style with DevTools forms. r=jryans
MozReview-Commit-ID: K9RQyYUrdE8

--HG--
extra : rebase_source : a9f93b3924002927667c3d0196f59bac202a8659
2018-02-15 17:06:58 +01:00
Masayuki Nakano
46356ed826 Bug 1439500 - Make devtools/client/shared/widgets handle non-printable keys and key combinations with keydown event r=jryans
We'll stop dispatching keypress event for non-printable keys and key
combinations at least in web content.  This means that widget of
devtools/client cannot be tested with loading them into tabs with mochitest
browser chrome.  Fortunately, they are cleanly independent from other module's
keypress event listeners.  So, we can make they use keydown event to handle
non-printable keys and key combinations.

MozReview-Commit-ID: 6fNSsGi9VbQ

--HG--
extra : rebase_source : d8c201d2233dd1c08a87ad5123aaa2942af643d7
2018-02-20 18:57:35 +09:00
Mark Banner
21e6e270a4 Bug 1438489 - Enable ESLint rule mozilla/use-services for devtools/. r=jdescottes
MozReview-Commit-ID: FZscEA6Q3Kb

--HG--
extra : rebase_source : b1b8699288a3595e52bcff3c7684bfe095f41dd1
2018-02-15 12:00:17 +00:00
Masayuki Nakano
8917ac460f Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug
Now, callers of EventUtils.synthesizeKey() don't need to specify
KeyboardEvent.code value anymore if they assume that active keyboard layout
is US keyboard layout.

Note that this patch changes the meaning of only test_bug551434.html.
Some callers in it don't match the key value and code value but that looks
like that they don't checking such odd keyboard events.  So, they must be
bug of the test.

MozReview-Commit-ID: Itxo7yZ9rkK

--HG--
extra : rebase_source : 856ef3715c924ca16e993ea57d92d1243b5cc6be
2018-02-09 19:17:26 +09:00
Boris Zbarsky
fce30e834b Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki
MozReview-Commit-ID: GGciORX62Yh
2018-02-09 11:17:09 -05:00
Alexandre Poirot
e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Masayuki Nakano
dfd6ae6c4b Bug 1435180 - Make existing tests aware of strict keypress event dispatch r=smaug
We'll stop dispatching keypress events on web contents for conforming to spec of
UI Events.  Some existing tests assumes that keypress events are fired even
when non-printable keys are pressed.

This patch makes them check the pref,
"dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content"
and only listen to keydown event instead of keypress even if the pref is true
and expected key event is not a printable key press.

MozReview-Commit-ID: 6bKoK7dsB0l

--HG--
extra : rebase_source : b3705b0814d5690e00208d0d3315f09f886c6f26
2018-02-02 18:10:22 +09:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Julian Descottes
8cfe81bd3d Bug 1434543 - removed unused getElementFromPoint from devtools layout/utils;r=ochameau
MozReview-Commit-ID: FHy6Dv5Q5l3

--HG--
extra : rebase_source : e30cd11b98f09842d35cc955d3145fba751a7296
2018-01-31 13:12:10 +01:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Rajdeep Nanua
e40b85a8a3 Bug 1422635 - Implement CSS variable autocompletion. r=jdescottes
Initial support for CSS variable autocompletion in ruleview.

MozReview-Commit-ID: AlblDmyW4Iq
2017-12-12 01:47:59 -05:00
Julian Descottes
f714f056d0 Bug 1272774 - migrate all listTabs() callers to use promise;r=ochameau
MozReview-Commit-ID: 9PtRZHG5GuF

--HG--
extra : rebase_source : f4c7cfd5f8338eb22fa44dc79a1e8b7840dc4e2d
2018-01-15 18:38:34 +01:00
Andreea Pavel
d4ee1cf494 Backed out changeset 0569381b5e5f (bug 1422635) for failing ESlint at /builds/worker/checkouts/gecko/devtools/client/shared/test/browser_inplace-editor_autocomplete_css_variable.js on a CLOSED TREE 2018-01-24 00:34:34 +02:00
Rajdeep Nanua
5d6360507a Bug 1422635: Implement CSS variable autocompletion. r=jdescottes
Initial support for CSS variable autocompletion in ruleview.

MozReview-Commit-ID: AlblDmyW4Iq

--HG--
extra : rebase_source : f19ea980e0d6f141ac5f0c766e37b04c92559e05
2017-12-12 01:47:59 -05:00
Tooru Fujisawa
e465f02004 Bug 1423007 - Part 2: Wait both for the click event and select event before continuing the test. r=jryans 2018-01-20 20:40:11 +09:00
Tooru Fujisawa
fc1e16a541 Bug 1423007 - Part 1: Use Async Function in devtools/client/shared/test/browser_treeWidget_keyboard_interaction.js r=jryans 2018-01-20 20:40:11 +09:00
Cameron McCormack
afa1299635 Bug 1427419 - Part 24: Move pseudo-class lock methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: ItruGMmf5Ih
2018-01-11 12:38:01 +08:00
Cameron McCormack
0ef012043a Bug 1427419 - Part 13: Move inIDOMUtils.isValidCSSColor to InspectorUtils. r=bz
MozReview-Commit-ID: DNRfmbDucdT
2018-01-11 12:38:00 +08:00
Cameron McCormack
664c1757c0 Bug 1427419 - Part 12: Move inIDOMUtils.colorToRGBA to InspectorUtils. r=bz
MozReview-Commit-ID: 9EAdNibvZ4
2018-01-11 12:38:00 +08:00
Cameron McCormack
2eef6d3612 Bug 1427419 - Part 11: Move inIDOMUtils.rgbToColorName to InspectorUtils. r=bz
MozReview-Commit-ID: LZcGUEO4Ois
2018-01-11 12:38:00 +08:00
Cameron McCormack
f5ef2d0a72 Bug 1427419 - Part 9: Move inIDOMUtils.getCSSValuesForProperty to InspectorUtils. r=bz
MozReview-Commit-ID: D3jf42KI7kO
2018-01-11 12:38:00 +08:00
Cameron McCormack
fc4a76fb7f Bug 1427419 - Part 5: Move nsIDOMUtils.getCSSLexer to InspectorUtils. r=bz
MozReview-Commit-ID: 4UGiS3I2V6B
2018-01-11 12:37:59 +08:00
Cameron McCormack
abddba8b81 Bug 1427419 - Part 3: Move inIDOMUtils.getCSSStyleRules to InspectorUtils. r=bz
MozReview-Commit-ID: 3pcxsYhguOk
2018-01-11 12:37:59 +08:00
Michael Hoffmann
287a2bca6c Bug 994559 - Style used fonts in rule view. r=pbro 2018-01-09 08:56:00 -05:00
Alexandre Poirot
74da912044 Bug 1427818 - Fix browser_layoutHelpers-getBoxQuads.js on e10s. r=pbro
MozReview-Commit-ID: 8nA5FVLLm9H

--HG--
extra : rebase_source : 3aa998ce0d51c20b52d5a762ce3042e196b0cf86
2018-01-03 10:19:03 -08:00
Florian Quèze
22c55eb7b7 Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx 2017-12-21 11:11:57 +01:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Olli Pettay
e84d7b7ef4 Bug 1149555 - Update resize event firing to follow the specs, dispatch right before rAF callbacks, r=dbaron
MozReview-Commit-ID: GFnj2du2bWJ
2015-05-05 17:56:01 +03:00
Bill McCloskey
df63ff970b Bug 1102464 - Fix ESLint failure
MozReview-Commit-ID: JMRxUcSU98m
2017-12-06 21:21:24 -08:00
Rajdeep Nanua
0b2ed65576 Bug 1102464 - Implement CSS variable tooltip. r=pbro
Initial support for CSS variable tooltip. Removed title attribute from
variables and added a new tooltip displaying the same content.

MozReview-Commit-ID: FeHmgiS7KQj
2017-11-08 00:22:24 -05:00
Julian Descottes
af2e5d5dd1 Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG

--HG--
extra : rebase_source : 7704264e84d96e03a0c789103ff466980913d4d2
2017-11-13 21:22:15 +01:00
Julian Descottes
7324ecc861 Bug 1416711 - Stop guarding consumer calls to DebuggerServer.init();r=ochameau
DebuggerServer.init() already bails out if it was previously initialized
so we could avoid guarding the calls to init() with it everywhere.

Registering an actor module several times is also a noop as the Server
keeps a map of all the already registered modules and will bail out if
the module is already known.

MozReview-Commit-ID: 4ONLlx9253i

--HG--
extra : rebase_source : a6fce209baf5e019b6a216761c01832a30332343
2017-11-13 21:04:43 +01:00
Julian Descottes
4cac7dcb25 Bug 1416711 - Migrate addBrowser/TabActors to registerActors;r=ochameau
DebuggerServer has old APIs addBrowserActors & addTabActors that can be
replaced by calls to registerActors.

MozReview-Commit-ID: KpYJpbSHM8I

--HG--
extra : rebase_source : c7f20edf503b944ef2582b5fe73bd6d899c0d1cc
2017-11-13 20:29:55 +01:00
Mark Banner
ba94a5128c Bug 1371293 - Fix instances of missing 'use strict;' in html files as found after ESLint 4 upgrade. r=mossop
MozReview-Commit-ID: 2q3nqLaXA3E

--HG--
extra : rebase_source : 971ee6ae4dd565ead6f4aa16e06638445ecc5da0
2017-10-31 16:40:37 +00:00
Tom Tromey
42097bd9cb Bug 1384463 - only trim CSS-allowed whitespace in declaration parser; r=gl
MozReview-Commit-ID: 7bnu2a9G1uq

--HG--
extra : rebase_source : 32fc701fe10f44e36c88aa73d4b234b94f9990f1
2017-10-19 11:04:30 -06:00
Julian Descottes
3ec8ed626a Bug 1406375 - test integers in browser_num-l10n.js;r=Honza
MozReview-Commit-ID: 49UwLBMZTiv

--HG--
extra : rebase_source : 983c1dd7194c5d702f92686b3507861fb8a1e861
2017-10-18 12:16:30 +02:00
Julian Descottes
03fe9f57c9 Bug 1406311 - more tests for devtools l10n numbers method;r=ochameau
MozReview-Commit-ID: EwJxfER0qyV

--HG--
extra : rebase_source : e9cb0cbb6bedd29a506f36fe35eb37772a82ce3c
extra : source : 002176cb97a90f1019ae71486d9c19409d5ad2c7
2017-10-06 15:18:32 +02:00
Hiroyuki Ikezoe
a70fdbfb6e Bug 1399314 - Introdue CssLogic.getCSSStyleRules to get style rules for ::before and ::after pseudo elements handy. r=bgrins
For pseudo elements, inIDOMUtils.getCSSStyleRules needs to take the parent
element of the pseudo element and pseudo name. This new function wraps
inIDOMUtils.getCSSStyleRules so that we can get style rules for pseudo elements
handy.

MozReview-Commit-ID: LRQBdiizoL7

--HG--
extra : rebase_source : ca409443da52d25630f52052aabf508ee79a6bd1
2017-10-13 07:19:54 +09:00
J. Ryan Stinnett
a6b737a57c Bug 1404197 - Disable RDM telem test on Windows. r=me
MozReview-Commit-ID: JndqAQ9LfoO
2017-10-03 22:09:12 -07:00
Towkir Ahmed
1d9469d0b7 Bug 1382171 - Remove MDN Docs widget. r=jdescottes 2017-10-03 09:13:00 -04:00
Nicolas Chevobbe
307f01eac7 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0

--HG--
extra : rebase_source : ebf75886fac79aaebfab16c03997f402e9f5a278
2017-09-29 15:24:14 +02:00
J. Ryan Stinnett
b4ee78b255 Bug 1305777 - Clean up tests that supported both RDMs. r=ochameau
MozReview-Commit-ID: 4coCvC4KHtn

--HG--
extra : rebase_source : 818457e3a892cb3ef2270aa4b09c61d81ca90b50
2017-09-26 18:54:14 -05:00
J. Ryan Stinnett
ecad77ef81 Bug 1305777 - Remove RDM manager switch and pref. r=ochameau
This removes the switching based on the RDM.html pref and the pref itself.

Some files in old RDM are updated for completeness, but they are about to be
removed anyway.

MozReview-Commit-ID: JnTC7ZF3UCC

--HG--
extra : rebase_source : 6a520a726fe77c560ecb71c5f633a9e2d7b956f7
2017-09-26 18:39:16 -05:00
Sebastian Hengst
58cfe586be Backed out changeset 6ae05de7437d (bug 1305777) 2017-09-29 10:43:48 +02:00
J. Ryan Stinnett
41503ce759 Bug 1305777 - Remove RDM manager switch and pref. r=ochameau
This removes the switching based on the RDM.html pref and the pref itself.

Some files in old RDM are updated for completeness, but they are about to be
removed anyway.

MozReview-Commit-ID: JnTC7ZF3UCC

--HG--
extra : rebase_source : d591e04148d748c2659093295160adc6a3d2c445
2017-09-26 18:39:16 -05:00
Wes Kocher
22a72df7fe Merge inbound to m-c a=merge
MozReview-Commit-ID: 6viJ4wRxLa8
2017-09-26 15:54:51 -07:00
Julian Descottes
4c5032bb5b Bug 1403152 - fix test browser_html_tooltip_xul-wrapper.js for small viewports;r=me
MozReview-Commit-ID: A1W1LCDjupO

--HG--
extra : rebase_source : 30fceb0a393c767a839a554135143c1f235c0121
2017-09-26 15:04:59 +02:00
Julian Descottes
ecb3f51df2 Bug 1331167 - fix TooltipToggle to hide tooltip when leaving target;r=Honza
MozReview-Commit-ID: 3pTi5DfEEPd

--HG--
extra : rebase_source : ebae2ff583feb8063459029e1a7f3cbb3d6c8fff
2016-12-08 07:41:49 +01:00
Sebastian Hengst
a1a7652547 Backed out changeset 7c952d1beaaf (bug 1331167) for failures in devtools' tooltip tests, e.g. devtools/client/inspector/shared/test/browser_styleinspector_tooltip-background-image.js. r=backout 2017-09-26 11:47:26 +02:00
Julian Descottes
9dc4c7045d Bug 1331167 - fix TooltipToggle to hide tooltip when leaving target;r=Honza
MozReview-Commit-ID: 3pTi5DfEEPd

--HG--
extra : rebase_source : d7ac7125d3fe8ee8e10affb34d3323518d357534
2016-12-08 07:41:49 +01:00
Sebastian Hengst
006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Alexandre Poirot
f2bfc94341 Bug 1399449 - Convert devtools/client/responsivedesign/responsivedesign.jsm to a commonjs module. r=jryans
MozReview-Commit-ID: Jl6OGUWnbHN

--HG--
rename : devtools/client/responsivedesign/responsivedesign.jsm => devtools/client/responsivedesign/responsivedesign.js
extra : rebase_source : 329c364fc4c256273b0d02a8119637aed428134c
2017-09-13 14:33:58 +02:00
Julian Descottes
ded88d3bd5 Bug 1399028 - fix assert messages in browser_theme.js test;r=gl
MozReview-Commit-ID: 6RI0FNVIWsv
2017-09-12 15:30:54 +02:00
Gabriel Luong
bd7d3ec867 Bug 1398880 - Implement the new photon font and syntax colors for the inspector and debugger. r=pbro 2017-09-12 14:43:04 -04:00
Julian Descottes
e3f444304a Bug 1397296 - remove mappings for gre/modules/commonjs in devtools loaders;r=ochameau
MozReview-Commit-ID: 2l3cJhGs24t

--HG--
extra : rebase_source : f4f21be37d9775929c7420574d5cca61ada4308b
2017-09-06 16:42:48 +02:00
Alexandre Poirot
4a603969ef Bug 1396600 - Make some efforts to lazy load properties-db. r=tromey
MozReview-Commit-ID: LGgVb5kxN7X

--HG--
extra : rebase_source : e4acc31da93eb8d88f5dbc075036d1130511ceee
2017-09-06 18:54:07 +02:00
Alexandre Poirot
67e0287de3 Bug 1392602 - Copy SDK Loader to devtools. r=jdescottes
MozReview-Commit-ID: 6INu38Wqvt

--HG--
extra : rebase_source : b140f8932bf141abae29f42a13dc4eef58a84d6f
2017-08-24 15:17:33 +02:00
Gabriel Luong
1b014ccabc Bug 1391003 - Use the new photon line selection and hover background colors in devtool. r=bgrins 2017-09-01 10:47:11 -04:00
Rahul Chaudhary
087b46a0b9 Bug 1145527 - Display the inherited and used CSS Variable in the rule view. r=tromey
Displays which CSS variable is used in the rule view.
Displays the actual variable value on the variable name's title property.
Displays all the inherited CSS variables on the selected element in the rule view.



MozReview-Commit-ID: 52uLJA123AP
2017-07-02 22:39:45 +02:00