Commit Graph
68 Commits
Author SHA1 Message Date
Alexandre Poirot d7f3cddc7f Bug 1888171 - [devtools] Convert Browser Loader to ESM. r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D205867
2024-03-28 15:15:24 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Alexandre Poirot d7a3f2cb45 Bug 1807898 - [devtools] Remove all callsites passing a now-useless telemetry sessionId. r=devtools-reviewers,nchevobbe
Note that there is still one leftover usage of sessionId related to performance markers,
which isn't related to telemetry... but a way to distinguish toolbox instances.

Differential Revision: https://phabricator.services.mozilla.com/D165936
2023-01-04 18:28:33 +00:00
Alexandre Poirot 44c4e9f6d7 Bug 1807898 - [devtools] Reuse toolbox's Telemetry instance from all panels. r=devtools-reviewers,nchevobbe
This was slightly more tricky in the debugger as the toolbox's telemetry should be provided to the telemetry module.

Differential Revision: https://phabricator.services.mozilla.com/D165934
2023-01-04 18:28:33 +00:00
Alexandre Poirot f082da3878 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/application. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158371
2022-09-30 15:17:35 +00:00
Julian Descottes 06b42b006a Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau
Depends on D131216

Differential Revision: https://phabricator.services.mozilla.com/D131217
2021-11-17 12:43:26 +00:00
Alexandre Poirot c91d429c6d Bug 1715910 - [devtools] Use DOCUMENT_EVENT's dom-complete event in the application panel. r=ladybenko
With this change, we no longer need to track targets.

Differential Revision: https://phabricator.services.mozilla.com/D117514
2021-06-17 15:35:43 +00:00
Alexandre Poirot ee871ecc53 Bug 1696372 - [devtools] Migrate application panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110206
2021-03-30 21:29:37 +00:00
Belén Albeza 9c3652b5c4 Bug 1643253 - Part 1: Add telemetry middleware to record application panel events r=jdescottes,janerik
Differential Revision: https://phabricator.services.mozilla.com/D82044
2020-07-13 14:58:29 +00:00
Julian Descottes 0a84822a59 Bug 1619221 - Stop updating the application panel when multi-e10s changes r=ladybenko
Depends on D81342

See previous revision, same logic applies to the application panel.

Differential Revision: https://phabricator.services.mozilla.com/D81343
2020-07-07 15:19:02 +00:00
Julian Descottes 82c74999af Bug 1645563 - Wrap application panel updateWorkers method in safeAsyncMethod r=ladybenko
Depends on D81677

We recently introduced a modification to updateWorkers in order to swallow errors after destroy.
Since I am suggesting to add a helper to take care of a similar issue in Toolbox::highlight I think we could also apply it here.

Differential Revision: https://phabricator.services.mozilla.com/D81679
2020-07-02 16:15:03 +00:00
Julian Descottes b0055d7587 Bug 1637793 - Catch updateWorkers errors occurring after app panel destroy r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D78633
2020-06-26 12:39:47 +00:00
Nicolas Chevobbe 52769cfc76 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 16:03:32 +00:00
Razvan Maries c6b6ea9e0a Backed out changeset 3c239920e8fb (bug 1636924) for perma failures on browser_ext_devtools_inspectedWindow.js CLOSED TREE 2020-05-15 15:33:15 +03:00
Nicolas Chevobbe 13622df2d9 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 09:09:28 +00:00
Belén Albeza e5ebf1423d Bug 1459953 - Part 1: Show all service worker states r=jdescottes,fluent-reviewers,ochameau,flod
Differential Revision: https://phabricator.services.mozilla.com/D63864
2020-03-17 11:26:35 +00:00
Noemi Erli 4fab12022a Backed out 2 changesets (bug 1459953) for causing devtools failures regarding listServiceWorkerRegistrations CLOSED TREE
Backed out changeset 1a8916dc09ee (bug 1459953)
Backed out changeset 71141fa6d324 (bug 1459953)
2020-03-09 17:03:15 +02:00
Belén Albeza 7c91fa5287 Bug 1459953 - Part 1: Show all service worker states r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D63864
2020-03-09 11:44:09 +00:00
Belén Albeza 80e97f7127 Bug 1600263 - Switch the Application panel to use the new TargetList API r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D57139
2020-01-10 16:27:47 +00:00
Julian Descottes bd802f5ac9 Bug 1607853 - Rename paths to devtools FTL files from devtools to devtools/client and startup to devtools/startup r=ladybenko
Depends on D59004

Differential Revision: https://phabricator.services.mozilla.com/D59180
2020-01-10 12:18:10 +00:00
Brindusan Cristian 8a92d97f3d Backed out 2 changesets (bug 1600263) for devtools failures at browser_application_panel_start-service-worker.js. CLOSED TREE
Backed out changeset 69e4025162ec (bug 1600263)
Backed out changeset d189b0530b7a (bug 1600263)
2020-01-07 18:03:42 +02:00
Belén Albeza c36cd029bc Bug 1600263 - Switch the Application panel to use the new TargetList API r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D57139
2020-01-07 12:12:09 +00:00
Julian Descottes 150349d1c5 Bug 1596686 - Use absolute paths for require calls r=gl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243
2019-12-27 12:23:47 +00:00
Razvan Maries 0f5ce38e4c Backed out changeset 14698fa06ab8 (bug 1596686) for causing perma fails on browser_json_refresh.js. 2019-12-27 14:01:24 +02:00
Julian Descottes 3fa1b45876 Bug 1596686 - Use absolute paths for require calls r=gl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243
2019-12-27 09:09:51 +00:00
Belén Albeza 22a7f47b5c Bug 1598629 - Part 1: Debug workers within the new threads panel in the debugger r=bhackett,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54746
2019-12-10 15:29:27 +00:00
Mihai Alexandru Michis d524aefd60 Backed out 2 changesets (bug 1598629) for causing a high devtools failure rate in browser_application_panel_debug-service-worker.js
Backed out changeset 472f8d632630 (bug 1598629)
Backed out changeset 70bde5ea35f6 (bug 1598629)
2019-11-29 19:11:35 +02:00
Belén Albeza 03eae5a959 Bug 1598629 - Part 1: Debug workers within the new threads panel in the debugger r=bhackett,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54746
2019-11-29 14:14:02 +00:00
Belén Albeza 03f2600387 Bug 1596148 - Part 1: Allow remote debugging of service workers r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D53990
2019-11-20 22:51:06 +00:00
Belén Albeza acc7ce565a Bug 1590758 - Fix blank panel when changing to different pages with service workers from the same domain r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D52147
2019-11-08 16:58:18 +00:00
Belén Albeza d76531cfbe Bug 1572482 - Refetch manifest when reloading or navigating to a new page r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D45003
2019-09-09 09:26:17 +00:00
Belén Albeza 3a75da81d6 Bug 1553799 - Part 3: Move serviceContainer to its own module r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39374
2019-07-29 12:53:18 +00:00
Julian Descottes 4d981dcc40 Bug 1531349 - Rename multi-e10s-helper to service-workers-debug-helper r=ladybenko,yulia
Differential Revision: https://phabricator.services.mozilla.com/D38850
2019-07-29 12:59:25 +00:00
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
Belén Albeza 7d014afe8f Bug 1553110 - Part 2: Disable debugging/start links if sw cannot be debugged (multie10s) r=Ola,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D33637
2019-06-07 12:58:16 +00:00
Belén Albeza 5977f33988 Bug 1553110 - Part 1: Share the workers-listener module between the new about debugging and application panel r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D33024
2019-06-04 13:59:39 +00:00
Belén Albeza 0877b1323e Bug 1554133 - Part 2: make app panel to use the shared fluent l10n module r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D32736
2019-06-04 14:50:39 +00:00
Bogdan Tara a59a03377d Backed out 2 changesets (bug 1554133) for package related build bustages CLOSED TREE
Backed out changeset 72ae1ac933ac (bug 1554133)
Backed out changeset c48321582c78 (bug 1554133)
2019-06-04 17:05:53 +03:00
Belén Albeza 527edfb32b Bug 1554133 - Part 2: make app panel to use the shared fluent l10n module r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D32736
2019-06-03 12:16:27 +00:00
Alexandre Poirot e9c0994e1c Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874
2019-02-02 11:24:24 +00:00
Bogdan Tara c0cfac2f78 Backed out 8 changesets (bug 1465635) for failures on browser_canvas-actor-test-10.js, browser_target_server_compartment.js CLOSED TREE
Backed out changeset e8e363f98525 (bug 1465635)
Backed out changeset 9ec017a91e78 (bug 1465635)
Backed out changeset 11413ebfbcaf (bug 1465635)
Backed out changeset 52728b761d5d (bug 1465635)
Backed out changeset 734646bf9829 (bug 1465635)
Backed out changeset d9ae7cd34c1a (bug 1465635)
Backed out changeset 00d325ab677a (bug 1465635)
Backed out changeset a9b181f32189 (bug 1465635)
2019-01-30 18:54:05 +02:00
Alexandre Poirot 47a8a0d0bd Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874
2019-01-30 13:28:25 +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
Julian Descottes cc81cc88fe Bug 1510654 - Create fronts for ServiceWorkerRegistration, PushSubscription and ServiceWorker;r=ochameau,ladybenko
Depends on D15375

Differential Revision: https://phabricator.services.mozilla.com/D15376
2019-01-10 17:26:35 +00:00
Alexandre Poirot 71f2d60648 Bug 1485661 - Adapt serviceWorkerRegistrationListChanged to new front. r=yulia
MozReview-Commit-ID: 8LRQqXYXe9W

Depends on D8823

Differential Revision: https://phabricator.services.mozilla.com/D8824
2018-10-30 08:08:33 +00:00
Alexandre Poirot bc82440593 Bug 1485661 - Adapt processListChanged to new front. r=yulia
MozReview-Commit-ID: 1CSeNU9Nfll

Depends on D8821

Differential Revision: https://phabricator.services.mozilla.com/D8822
2018-10-30 08:08:29 +00:00
Zibi Braniecki 715693b1b7 Bug 1498960 - Update Fluent in Gecko to 0.9. r=stas
Differential Revision: https://phabricator.services.mozilla.com/D8689
2018-10-20 16:35:50 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Alexandre Poirot 73e6f4f534 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
2018-10-15 08:36:10 +00:00