Commit Graph

834269 Commits

Author SHA1 Message Date
Mark Banner
bcd73ea738 Bug 1812098 - Fix ESLint raised issues with no-shadow of builtinGlobals in toolkit .mjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D169462
2023-03-14 09:13:48 +00:00
Noah
0f3f0536c0 Bug 1822012 - Convert toolkit/components/xulstore to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172517
2023-03-14 09:09:34 +00:00
Noah
a0eb74fdee Bug 1821927 - Convert toolkit/components/tooltiptext to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172515
2023-03-14 09:09:33 +00:00
Makoto Kato
86ff1beda0 Bug 1817924 - Use Window manager coordinate for text selection menu on Android 11+. r=geckoview-reviewers,owlish
When using split window, the position of selection context menu is
strange position.

When on Android 11+, it has independent window manager per split
window, `onGetContentRect` of `ActionMode.Callback2` seems to use this
coordinates, instead of screen coordinate.

So we should consider this situation.

Also, our CI has no Android 11+ and no way to set split window, so I
cannot add unit test for it.

Differential Revision: https://phabricator.services.mozilla.com/D170472
2023-03-14 09:00:13 +00:00
Nicolas Chevobbe
59858d2342 Bug 1636599 - Generate artifact for reviewbot from devtools-node-test-runner.js . r=jdescottes,ahal,andi,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D171534
2023-03-14 08:55:01 +00:00
Mathew Hodson
535ae681f5 Bug 1294362 - Remove CanvasRenderingContext2D.mozTextStyle. r=emilio,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172502
2023-03-14 08:28:45 +00:00
ganna
454caf7a08 Bug 1822011 - Convert toolkit/components/urlformatter to ES modules r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172437
2023-03-14 08:00:41 +00:00
Christian Holler (:decoder)
cf3628444b Bug 1821002 - Add missing null checks for ContentParent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D171974
2023-03-14 07:51:13 +00:00
Christian Holler (:decoder)
e24d86e84f Bug 1821006 - Fix buffer initialization bug in IPCFuzzController. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D171980
2023-03-14 07:50:37 +00:00
Christian Holler (:decoder)
3b82ba8433 Bug 1821008 - Add nyx abort macro and more debug messages. r=truber,glandium
Differential Revision: https://phabricator.services.mozilla.com/D171979
2023-03-14 07:50:36 +00:00
Kagami Sascha Rosylight
920138cd5c Bug 1822022 - Replace mfbt/FloatingPoint things with std cmath r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172410
2023-03-14 07:48:34 +00:00
jneuberger
366d2b5404 Bug 1819300 - Add test cases for isProbablyASignUpForm calling SignUpFormRuleset r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D171904
2023-03-14 07:47:30 +00:00
Dimi
970b4a9e03 Bug 1812294 - Implement a framework to detect duplicated address entry r=sgalich
This patch:
- adds a new pref "extensions.formautofill.addresses.capture.v2.enabled". When the pref is on,
  we will use "save address" and "update address" doorhnager instead of
  "first time use" doorhanger for address capture.

- adds a AddressComponent class, which converts "address record" into an
  object that we can more easily compare each address field.

- defines when we consider one address is a duplicated address of another
  one (See AddressComponent.isDuplicate for details)

- defines when we consider one address can be merged into another
  address (See AddressComponent.isMergeable for details)

This patch does NOT:
- implements comparison heuristics for individual address fields.
  This patch simply compares string directly.

Differential Revision: https://phabricator.services.mozilla.com/D170352
2023-03-14 07:30:43 +00:00
Mozilla Releng Treescript
9344e9ccbf no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cak -> 1037621f808dbc8db8d1e2f152522075e5318826
el -> a03f9806fdb4054989a46c2fe2ae1b1882e30d1c
es-MX -> 8364cad66d8d2da9bf5a0c24db6af9ef3b78a024
pt-BR -> 956953dcb4a7061e1361c0990dd5042636c16d5b
sc -> a4c9ad4fd0217109fa7e895947dcd43bcd3a8622
sl -> 706316c29272428a369a138a833995c1cb6b2cff
2023-03-14 07:00:46 +00:00
James Teh
4fa337dc47 Bug 1822225: Always produce async JS stacks in a11y browser tests. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D172527
2023-03-14 06:41:45 +00:00
Robert Longson
e7d91b29ba Bug 1820754 - Move common webrender code into SVGUtils r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D171855
2023-03-14 06:31:57 +00:00
Simon Giesecke
8be3f4a3c4 Bug 1639545 - Pull out the implementation of IndexedDBCipherKeyManager members from indexedDB/ActorsParent.cpp into it's own cpp file.r=janv
Differential Revision: https://phabricator.services.mozilla.com/D76670
2023-03-14 05:38:05 +00:00
Jan Varga
f21dde44fd Bug 1639548 - Move IndexedDBCipherKeyManager to DatabaseFileManager; r=hsingh
Differential Revision: https://phabricator.services.mozilla.com/D170599
2023-03-14 05:38:05 +00:00
Harveer Singh
fe1e1d3aba Bug 1639548 - Remove redundant purging of localstorage private mode data. r=janv
Depends on D86562

Differential Revision: https://phabricator.services.mozilla.com/D86704
2023-03-14 05:38:04 +00:00
Harveer Singh
b3c84da91d Bug 1639548 - Purge private browsing mode storage on private browsing mode session end. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D86562
2023-03-14 05:38:04 +00:00
Norisz Fay
5349e0db4d Backed out 2 changesets (bug 1384606) for causing failures on test_atcaretoffset.html CLOSED TREE
Backed out changeset bfc8cf25efac (bug 1384606)
Backed out changeset b3c0fd32af16 (bug 1384606)
2023-03-14 07:25:51 +02:00
Masayuki Nakano
e9c97c71d7 Bug 1384606 - Add automated tests for caret browsing around form controls r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172347
2023-03-14 04:04:13 +00:00
Masayuki Nakano
5b8469c0d5 Bug 1384606 - Make nsIFrame::GetFrameFromDirection treat frames in different native anonymous subtree not selectable r=emilio
It's called by `PeekOffsetFor*` and `GetPrevNextBidiLevels`, so it's used for
considering whether to put caret or move a selection range boundary.
Therefore, it should treat nodes which can be managed by `Selection` as
selectable.  In theory, even if a native anonymous subtree does not have
an independent selection, its content nodes should not be the container of
the selection range boundaries of selection outside the subtree since
Selection API shouldn't expose nodes in native anonymous subtrees.  Therefore,
it can simply treat content nodes in different anonymous subtrees are not
selectable.

Note that it's not standardized that how `Selection.modify` works with various
content nodes.
https://w3c.github.io/selection-api/#dom-selection-modify

And also Chrome cannot cross generated content like form controls with this API.
This could cause web-compat issues, but it does not make sense for caret
navigation, and anyway out of scope of this bug.  Therefore, this patch just
adds the crash test.

Differential Revision: https://phabricator.services.mozilla.com/D172204
2023-03-14 04:04:12 +00:00
Butkovits Atila
91f502bbd2 Backed out changeset 5c4677b1ea47 (bug 1820655) for causing failures at browser_open_migration_wizard.js. CLOSED TREE 2023-03-14 05:20:08 +02:00
Mike Hommey
054dacdca3 Bug 1822216 - Avoid linking C programs with the C++ compiler. r=firefox-build-system-reviewers,ahochheiden
What was added in bug 1378830 was broken by bug 1255485. Not in a super
visible way, but the undesirable side effect is that C programs end up
being linked against the C++ runtime. Which didn't cause practical
problems until bug 1820947.

Differential Revision: https://phabricator.services.mozilla.com/D172519
2023-03-14 03:03:03 +00:00
Shane Hughes
7e6cffdf0d Bug 1819456 - Update ASRouter messages when experiment recipes are updated. r=omc-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D171939
2023-03-14 02:53:27 +00:00
Mike Conley
f1d3ef9dd0 Bug 1820655 - Add a new section to about:preferences to launch the migration wizard. r=jhirsch,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D172324
2023-03-14 01:59:01 +00:00
Norisz Fay
b33738264f Backed out changeset f0bc703cf531 (bug 1822072) for causing bc failures on browser_ext_tabs_discard_reversed.js CLOSED TREE 2023-03-14 04:18:39 +02:00
Norisz Fay
df789f1f2c Backed out changeset 8d5e4dfff15e (bug 1819456) for causing xpcshell failures on test_RemoteSettingsExperimentLoader.js 2023-03-14 04:15:21 +02:00
Butkovits Atila
640d009e7b Backed out changeset 21ac89d8a165 (bug 1820655) for causing Gecko Decision failure. CLOSED TREE 2023-03-14 03:20:05 +02:00
Mike Conley
3eb16d3b85 Bug 1820655 - Add a new section to about:preferences to launch the migration wizard. r=jhirsch,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D172324
2023-03-14 01:06:42 +00:00
Shane Hughes
f81c207b37 Bug 1819456 - Update ASRouter messages when experiment recipes are updated. r=omc-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D171939
2023-03-14 00:45:52 +00:00
Gijs Kruitbosch
bbe7f00942 Bug 1822072 - split up tabbrowser's addTab so it's easier to understand, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D170924
2023-03-14 00:29:26 +00:00
Gijs Kruitbosch
402b55c414 Bug 1738056 - use fluent to insert channel ref into about dialog instead of hoping nothing gets retranslated, r=mkaply,fluent-reviewers,flod
The extant code would fail if the user switched languages while the dialog was
open, as fluent would throw the manually-inserted content away. This patch
properly uses fluent to insert the channel, which also means we don't need to
wait for it to happen after `load` (because of the previous patch in this
stack), it'll be there immediately.

Differential Revision: https://phabricator.services.mozilla.com/D172299
2023-03-14 00:03:42 +00:00
Gijs Kruitbosch
c1ce490e37 Bug 1738056 - stop initializing the about window asynchronously and manually sizing it, r=emilio,mconley
Differential Revision: https://phabricator.services.mozilla.com/D172007
2023-03-14 00:03:42 +00:00
Daisuke Akatsuka
62cd23e2cf Bug 1817208: Introduce search_shortcut_button type for immediate search on oneoff button r=mak
Differential Revision: https://phabricator.services.mozilla.com/D172207
2023-03-13 23:59:06 +00:00
Jonathan Kew
10860fc8ff Bug 1822098 - Inline a bunch of trivial gfxContext accessors and other small methods. r=gfx-reviewers,lsalzman
And sprinkle some extra const around, and remove a few unused bits.

Differential Revision: https://phabricator.services.mozilla.com/D172440
2023-03-13 23:08:03 +00:00
Jonathan Kew
f6403db704 Bug 1822018 - Remove gfxContext::mTransform, just use mAzureState.transform directly. r=gfx-reviewers,lsalzman
Depends on D172405

Differential Revision: https://phabricator.services.mozilla.com/D172439
2023-03-13 23:08:02 +00:00
Jonathan Kew
e9b404b8b8 Bug 1821935 - Store current state directly in gfxContext, to avoid a separate allocation in the common case where Save/Restore is not used on the context. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D172405
2023-03-13 23:08:02 +00:00
Yoshi Cheng-Hao Huang
4d795c2cbb Bug 1572644 - Part 14: Add test case for fetch a child module script failed. r=jonco
Depends on D166551

Differential Revision: https://phabricator.services.mozilla.com/D170163
2023-03-13 22:59:43 +00:00
Yoshi Cheng-Hao Huang
30e11219c7 Bug 1572644 - Part 13: Update ini files in wpt/. r=jonco,yulia
There are still some failed test cases in audio-worklet-referrer.https.html.ini,
which is due to https://bugzilla.mozilla.org/show_bug.cgi?id=1808189.



Depends on D170162

Differential Revision: https://phabricator.services.mozilla.com/D166551
2023-03-13 22:59:42 +00:00
Yoshi Cheng-Hao Huang
9c0ede4fbe Bug 1572644 - Part 12-2: Add mErrorToRethrow to hold the JS::Value in WorkletFetchHandler. r=jonco,yulia
Add a JS::Heap<JS::Value> in WorkletFetchHandler to hold the script's
error to rethrow object.

This also requires to change WorkletFetchHandler to a CC class so it can trace the
mErrorToRetrhow



Depends on D166550

Differential Revision: https://phabricator.services.mozilla.com/D170162
2023-03-13 22:59:42 +00:00
Yoshi Cheng-Hao Huang
494e98f80d Bug 1572644 - Part 12-1: Using StructuredCloneHolder to pass a JS::Value from a worklet thread to main thread. r=jonco,yulia
Depends on D170161

Differential Revision: https://phabricator.services.mozilla.com/D166550
2023-03-13 22:59:41 +00:00
Yoshi Cheng-Hao Huang
a582a668da Bug 1572644 - Part 11-2: Preload localized error msg and format it when resolving failed. r=jonco,yulia
Depends on D166549

Differential Revision: https://phabricator.services.mozilla.com/D170161
2023-03-13 22:59:41 +00:00
Yoshi Cheng-Hao Huang
c01828aba9 Bug 1572644 - Part 11-1: Add a virtual method GetResolveFailureMessage in ModuleLoaderBase. r=jonco,yulia
The virtual method will be overrided by WorkletModuleLoader in the next
patch.



Depends on D166548

Differential Revision: https://phabricator.services.mozilla.com/D166549
2023-03-13 22:59:41 +00:00
Yoshi Cheng-Hao Huang
56bb7ebbad Bug 1572644 - Part 10: Implement WorkletModuleLoader::OnModuleLoadComplete. r=jonco,yulia
Depends on D166547

Differential Revision: https://phabricator.services.mozilla.com/D166548
2023-03-13 22:59:40 +00:00
Yoshi Cheng-Hao Huang
4e6f7d0790 Bug 1572644 - Part 9: Create static import. r=jonco,yulia
Depends on D166546

Differential Revision: https://phabricator.services.mozilla.com/D166547
2023-03-13 22:59:40 +00:00
Yoshi Cheng-Hao Huang
becf8aade2 Bug 1572644 - Part 8: Compile fetched module. r=jonco,yulia
The compile options is from ExecutionRunnable::ParseAndLinkModule of the
previous patch, or could be found in
https://searchfox.org/mozilla-central/rev/fb9a504ca73529fa550efe488db2a012a4bf5169/dom/worklet/Worklet.cpp#386-389



Depends on D166545

Differential Revision: https://phabricator.services.mozilla.com/D166546
2023-03-13 22:59:39 +00:00
Yoshi Cheng-Hao Huang
7d11c4b566 Bug 1572644 - Part 7-2: Add FetchCompleteRunnable to call OnFetchComplete. r=jonco,yulia
Add a Runnable class called FetchCompleteRunnable to be dispatched from
main thread to worklet thread to call
ModuleLoadRequest::OnFetchComplete.



Depends on D167468

Differential Revision: https://phabricator.services.mozilla.com/D166545
2023-03-13 22:59:39 +00:00
Yoshi Cheng-Hao Huang
78a276b700 Bug 1572644 - Part 7-1: Add a hash table to map from nsIURI to ModuleLoadRequest. r=jonco,yulia
Add a nsRefPtrHashtable<nsURIHashKey, ModuleLoadRequest> called mFetchingRequests
to map from nsIURI to ModuleLoadRequest.

When WorkletModuleLoader::StartFetch is called, it will insert an entry
into the table. Later when the main thread finishes the fetching of the module
script, we will use the URI to get the ModuleLoadRequest on worklet
thread and call ModuleLoadRequest::OnFetchComplete.



Depends on D166544

Differential Revision: https://phabricator.services.mozilla.com/D167468
2023-03-13 22:59:39 +00:00