Граф коммитов

264 Коммитов

Автор SHA1 Сообщение Дата
Julien Wajsberg 686ac4bb70 Bug 1811853 - Move background.jsm.js to a shared subdirectory r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D167845
2023-02-13 16:46:38 +00:00
Geoff Lankow a1a27f5aa0 Bug 1803728 - Stop trying to add Firefox devtools UI to Thunderbird on start-up. r=devtools-reviewers,nchevobbe
This code tries to add keys and menu items etc. to Firefox when browser-delayed-startup-finished is fired.
Since bug 1797760 Thunderbird fires this notification too, and we've been getting errors about the devtools trying and failing to add to Thunderbird's UI.

Differential Revision: https://phabricator.services.mozilla.com/D169392
2023-02-10 10:57:12 +00:00
Gijs Kruitbosch dae4594790 Bug 1795255 - autofix duplicate imports in tests under devtools, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167716
2023-01-31 11:48:42 +00:00
Milos Milovanovic 9e48e2e8a2 Bug 1798748 - Fix for command line help output to include arguments --jsdebugger, --wait-for-jsdebugger and --start-debugger-server only once r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D165461
2023-01-20 23:01:47 +00:00
Alexandre Poirot e844ad87e1 Bug 1807896 - [devtools] Remove "toolbox-created" event. r=devtools-reviewers,perftest-reviewers,sparky,jdescottes
This event was only used in this test.

Unfortunately, I wasn't able to keep the same logic in the test while keeping it reliable.
I prefer to remove this test-only event and simplify the test to only ensure
we safely ignore subsequent calls to toggle.

What is hard to know from the test, when calling toggle in some following event loops
is if this will be ignored -or- close/open a toolbox...

Differential Revision: https://phabricator.services.mozilla.com/D165715
2023-01-18 09:27:30 +00:00
Mark Banner c29bf3e394 Bug 1808500 - Automatically replace Cu.reportError with console.error (devtools). r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D165941
2023-01-06 15:34:27 +00:00
Gijs Kruitbosch bd7719e854 Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164127
2022-12-12 10:08:03 +00:00
Paul Adenot 0a5a3ee289 Bug 1804687 - Allow https://example.com as a Firefox Profiler base_url. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D164231
2022-12-08 14:52:43 +00:00
Barret Rennie 6402b34ecf Bug 1541508 - Use Services.env in devtools/ r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D160137
2022-11-25 19:09:06 +00:00
Cristian Tuns 4d37cf70f1 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie fd8db3a903 Bug 1541508 - Use Services.env in devtools/ r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D160137
2022-11-02 02:08:53 +00:00
Alexandre Poirot 474b0792ba Bug 1797730 - [devtools] Rename gDevTools._toolboxes to gDevTools._toolboxesPerCommands. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D160618
2022-10-29 07:48:08 +00:00
Julian Descottes 36a9cd1d4d Bug 1796582 - [devtools] Extract helpers for distinctSystemPrincipalLoader to a dedicated module r=ochameau
Depends on D160214

Differential Revision: https://phabricator.services.mozilla.com/D160215
2022-10-28 08:06:38 +00:00
Stanca Serban fe5c9c39a8 Backed out 3 changesets (bug 1796582) for causing failures in test_invisible_loader.js. CLOSED TREE
Backed out changeset a365a7834657 (bug 1796582)
Backed out changeset fa0ff274795f (bug 1796582)
Backed out changeset 70af32ef6986 (bug 1796582)
2022-10-28 10:01:09 +03:00
Julian Descottes ec442d678c Bug 1796582 - [devtools] Extract helpers for distinctSystemPrincipalLoader to a dedicated module r=ochameau
Depends on D160214

Differential Revision: https://phabricator.services.mozilla.com/D160215
2022-10-28 06:23:53 +00:00
Mark Banner 2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Alexandre Poirot a6539ba47e Bug 1793604 - [devtools] Convert Loader.jsm to ESM. r=perftest-reviewers,geckoview-reviewers,preferences-reviewers,owlish,kshampur,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158582
2022-10-14 12:19:42 +00:00
Alexandre Poirot 7241a21575 Bug 1793395 - [devtools] Use absolute URLs for all custom loader's require. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158488
2022-10-03 18:57:12 +00:00
Alexandre Poirot daf85f8e0d Bug 1791969 - [devtools] Import all JSM in DevTools via ChromeUtils.import. r=jdescottes
Convert all imports but the one related to SessionDataHelper
as that's an hybrid module which is loaded as a JSM from the main thread,
but loaded as a common js module from the worker thread.

We will be able to drop this once we can migrate this JSM to ESM
once we support loading ESM from the worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D158007
2022-09-26 13:01:33 +00:00
Alexandre Poirot 6781eae59e Bug 1791832 - [devtools] Convert devtools/startup JSM to ES Modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157911
2022-09-26 10:48:05 +00:00
Jan Odvarko 455a50c929 Bug 1761367 - Firefox DevTools User Docs mention removed Web Developer submenu r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D157789
2022-09-23 12:06:14 +00:00
Alexandre Poirot 10e8296ed1 Bug 1783821 - [devtools] Load Launcher.sys.mjs via ChromeUtils.importESModule. r=perftest-reviewers,bomsy,arai,sparky
This is the result of:
$ ./mach esmify --imports . --prefix=devtools/client/framework/browser-toolbox

Differential Revision: https://phabricator.services.mozilla.com/D154072
2022-09-05 12:29:57 +00:00
Daisuke Akatsuka 22973ccbbc Bug 1783877: Disable inspector quick action if already opening. r=daleharvey,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155191
2022-08-24 22:02:44 +00:00
Nicolas Chevobbe 3e947ca78d Bug 1782667 - [devtools] Start multiprocess browser toolbox when running mochitests with --jsdebugger. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153599
2022-08-08 06:15:43 +00:00
Mark Banner a6855db57e Bug 1330099 - Enable object-shorthand eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153567
2022-08-03 14:57:05 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Alexandre Poirot 1ae58de96b Bug 1774937 - [devtools] Allow to debug slow script without having devtools opened beforehand. r=jdescottes
The test doesn't really cover this fix as mochitest head files will force loading gDevTools...
To properly cover that we would have to have this test in another file and folder without any head.
This will make it hard to reuse Debugger test helpers. Let's assume we cover the modified feature
while not covering the very precise regression I fix here.

Differential Revision: https://phabricator.services.mozilla.com/D150155
2022-06-30 17:18:55 +00:00
Alexandre Poirot 35e59b517f Bug 1772146 - [devtools] Automatically destroy the DevToolsServer once the last connection drops. r=jdescottes
Do that except when keepAlive attribute is set to true for server
listening for many incoming client connections.
This is the case when starting server via --start-debugger-server
or when starting the server from the mobile browser.

Differential Revision: https://phabricator.services.mozilla.com/D147876
2022-06-09 09:16:01 +00:00
Bogdan Szekely facfc542d8 Backed out changeset 8fc8b400ab24 (bug 1772146) for causing xpcshell failures on test_register_actor.js CLOSED TREE 2022-06-08 14:12:05 +03:00
Alexandre Poirot f00de427c7 Bug 1772146 - [devtools] Automatically destroy the DevToolsServer once the last connection drops. r=jdescottes
Do that except when keepAlive attribute is set to true for server
listening for many incoming client connections.
This is the case when starting server via --start-debugger-server
or when starting the server from the mobile browser.

Differential Revision: https://phabricator.services.mozilla.com/D147876
2022-06-08 10:19:14 +00:00
Tooru Fujisawa 7a6caaec08 Bug 1772093 - Part 9: Use plain object for lazy getter in devtools/startup/. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D147905
2022-06-06 07:09:55 +00:00
Tooru Fujisawa 823c668f50 Bug 1772351 - Part 1: Stop calling ChromeUtils.defineModuleGetter for AppConstants. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148164
2022-06-06 04:42:08 +00:00
Tooru Fujisawa 2dcfd09f81 Bug 1772313 - Part 5: Stop calling ChromeUtils.defineModuleGetter for Services. r=kmag,webcompat-reviewers,pip-reviewers,denschub,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D148158
2022-06-06 04:42:06 +00:00
Molnar Sandor 77402a5caa Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa 5ff7b51845 Bug 1772351 - Part 1: Stop calling ChromeUtils.defineModuleGetter for AppConstants. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148164
2022-06-06 02:49:12 +00:00
Tooru Fujisawa da1905e641 Bug 1772313 - Part 5: Stop calling ChromeUtils.defineModuleGetter for Services. r=kmag,webcompat-reviewers,pip-reviewers,denschub,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D148158
2022-06-06 02:49:10 +00:00
Calixte 93528759ed Bug 1766030 - Add an optional source URL when saving an URL. r=Gijs
In pdf.js, files are saved thanks to a blob but the original URL is lost.
Consequently, the download panel doesn't contain any information about the
origins of a saved pdf.
The saveURL, internalSave and nsITransfer.init functions has now a parameter for this originalURL.

Differential Revision: https://phabricator.services.mozilla.com/D147651
2022-05-31 17:25:29 +00:00
Alexandre Poirot 9aec23c0fe Bug 1594639 - [devtools] Ensure reusing browser toolbox custom binary path on reload. r=nchevobbe
I tried various approaches around the session restore, but this isn't reliable.
Using an environment variable is much easier and also help making the path global
for the whole instance in case we close and reopen it.

Differential Revision: https://phabricator.services.mozilla.com/D143695
2022-04-21 12:14:39 +00:00
Alexandre Poirot 96e520678a Bug 1594639 - [devtools] Pass option dictionary to BrowserToolboxLauncher.init. r=nchevobbe
This will be slightly easier to understand which argument we pass.

Differential Revision: https://phabricator.services.mozilla.com/D143694
2022-04-21 12:14:39 +00:00
Julian Descottes d049bb7498 Bug 1609100 - [devtools] Remove unused about:devtools page r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141464
2022-03-28 11:12:06 +00:00
Norisz Fay 66797d7700 Backed out 5 changesets (bug 1609100) for causing mochitest failures on browser_check_identity_state.js CLOSED TREE
Backed out changeset 521cbbae0914 (bug 1609100)
Backed out changeset e22daee724f0 (bug 1609100)
Backed out changeset e5c4afe5dd66 (bug 1609100)
Backed out changeset e6ae2c01908e (bug 1609100)
Backed out changeset 3e59351660ab (bug 1609100)
2022-03-28 13:11:58 +03:00
Julian Descottes db5d601b00 Bug 1609100 - [devtools] Remove unused about:devtools page r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141464
2022-03-28 08:57:36 +00:00
Nick Alexander d917365044 Bug 1686344 - Support `--backgroundtask --jsdebugger` (and `--wait-for-jsdebugger`). r=mossop,jdescottes
Background task mode is roughly equivalent to `xpcshell`, but inside
the regular browser startup flow.  There is no browser window (no
`Window` at all) and there should be no content processes.  It's
sufficient to treat it like `xpcshell`, with its own stripped-down
actor and a few tweaks to the integration points.

The structural changes in this commit keep `--backgroundtask` mode
slim in the regular case when the Devtools are *not* requested.  This
is reflected in the small changes needed to the
`browser_xpcom_graph_wait.js` test: loading the Devtools
unconditionally causes a huge amount of code to be loaded.  In order
to load the Devtools framework conditionally, we check for
Devtools-specific command line flags and delegate to Devtools when
appropriate.  In order to check the command line flags, we turn the
`BackgroundTasksManager` into an XPCOM service, which allows it to be
instantiated by XPCOM in order to handle the command line.

One final note: this leaves two XPCOM components, "backgroundtasks"
and "backgroundtasksmanager".  Why not combine them?  This is
technically possible but not attractive: we really do want a natural
place for native/C++ code ("backgroundtasks") and JavaScript code
("backgroundtasksmanager").

Differential Revision: https://phabricator.services.mozilla.com/D129771
2022-03-03 03:38:39 +00:00
Nick Alexander b415214de0 Bug 1741978 - Clean up at shutdown after `--start-debugger-server`. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139152
2022-03-03 03:38:39 +00:00
Jan Odvarko 6da05abb10 Bug 1753426 - [devtools] Fix documentation links in the source code r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137748
2022-02-07 13:08:10 +00:00
Norisz Fay f20c5c07db Backed out changeset 3e8efb4985f7 (bug 1753426) for causing multiple devtools failures 2022-02-04 16:17:25 +02:00