Commit Graph

834269 Commits

Author SHA1 Message Date
Ting-Yu Lin
6ec0a1cd59 Bug 1467519 - Soften a fatal assertion in nsLayoutUtils::ComputeBSizeDependentValue(). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172528
2023-03-14 18:33:00 +00:00
ganna
8a097b5c16 Bug 1821162 - Convert SwitchDocumentDirectionChild.jsm and PromptParent.jsm in browser/actors to ESMs r=kpatenio,bnasar
Differential Revision: https://phabricator.services.mozilla.com/D172153
2023-03-14 18:30:22 +00:00
sauvic
b6a523e8e1 Bug 1821299 - Convert toolkit/components/bitsdownload to ES modules. r=Standard8,application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D172248
2023-03-14 18:24:04 +00:00
sauvic
d38e6e9100 Bug 1821899 - Convert toolkit/components/taskscheduler to ES modules. r=Standard8,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D172456
2023-03-14 18:23:49 +00:00
Yulia
9c5114587b Bug 1540913 - Part 10: Update shadowRealms test to not fail when dynamic import is enabled; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172290
2023-03-14 18:16:34 +00:00
Yulia
2701b2e0d0 Bug 1540913 - Part 9: update fs tests to use dynamic import; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D172276
2023-03-14 18:16:34 +00:00
Yulia
4818902186 Bug 1540913 - Part 8: Update wpt-tests; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D171701
2023-03-14 18:16:33 +00:00
Yulia
d922ba9a6b Bug 1540913 - Part 7: Add test to verify correct behavior of script loader shutdown; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D171861
2023-03-14 18:16:33 +00:00
Yulia
702c6fab1b Bug 1540913 - Part 6-a: Fix BaseURL for importScripts; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D171875
2023-03-14 18:16:32 +00:00
Yulia Startsev
b8d4d67ca2 Bug 1540913 - Part 6: Implement Dynamic import for workers; r=jonco
This is the final change for dynamic imports, and makes the necessary modifications to properly load
them.

Differential Revision: https://phabricator.services.mozilla.com/D169629
2023-03-14 18:16:32 +00:00
Yulia
f7fd7ba054 Bug 1540913 - Part 5: Track ScriptLoaders on WorkerLoadContext; r=jonco
As mentioned in the previous patch, this patch introduces tracking and shutdown of scriptloaders in
the case that we have multiple scriptloaders involved in module loading.

Differential Revision: https://phabricator.services.mozilla.com/D171686
2023-03-14 18:16:32 +00:00
Yulia
0350774d47 Bug 1540913 - Part 4: Introduce WorkerScriptLoader configuration for dynamic import; r=jonco
Earlier, we introduced GetBaseURI to the module loader. This allows us to get the BaseURI for a
dynamic import even after the importing script/module's ScriptLoader has been cleaned up. However,
we now need to be able to handle the case where we need to run the dynamic import and load it. In
order to do this, we need to create a scriptloader configured for dynamic import. The most important
difference between this scriptloader and the one that is normally used for script loading in workers
is that we *do not have a syncLoopTarget* to which we return. There are a couple of reasons for
this:

* Dynamic import (and modules in general) relies on the event loop to resolve. If we create a
syncLoop here, we will end up pausing execution, and this breaks the StartModuleLoad algorithm. We
will never complete and the result will be that we are in the wrong state when we return here.
* We do not have perfect knowledge of the future, so we cannot keep the existing script loader alive
in the case that it might be used for loading in the future.
* We cannot migrate the ModuleLoader to not use sync loading without significantly changing other
aspects of how loading scripts on workers works. This becomes particularily evident with error
handling
(https://searchfox.org/mozilla-central/rev/00ea1649b59d5f427979e2d6ba42be96f62d6e82/dom/workers/WorkerPrivate.cpp#383-444),
and in addition, for reasons I wasn't able to discern, using the CurrentEventTarget results in hard
to identify errors. When there is time to investigate this fully, the ModuleLoader may move away
from using a syncLoop itself.

For now, all main-script loads (whether they are modules or classic scripts) will use the sync loop,
and all dynamic imports will create a new script loader for their needs that is not using the sync
loop. The book keeping for this is in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D171685
2023-03-14 18:16:31 +00:00
Yulia
99088fb36f Bug 1540913 - Part 3: Exit early if worker module evaluation is aborted; r=jonco
This change addresses the second issue around worker shutdown with infinitely running dynamic
imports: As the event loop is prevented from running when the worker is dying, we do not want to
delegate to the event loop in this case. This case always has a failing promise. Since this is a
failure case related to the worker dying, we stop running code, rather
than waiting for a tick (that never comes) from the event loop.

Differential Revision: https://phabricator.services.mozilla.com/D171684
2023-03-14 18:16:31 +00:00
Yulia
5231b910c8 Bug 1540913 - Part 2: Clear and shutdown ModuleLoader at worker termination; r=asuth,jonco
When running an infinitely-looping dynamic import, it is possible for the module loader to still be
holding on to that module at shutdown. Shutdown on the worker means that we will no longer run the
event loop, which will execute the dynamic import promises necessary to clear the global. The result
is that the global is kept alive. By calling `Shutdown()` we prevent this partially. We additionally
need to address the failure in the module code (next patch).

Differential Revision: https://phabricator.services.mozilla.com/D171683
2023-03-14 18:16:31 +00:00
Yulia
4e6402f008 Bug 1540913 - Part 1: allow ModuleLoaders to return BaseURI without ScriptLoader;r=jonco
This is a required change for dynamic import on workers, as the ScriptLoader is not guaranteed to
live long enough. Once the initial script loading is finished, and the script has executed, the
scriptloader is cleared and the strong reference to the workerRef is cleared so that shutdown is
possible. The workerRef is required in order to access the worker private safely. In order to
address this, we move the GetBaseURI method to the module loader itself. In the future, we should
remove the script loader interface all together.

Differential Revision: https://phabricator.services.mozilla.com/D171682
2023-03-14 18:16:30 +00:00
Robin Steuber
4be49e117e Bug 1821189 - Associate provenance attribution with installation.first_seen event r=nalexander
We can't add the provenance data to the `installation.first_seen` extra data because it is already at its maximum number of keys. So instead we will add the `installation.first_seen_prov_ext` event which will be sent at the same time as `installation.first_seen` and will contain provenance attribution data in its extras object.

Differential Revision: https://phabricator.services.mozilla.com/D172520
2023-03-14 18:08:16 +00:00
Niklas Baumgardner
56c696e37f Bug 1813394 - Updated screenshots overlay shrinks with window. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D168315
2023-03-14 17:23:53 +00:00
Niklas Baumgardner
921a1dd0ad Bug 1781912 - Fix failing browser_screenshots_drag_test.js test. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D172460
2023-03-14 17:23:29 +00:00
Alexandre Poirot
5cb1635d84 Bug 1803616 - [devtools] Implement a Javascript Tracer in the debugger. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
On the server side, this patch introduces:
* a new "tracer" Target Scope actor to start and stop tracing per target
* a new TRACING_STATE resource in order to report to the client when we start/stop tracing and with which log method.

On the frontend side, this patch introduces:
* a global tracer button, which will enable/disable tracing for all targets/threads
  all at once.
* a global header, similar to pause, reporting if any target is tracing or not.
The header reuses the pause header and we may want to followup to better coordinate case
where we pause and trace at the same time. Only one of the two states is displayed.

We may want to followup here to be able to trace only one target and see the state per target.

Differential Revision: https://phabricator.services.mozilla.com/D163614
2023-03-14 17:17:05 +00:00
Mozilla Releng Treescript
7d276f75c6 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
da -> 318809f3d25b890d9b6a62f3d3b9128e9a945ce6
es-CL -> 29d8f1f205d4ff25492530ca8270e7f9132a1561
fi -> b3de66eed7f8ad4d822fbed87a51865dbaf45caf
fur -> 831b327152a57bb1b492feb985547a99344aa3bb
hy-AM -> 5fb1e76e2f18324c9fe07bfaa87326f6d22ec5a7
it -> 22d6340a1e6ef8ddf6a15d8bf271f9e654db7a57
lo -> 0a1d61db2bac08460213e806180868f8c52ff5e7
sc -> b299417011ab6fa3e383fe7def7258487f3378a7
sr -> f86872757959a4686b73a22e26879f2cae546ce8
tg -> d7e45856229525123a6ad994e77b7d62007e77ea
2023-03-14 18:58:19 +00:00
Noemi Erli
51cdfe05ee Backed out 6 changesets (bug 1820168) for causing multiple failures CLOSED TREE
Backed out changeset 03bc416d3399 (bug 1820168)
Backed out changeset 8da35371cbdf (bug 1820168)
Backed out changeset ebde44bcb736 (bug 1820168)
Backed out changeset 7b01e0445133 (bug 1820168)
Backed out changeset b32a9cf041fc (bug 1820168)
Backed out changeset e29e5a3349f4 (bug 1820168)
2023-03-14 19:53:58 +02:00
Noemi Erli
ee3cbc95c4 Backed out 1 changesets (bug 1805372) for causing wpt failures in nsHttpTransaction.h
Backed out changeset 521c9e019678 (bug 1805372)
2023-03-14 19:24:56 +02:00
Jonathan Sudiaman
807bc7eaf6 Bug 1820978 - Enable delayed bookmarks panels in Firefox 113 r=mak
https://treeherder.mozilla.org/jobs?revision=f8663dc99809538eaea78ee08aab8f49a36d52bc&repo=try

Differential Revision: https://phabricator.services.mozilla.com/D172586
2023-03-14 17:01:31 +00:00
Andi-Bogdan Postelnicu
61d67443e1 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.5.1-stable (2c8cc34 2023-03-06)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172587
2023-03-14 16:54:29 +00:00
Ziran Sun
d5d3b87d4a Bug 1822323 - Add ToggleEvent interface for Popover. r=emilio
An implementation for https://html.spec.whatwg.org/multipage/popover.html#the-toggleevent-interface

Differential Revision: https://phabricator.services.mozilla.com/D172584
2023-03-14 16:52:36 +00:00
Markus Stange
edb2deabbd Bug 1820168 - Let the system re-set the current cursor when needed. r=mac-reviewers,bradwerth
This renames nsMacCursorManager to MOZDynamicCursor and makes it implement NSCursor.

We also install a cursor rect which covers the entire ChildView and which refers
to the MOZDynamicCursor singleton.

With the help of the cursor rect, the -[NSCursor set] implementation is now called
at the right times.

Here's a profile which contains the stacks under which -[MOZDynamicCursor set]
is now called: https://share.firefox.dev/3yEXLsC

Differential Revision: https://phabricator.services.mozilla.com/D172484
2023-03-14 16:30:05 +00:00
Markus Stange
edb89e49ae Bug 1820168 - Remove unused method -[nsCursorManager dispose]. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D172483
2023-03-14 16:30:05 +00:00
Markus Stange
16d90191d4 Bug 1820168 - Some nsCursorManager cleanup. Tweak method names and return types, and remove excessive doc comments. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D172482
2023-03-14 16:30:04 +00:00
Markus Stange
3b8f615944 Bug 1820168 - Remove unnecessary respondsToSelector checks. These cursors have all been supported on 10.6+. r=mac-reviewers,bradwerth
Depends on D172480

Differential Revision: https://phabricator.services.mozilla.com/D172481
2023-03-14 16:30:04 +00:00
Markus Stange
75417dc7bf Bug 1820168 - Stop using nsMacCursor. r=mac-reviewers,bradwerth
Happy code deletion day!

nsMacCursor was used so that animated cursors could be treated like non-animated cursors.
But we don't have animated cursors anymore! Nothing calls -[nsMacCursor cursorWithFrames:type:].

Depends on D172479

Differential Revision: https://phabricator.services.mozilla.com/D172480
2023-03-14 16:30:04 +00:00
Markus Stange
53398b83dc Bug 1820168 - Remove ObjC exception guards in nsCursorManager methods. r=mac-reviewers,bradwerth
These guards are only needed at the boundary to C++, see https://bugzilla.mozilla.org/show_bug.cgi?id=1693392 .

Differential Revision: https://phabricator.services.mozilla.com/D172479
2023-03-14 16:30:03 +00:00
Dão Gottwald
4d504e82d6 Bug 1822344 - Remove inactive Tabbed Browser peers. r=zeid
Differential Revision: https://phabricator.services.mozilla.com/D172579
2023-03-14 16:28:32 +00:00
Stanca Serban
0542b29ed5 Backed out changeset 4220319b4afd (bug 1818828) for causing xpcshell failures in netwerk/test/unit/test_http3_large_post.js. CLOSED TREE 2023-03-14 18:32:38 +02:00
Mark Banner
91bfd0f972 Bug 1822357 - Add js/xpconnect/tests/unit/error_other.sys.mjs to esmify's exclude list. r=arai DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D172582
2023-03-14 16:24:28 +00:00
Mark Banner
4b26aa84d7 Bug 1821898 - Remove RFPHelper definition from the browser window, import where used. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D172374
2023-03-14 15:45:55 +00:00
anwar
8cc8466342 Bug 1822336 - Remove use of reserved word in browser_fingerprinting_randomization_key.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172548
2023-03-14 15:40:55 +00:00
Emilio Cobos Álvarez
da9993d6dd Bug 1684958 - Annotate more test passes.
MANUAL PUSH: Orange fix CLOSED TREE
2023-03-14 16:37:41 +01:00
Nicolas Chevobbe
514789d76f Bug 1822334 - Fix moved file path in mach_commands.py. r=Standard8.
Differential Revision: https://phabricator.services.mozilla.com/D172572
2023-03-14 15:18:16 +00:00
edgul
5127cfc6d5 Bug 1818828 - Added basic DOM-using xpcshell testing for simple webtransport coverage. r=necko-reviewers,kershaw,jesup
Differential Revision: https://phabricator.services.mozilla.com/D170955
2023-03-14 14:57:11 +00:00
Niklas Baumgardner
62b21eea87 Bug 1819956 - Fix Hulu subtitles in PiP. r=pip-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D171750
2023-03-14 14:51:21 +00:00
Niklas Baumgardner
b5e0af5e4b Bug 1820595 - Fix setCurrentTime for Hulu. r=cmkm,pip-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D171749
2023-03-14 14:50:35 +00:00
Florian Quèze
f126919604 Bug 1819135 - Cleanup expired origins in StorageActivityService on the idle-daily notification and when accessing the data instead of with a 5 minutes repeating timer, r=asuth.
Differential Revision: https://phabricator.services.mozilla.com/D172036
2023-03-14 14:35:45 +00:00
Noah
7942128313 Bug 1822012 - Convert toolkit/components/xulstore to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172517
2023-03-14 14:34:57 +00:00
Noah
4352e1cc2c Bug 1821927 - Convert toolkit/components/tooltiptext to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172515
2023-03-14 14:34:57 +00:00
Mark Banner
156df8f509 Bug 1697392 - Simplify SearchSuggestionController to return the form history results, rather than an FormAutoCompleteResult. r=mak
This moves creating FormAutoCompleteResult out of the controller and into SearchSuggestions.
SearchSuggestions is only used for the autocomplete interface and so this simplifies the work for content search and address bar.

Differential Revision: https://phabricator.services.mozilla.com/D172372
2023-03-14 14:32:32 +00:00
Mark Banner
88cc27f9f3 Bug 1697392 - Stop using formAutofill in SearchSuggestionsController - query FormHistory direct. r=mak,credential-management-reviewers,sgalich
This also drops the cache, as we assume that the sql cache is quick enough in most instances.

Differential Revision: https://phabricator.services.mozilla.com/D162844
2023-03-14 14:32:32 +00:00
Mark Banner
a19160c918 Bug 1697392 - Fix logging when a remte search suggestion fails. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D172371
2023-03-14 14:32:32 +00:00
James Teow
4feaf446ef Bug 1815769 - Add optional anchor lookup to PopupNotifications - r=Gijs,adw
Differential Revision: https://phabricator.services.mozilla.com/D169814
2023-03-14 14:29:58 +00:00
Edgar Chen
9234f5fbb8 Bug 1822264 - Don't check the persisted property of pagehide event in browser_fullscreen-navigation-history.js test; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172550
2023-03-14 14:12:49 +00:00
divya
c35c9375cd Bug 1820282 - standardize button styling in import error dialog. r=hjones,credential-management-reviewers,mtigley
use reusable button group component for generic dialog; add padding

fix style err by adding semicolon

Differential Revision: https://phabricator.services.mozilla.com/D171908
2023-03-14 13:37:29 +00:00