Commit Graph
36 Commits
Author SHA1 Message Date
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Julian Descottes da3808c156 Bug 1500354 - Add title to about:devtools-toolbox tabs r=ladybenko
Depends on D28964

Differential Revision: https://phabricator.services.mozilla.com/D28965
2019-04-30 11:19:49 +00:00
Narcis Beleuzu 6e956f4f9b Backed out 3 changesets (bug 1500354) for dt failures on browser_aboutdebugging_serviceworker_timeout.js . CLOSED TREE
Backed out changeset 6596c844c27e (bug 1500354)
Backed out changeset dbb2526ae6eb (bug 1500354)
Backed out changeset e9e6acc1b0cc (bug 1500354)
2019-04-30 02:04:43 +03:00
Julian Descottes 128ba9085b Bug 1500354 - Add title to about:devtools-toolbox tabs r=ladybenko
Depends on D28964

Differential Revision: https://phabricator.services.mozilla.com/D28965
2019-04-29 20:01:50 +00:00
Belén Albeza 3a3c352e5e Bug 1505368 - Show error page in about:devtools-toolbox when target is destroyed r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D20315
2019-04-08 15:41:38 +00:00
Julian Descottes 500379d302 Bug 1539071 - Wait for toolbox destroy to finish before reloading toolbox tab;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D26010
2019-04-08 09:42:24 +00:00
Cosmin Sabou ad626640d5 Backed out changeset b147830dc59e (bug 1505368) for devtools node failures. CLOSED TREE 2019-04-04 14:24:41 +03:00
Belén Albeza b0c5f7789f Bug 1505368 - Show error page in about:devtools-toolbox when target is destroyed r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D20315
2019-04-04 10:39:31 +00:00
Narcis Beleuzu dd103d3a1a Backed out changeset a14e5a146b8d (bug 1505368) for causing asan devtools failures. CLOSED TREE 2019-03-20 22:34:19 +02:00
Belén Albeza 82af4063ee Bug 1505368 - Show error page in about:devtools-toolbox when target is destroyed r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D20315
2019-03-20 13:28:17 +00:00
Belén Albeza aa2a5c9fde Bug 1509121 - Display error screen if about:devtools-toolbox fails to start. r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D18842
2019-02-14 08:13:16 +00:00
Alexandre Poirot 698742a690 Bug 1520774 - Remove TargetFactory.forRemoteTab. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D18539
2019-02-06 16:17:15 +00:00
Daisuke Akatsuka 26e69f4cbc Bug 1521440: Avoid to move to about:blank after destroying. r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D17795
2019-01-31 18:08:19 +00:00
Kris Maglione 856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Alexandre Poirot c2c92214da Bug 1508285 - Refactor RootFront.getTab to return BrowsingContextTargetFront instead of JSON form. r=yulia
MozReview-Commit-ID: 6TOInM5BmYe

Differential Revision: https://phabricator.services.mozilla.com/D14173
2018-12-17 11:56:26 +00:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Alexandre Poirot 22e91d7acd 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
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Andrew McCreight 272cee1e65 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
2018-02-06 09:36:57 -08:00
Julian Descottes 21b6d9f77b 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
2017-11-13 21:22:15 +01:00
Julian Descottes 6e8668e849 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
2017-11-13 21:04:43 +01:00
Julian Descottes 2c1ef484ef 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
2017-11-13 20:29:55 +01:00
Nicolas Chevobbe fee723d060 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
2017-09-29 15:24:14 +02:00
Kris Maglione be161e68b4 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0
2017-08-19 13:32:58 -07:00
J. Ryan Stinnett f7e1b9ba64 Bug 1275078 - toolbox-init.js error handling tweaks from Positron. r=ochameau
MozReview-Commit-ID: LDjzdUTJikc
2017-02-22 12:45:06 -06:00
J. Ryan Stinnett f60efe3dc8 Bug 1275078 - Fix ESLint issues in toolbox and target files. r=ochameau
MozReview-Commit-ID: 8SoQ2JnTib3
2017-02-22 12:33:20 -06:00
J. Ryan Stinnett 96c3e91653 Bug 1268134 - Setup fake toolbox host for standalone windows. r=ochameau
MozReview-Commit-ID: CHzE4EdVkBR
2016-04-14 20:05:59 -05:00
Alexandre Poirot f32b04847e Bug 1298082 - Cleanup toolbox on its document unload. r=jryans
MozReview-Commit-ID: 6tghrnYJiOy
2016-08-30 06:32:00 -07:00
Alexandre Poirot 5a92c204eb Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM
2016-08-25 05:50:44 -07:00
J. Ryan Stinnett 0ddbfea7f3 Bug 1240912 - Toolbox remains connected across frame swaps. r=ochameau
It is now possible keep the toolbox open while toggling RDM open and closed.
The toolbox will follow the frame as it moves and update the message manager it
uses internally with each move.

MozReview-Commit-ID: DvLzCmOXfnb
2016-08-19 10:01:29 -05:00
Alexandre Poirot 1db912cedb Bug 1281731 - Destroy the toolbox on toolbox.xul unload. r=jryans 2016-06-28 08:39:37 -07:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Alexandre Poirot f859202ebe Bug 1262144 - Support "tool" query parameter on about:devtools-toolbox for default panel to open. r=jryans 2016-04-12 13:05:36 -07:00
Alexandre Poirot 57b925a240 Bug 1233463 - Allow loading devtools in a tab or an html:iframe. r=jryans 2016-03-16 06:42:19 -07:00