Commit Graph

23647 Commits

Author SHA1 Message Date
Butkovits Atila
c06a3dd9fa Backed out changeset 510dd46a9de7 (bug 1696251) for causing Android build bustages. 2021-09-21 05:16:50 +03:00
Butkovits Atila
4b46b9b45b Backed out 3 changesets (bug 1719939, bug 1726437, bug 1730262) for causing failures on test_browserGlue_migration_ctrltab_recently_used_order.js.
Backed out changeset ea1653e9644f (bug 1719939)
Backed out changeset 01f90db715a7 (bug 1726437)
Backed out changeset c0e23b2acfbb (bug 1730262)
2021-09-21 05:15:31 +03:00
Junjie Ying
9b3839d3ba Bug 1719939 - Remove last fragments of code manually checking the browser.proton.enabled pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125345
2021-09-21 00:03:49 +00:00
Alexandre Poirot
21221bbbe0 Bug 1731352 - [devtools] Prevent exception from Toolbox code when closing the toolbox. r=jdescottes
This is similar to bug 1728815, but now the toolbox itself is being destroyed and clears commands.
But we can also check if the related target is destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D126055
2021-09-20 21:13:58 +00:00
Alex Lopez
fe61e94ec8 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-20 20:21:07 +00:00
Gerald Squelart
4eef57c8fd Bug 1624246 - Always show "Edit Settings..." in profiler popup and devtools panel - r=julienw
The "Edit Settings..." link opens about:profiling. It was only shown in the profiler popup and devtools "Performance" panel when the preset was "Custom", forcing the user to select "Custom" before being able to easily tailor settings in about:profiling.
Now that link is always there, so it's possible to quickly jump to about:profiling, including after selecting a preset than can then be customized.

Differential Revision: https://phabricator.services.mozilla.com/D125945
2021-09-20 13:44:49 +00:00
Nicolas Chevobbe
f1c59fa2b8 Bug 1688445 - [devtools] Fix browser/browser_window_close.js intermittent. r=jdescottes.
The test seemed to fail because the page was already loaded when we started
awaiting for `BrowserTestUtils.browserLoaded`.
This patch removes it and instead pass an `url` param to `BrowserTestUtils.waitForNewWindow`,
which means we'll wait for the page to be loaded.

Differential Revision: https://phabricator.services.mozilla.com/D126063
2021-09-20 08:27:56 +00:00
Matthew Gaudet
1d2599166c Bug 1688790 - Convert startup cache to managing stencils not scripts r=kmag,tcampbell
Note: The stencil will hold pointers into the StartupCache buffer;
There is an assumption in this patch that the lifetime of the buffer
is long enough that we can compile the stencil without causing issues.

Note, we have to adjust the test_source-03 expectation. Since we no longer
cache *scripts*, and instead cache *stencils*, it's not guaranteed the scripts
will have identical ScriptSourceObjects.

Differential Revision: https://phabricator.services.mozilla.com/D113012
2021-09-18 01:29:44 +00:00
Noemi Erli
91aa2e2b9c Backed out changeset 5f5b612878f3 (bug 1696251) for causing multiple bustages 2021-09-18 02:22:39 +03:00
Noemi Erli
fb4024c0e7 Bug 1731347 - Fix lint failures r=fix CLOSED TREE 2021-09-17 23:33:43 +03:00
Alex Lopez
bf860fe7dc Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-17 19:00:39 +00:00
Emilio Cobos Alvarez
8e5c9be3a5 Bug 1731347 - Enable backdrop-filter in a test to keep it happy on late-beta/release.
Differential Revision: https://phabricator.services.mozilla.com/D126008
2021-09-17 18:33:02 +00:00
Julian Descottes
28807d5a6e Bug 1676427 - [devtools] Remove whitespace added by the webpack Banner plugin r=nchevobbe
Depends on D125943

The Banner including the license text was introducing a white space which fails some of our linters.
The existing js files which are using the Banner plugin are probably skipped by the whitespace linter, but vendors.css is not.

The whitespace is removed in the string passed to the Banner plugin in webpack.config.js.
The rest of the diff comes from running `node devtools/client/debugger/bin/bundle.js`

Differential Revision: https://phabricator.services.mozilla.com/D125969
2021-09-17 15:55:12 +00:00
Julian Descottes
7d8ce9691d Bug 1676427 - [devtools] Remove irrelevant README related to debugger GitHub releases r=nchevobbe
Depends on D125942

Not strictly related, but I was looking for build instructions and opened this file. The information is irrelevant and confusing nowadays, let's remove it.

Differential Revision: https://phabricator.services.mozilla.com/D125943
2021-09-17 15:55:11 +00:00
Julian Descottes
7128646a3a Bug 1676427 - [devtools] Add top license banner to debugger vendors.css r=nchevobbe
Depends on D125941

After removing devtools-splitter, the only css files picked up by the debugger build step are from react-aria-components, but they don't have individual license headers.
I am adding the regular mozilla license, I didn't find an easy way to create a license header matching the file being packaged by babel. And we were already not importing the right license text, so this is not a regression (for ref, the license is MIT)

Differential Revision: https://phabricator.services.mozilla.com/D125942
2021-09-17 15:55:11 +00:00
Julian Descottes
c694f4105b Bug 1676427 - [devtools] Regenerate debugger vendors after removing devtools-splitter r=nchevobbe
Depends on D125940

Differential Revision: https://phabricator.services.mozilla.com/D125941
2021-09-17 15:55:10 +00:00
Julian Descottes
2ef0665663 Bug 1676427 - [devtools] Remove unused toggleDragging API from toolbox.js r=nchevobbe
Depends on D125939

The custom drag:start and drag:end events are the main implementation difference I found between debugger's splitbox and the shared splitbox.
However I didn't find any usage for the classname it was setting, so I propose to remove it.

I tried to extensively use the splitters and didn't spot any issue.

Differential Revision: https://phabricator.services.mozilla.com/D125940
2021-09-17 15:55:10 +00:00
Julian Descottes
ba02832866 Bug 1676427 - [devtools] Remove devtools-splitter debugger package r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125939
2021-09-17 15:55:09 +00:00
Julian Descottes
1eee2daeb6 Bug 1729255 - [devtools] Store JSON preferences as String instead of Char in PrefsHelper r=bomsy
JSON preferences used to be stored in string preferences, which is compatible with special characters.
There should not be any data loss, char prefs seem to gracefully transition to string prefs.

Differential Revision: https://phabricator.services.mozilla.com/D125877
2021-09-17 14:24:50 +00:00
Nicolas Chevobbe
8fb130c146 Bug 1730160 - [devtools] Filter content network event against exact target browsingContext/window when EFT is enabled. r=bomsy.
When we create targets for every frame, we need to tighten our different filters
so requests/resources are duplicated (we would get them from both the top-level
target as well as from their iframe).

Differential Revision: https://phabricator.services.mozilla.com/D125810
2021-09-17 13:15:44 +00:00
Neil Deakin
a62618baa7 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-17 09:04:59 +00:00
Narcis Beleuzu
72152613c6 Backed out 3 changesets (bug 1690390) for mochitest failures on test_notificationbox.xhtml . CLOSED TREE
Backed out changeset e6404b7424cd (bug 1690390)
Backed out changeset a161177099af (bug 1690390)
Backed out changeset cc7e02d3d418 (bug 1690390)
2021-09-16 23:41:21 +03:00
Neil Deakin
82501df9f7 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-16 19:11:17 +00:00
Alexandre Poirot
0044dc3d33 Bug 1729925 - [devtools] Avoid leaking the rule panel via a click listener. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125543
2021-09-16 14:43:47 +00:00
Alexandre Poirot
357de99729 Bug 1729925 - [devtools] Avoid leaking toolbox's redux store and ultimately targets. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125542
2021-09-16 14:43:46 +00:00
Alexandre Poirot
a28cc00244 Bug 1729925 - [devtools] Avoid leaking commands from toolbox. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125541
2021-09-16 14:43:46 +00:00
Alexandre Poirot
fc03df6b69 Bug 1729925 - [devtools] Avoid leaking commands from TargetFront. r=nchevobbe
We do set `resourceCommand` from onTargetAvailable, without ever clearing it.
If we happen to leak targets, we end up leaking commands.

Differential Revision: https://phabricator.services.mozilla.com/D125540
2021-09-16 14:43:46 +00:00
Alexandre Poirot
68d00cfd01 Bug 1729925 - [devtools] Avoid leaking commands from NodePicker. r=nchevobbe
Also avoid creating a NodePicker during toolbox's destroy.

Differential Revision: https://phabricator.services.mozilla.com/D125539
2021-09-16 14:43:45 +00:00
Alexandre Poirot
57ee53b5f5 Bug 1729925 - [devtools] Avoid leaking children fronts of target in case target is leaked. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125538
2021-09-16 14:43:45 +00:00
Alexandre Poirot
29bbaea252 Bug 1729925 - [devtools] Ensure unregistering some DOM event listeners in the inspector. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125537
2021-09-16 14:43:44 +00:00
Alexandre Poirot
7bdd811f3a Bug 1729925 - [devtools] Ensure clearing references and unmounting all React components. r=nchevobbe
We still do leak Toolbox/Inspector and some Documents.
Unmounting the React components and nullifying references to them
seems to allow clearing a few React component instances.

We weren't unmounting the splitBox/toolsidebar, nor destroying ruleViewSideBar instance.

Differential Revision: https://phabricator.services.mozilla.com/D125536
2021-09-16 14:43:44 +00:00
Alexandre Poirot
22f5501a3f Bug 1729925 - [devtools] Avoid leaking Commands/DevToolsClient/Fronts when closing the toolbox. r=nchevobbe
Currently, we do leak the Toolbox/Inspector and some Documents when
closing the toolbox.
So that these classes are kept in memory, while not nullifying all its references
to client classes.

By adding these few nullications we can at least avoid leaking the fronts and commands.

(also fix a failure due to null markup.walker in browser_rules_add-rule-with-menu.js)

Differential Revision: https://phabricator.services.mozilla.com/D125535
2021-09-16 14:43:44 +00:00
Alexandre Poirot
301fb51bb9 Bug 1730947 - [devtools] Fix browser_allocations_browser_console.js on beta/release. r=jdescottes
This test expects a multiprocess browser console, listening to additional targets.

Differential Revision: https://phabricator.services.mozilla.com/D125749
2021-09-16 14:40:20 +00:00
Nicolas Chevobbe
907adf0279 Bug 1730449 - [devtools] Remove non-existent connectToRemoteFrame in NodeActor spec. r=ochameau,devtools-backward-compat-reviewers.
The actor method was removed in https://hg.mozilla.org/mozilla-central/rev/103be18558b0.

Differential Revision: https://phabricator.services.mozilla.com/D125814
2021-09-16 13:26:22 +00:00
Julian Descottes
7cb927cf8f Bug 1730106 - [devtools] Add test for console.profile warning message r=nchevobbe
Depends on D125699

Differential Revision: https://phabricator.services.mozilla.com/D125707
2021-09-16 11:31:45 +00:00
Julian Descottes
8b02c7cb34 Bug 1730106 - [devtools] Log warning message when using console profile with the new perf panel r=nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D125699
2021-09-16 11:31:44 +00:00
Butkovits Atila
cc49cdbcd1 Backed out changeset b6f72dd6aadb (bug 1728072) for causing failures at browser_resources_document_events.js. 2021-09-16 02:48:43 +03:00
Butkovits Atila
ac1ceb1c37 Backed out 9 changesets (bug 1729925) for causing leaks. CLOSED TREE
Backed out changeset 509a0601481a (bug 1729925)
Backed out changeset ac9a15005a5b (bug 1729925)
Backed out changeset 331ffa0bd2f9 (bug 1729925)
Backed out changeset 22097d7a00c2 (bug 1729925)
Backed out changeset e9f40c89753f (bug 1729925)
Backed out changeset 14619c743301 (bug 1729925)
Backed out changeset 61dfd48f3409 (bug 1729925)
Backed out changeset 9b1eb369d679 (bug 1729925)
Backed out changeset 955138a73fa4 (bug 1729925)
2021-09-16 01:07:41 +03:00
Alexandre Poirot
71569e1205 Bug 1729925 - [devtools] Avoid leaking the rule panel via a click listener. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125543
2021-09-15 20:08:35 +00:00
Alexandre Poirot
3697b58bfa Bug 1729925 - [devtools] Avoid leaking toolbox's redux store and ultimately targets. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125542
2021-09-15 20:08:35 +00:00
Alexandre Poirot
0a54a0f5dc Bug 1729925 - [devtools] Avoid leaking commands from toolbox. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125541
2021-09-15 20:08:34 +00:00
Alexandre Poirot
218ef21054 Bug 1729925 - [devtools] Avoid leaking commands from TargetFront. r=nchevobbe
We do set `resourceCommand` from onTargetAvailable, without ever clearing it.
If we happen to leak targets, we end up leaking commands.

Differential Revision: https://phabricator.services.mozilla.com/D125540
2021-09-15 20:08:34 +00:00
Alexandre Poirot
1cda69d8c6 Bug 1729925 - [devtools] Avoid leaking commands from NodePicker. r=nchevobbe
Also avoid creating a NodePicker during toolbox's destroy.

Differential Revision: https://phabricator.services.mozilla.com/D125539
2021-09-15 20:08:34 +00:00
Alexandre Poirot
675cecf208 Bug 1729925 - [devtools] Avoid leaking children fronts of target in case target is leaked. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125538
2021-09-15 20:08:33 +00:00
Alexandre Poirot
65c2bd9237 Bug 1729925 - [devtools] Ensure unregistering some DOM event listeners in the inspector. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125537
2021-09-15 20:08:33 +00:00
Alexandre Poirot
9ae1a07806 Bug 1729925 - [devtools] Ensure clearing references and unmounting all React components. r=nchevobbe
We still do leak Toolbox/Inspector and some Documents.
Unmounting the React components and nullifying references to them
seems to allow clearing a few React component instances.

We weren't unmounting the splitBox/toolsidebar, nor destroying ruleViewSideBar instance.

Differential Revision: https://phabricator.services.mozilla.com/D125536
2021-09-15 20:08:33 +00:00
Alexandre Poirot
7817f58029 Bug 1729925 - [devtools] Avoid leaking Commands/DevToolsClient/Fronts when closing the toolbox. r=nchevobbe
Currently, we do leak the Toolbox/Inspector and some Documents when
closing the toolbox.
So that these classes are kept in memory, while not nullifying all its references
to client classes.

By adding these few nullications we can at least avoid leaking the fronts and commands.

(also fix a failure due to null markup.walker in browser_rules_add-rule-with-menu.js)

Differential Revision: https://phabricator.services.mozilla.com/D125535
2021-09-15 20:08:32 +00:00
Alexandre Poirot
a3e86c32a8 Bug 1728072 - [devtools] Prevent leaking the first top level target. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D123925
2021-09-15 17:04:15 +00:00
Emilio Cobos Álvarez
0fc915272e Bug 1729894 - Now that WR is everyhwere, enable backdrop-filter on early-beta / nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D125054
2021-09-15 11:33:29 +00:00
Nicolas Chevobbe
ac25598d5b Bug 1685500 - [devtools] Create target actors for all iframes. r=ochameau.
This patch introduces a new pref, devtools.every-frame-target.enabled,
that when set to true will cause target actors to be created on every
iframe, no matter if they are remote or not, no matter if Fission is
enabled or not.

This adds a ignoreSubFrames property on the BrowsingContextActor so
it can focus solely on the docShell it was passed.

Differential Revision: https://phabricator.services.mozilla.com/D125517
2021-09-15 05:35:37 +00:00