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

839850 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 393b07fc97 Bug 1554397 - Implement residentKey support on GeckoView. r=jschanck,geckoview-reviewers,owlish
GMS's FIDO2 19.0.x supports residentKey values. So let's implement it
for Android's native token manager.

But when implementing it, GMS's FIDO2 will synchronize key via Google's
account Passkey. So this is experimental by preferences.

Differential Revision: https://phabricator.services.mozilla.com/D176391
2023-05-03 14:54:52 +00:00
Marco Bonardo 293964f3df Bug 1829571 - Fix awaits in browser_topsites_annotation.js. r=jteow
The new helper was not properly awaiting, while some assignments are awaiting
when they should not.

Differential Revision: https://phabricator.services.mozilla.com/D176903
2023-05-03 14:50:30 +00:00
Alexandre Lissy 61fa12f809 Bug 1831052 - Record audio codec process when FinishDecodeFirstFrame() runs r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D176994
2023-05-03 14:29:39 +00:00
Myeongjun Go 4652dce54a Bug 1804436 - Refactor the full perf.py file into multiple files r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175566
2023-05-03 14:27:56 +00:00
Ray Kraesig 14431ef542 Bug 1830792 - [4/4] Flicker-resize the window on first fullscreen entry r=emilio
DWM doesn't update its cached nonclient region information when a window
changes its client area without changing its actual size.

This happens in Firefox when a maximized window becomes fullscreen. If
this happens, "flicker-resize" the window to force DWM to update.

Differential Revision: https://phabricator.services.mozilla.com/D176844
2023-05-03 14:24:35 +00:00
Ray Kraesig 98dc3ec133 Bug 1830792 - [3/4] Remove is-nightly check for bug 1704954 mitigation r=gfx-reviewers,bradwerth
This mitigation exposed bug 1763981. Unfortunately, not applying it on
Nightly made it look like bug 1763981 was _fixed_ in Nightly, tricking
several users and developers and making testing needlessly more
difficult even after this was discovered.

Apply the mitigation across the board, regardless of release channel.
Developers may still set `gfx.webrender.dcomp-apply-1704954` to override
this as needed for testing (e.g.) fixes for bug 1638709.

Differential Revision: https://phabricator.services.mozilla.com/D176843
2023-05-03 14:24:35 +00:00
Ray Kraesig 8254d78ebc Bug 1830792 - [2/4] Assorted minor nsWindow cleanup r=emilio
Remove unused code:
 - nsWindow::AutoErase() (allegedly overridable but nonvirtual function)
 - nsWindow::mIsPainting (flag which is never set)

... and perform a very minor comment emendation, for clarity.

Differential Revision: https://phabricator.services.mozilla.com/D176842
2023-05-03 14:24:35 +00:00
Ray Kraesig 4ec1756764 Bug 1830792 - [1/4] Revert default to DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL r=sotaro
This reverts Mercurial commit ec948153333a957e3ef5302b5b0f469eda0d48a8
(introduced as part of bug 1820066) due to reports of tearing while
playing full-screen video.

Differential Revision: https://phabricator.services.mozilla.com/D176841
2023-05-03 14:24:35 +00:00
Alexander Surkov ec938bc540 Bug 1820791 - do not reflow nsMathMLContainerFrame for hidden content visibility, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D176823
2023-05-03 14:18:35 +00:00
David Ye a86cb33312 Bug 1816153 - Add branding icon for the IDP inside of the policy and account chooser prompt r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D176418
2023-05-03 14:10:11 +00:00
Lee Salzman 605964d9d2 Bug 1825293 - Treat alpha textures as luminance for bitmap data. r=aosmond
For cases where bitmaps are compressed down to alpha textures, the underlying
assumption is that these were supposed to be treated as luminance data as well
in the shader, or rather, the alpha represents both the opacity and intensity.
We weren't properly swizzling in the shader to accomplish this. This fixes that.

Differential Revision: https://phabricator.services.mozilla.com/D176986
2023-05-03 14:05:26 +00:00
Tiaan Louw 2f2f3fd797 Bug 1819893 - Add negate node to use in place of mul_by in sum nodes r=emilio
Sum nodes would use mul_by to negate nodes to do subtraction, but some
nodes are not distributive.  This patch adds a negate node, so that the
operations inside these negate nodes can be resolved first and then the
"subtraction" can be applied.

Differential Revision: https://phabricator.services.mozilla.com/D172941
2023-05-03 14:04:28 +00:00
Mike Conley c89b637e64 Bug 1830916 - Add UTM parameters for the FxA sign-in flow from AW_WELCOME_BACK. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D176946
2023-05-03 14:03:55 +00:00
Mike Conley cea5ae871f Bug 1830901 - Only check the campaign attribution code when checking isDeviceMigration for ASRouter targeting. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D176937
2023-05-03 14:03:55 +00:00
anwar 3ea45680df Bug 1830991 - Make it so that violations of the test-manifest-alpha rule under browser/ are now errors instead of warnings. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D176963
2023-05-03 14:02:22 +00:00
Andrew McCreight 2529901815 Bug 1831006 - Add a way to enable refcount logging whenever. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D176971
2023-05-03 13:59:55 +00:00
negin 41613af3eb Bug 1829039 - Updates embedded migration wizard styles to match figma r=aminomancer,mconley
This patch fixes the font size inconsistencies, extra whitespace above title, and introduces simplified animations for [Embedded Migration Wizard](https://www.figma.com/file/c83OEio9DhCQKuabx2tIEl/NUO-Experiments-2023?node-id=976-31535) screen. Other feedback from the initial bug has been broken down into other bugs:

* [Position relative feedback bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1829272)
* [Checkbox spacing](https://bugzilla.mozilla.org/show_bug.cgi?id=1829733)
* Logo feedback - syncing up with Gabrielle and will file a follow-up bug depending on what we want to do (figma does not include the logo)

Differential Revision: https://phabricator.services.mozilla.com/D176352
2023-05-03 13:46:47 +00:00
Cathie Chen e3eaa9a188 Bug 1829385 - Popover: The element calling hidePopover is not always on the top of auto popover list, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D176150
2023-05-03 13:43:16 +00:00
Yannis Juglaret d56e15d285 Bug 1816953 - Rewrite TestDllInterceptor due to mingwclang failures. r=cmartin,handyman
We were using a friendly high-level syntax for our jumper in
TestDllInterceptor:

  gDetouredCall(aCallee);

We were relying on compiling this to the jumper format recognized by our
hooking code:

  jmp qword ptr [rip + offset gDetouredCall]

Unfortunately depending on compiler options (in particular CFG and
-fno-omit-frame-pointer), the compiler may generate slightly different
code, thus breaking the test.

We now use a less friendly syntax which ensures that our jumper has the
proper format.

Differential Revision: https://phabricator.services.mozilla.com/D175486
2023-05-03 13:40:37 +00:00
Yannis Juglaret 057decbc8a Bug 1816953 - Add a test to prevent future regressions in Rust panics linked to RNG functions. r=cmartin
We have had a lot of back and forth with the Rust stdlib and getrandom
crate removing RtlGenRandom as a fallback to BCryptGenRandom. We need
this fallback in particular for Windows 7 machines, where the two
functions are completely independent. Some users seem to be unable to
load the 32-bit variant of bcryptprimitives.dll on their machine when using
Firefox 32-bit on Windows 7 64-bit and the RtlGenRandom fallback saves
them. This led to a lot of crashes that are Rust panics in bug 1788004.

This patch adds a gtest that ensures that RtlGenRandom is called as a
fallback in case of BCryptGenRandom failures, so that we can
automatically detect a new hypothetical removal of the RtlGenRandom
fallbacks in the future.

Differential Revision: https://phabricator.services.mozilla.com/D174968
2023-05-03 13:40:36 +00:00
Yannis Juglaret d271171011 Bug 1816953 - Fix our hooking code for CALL instructions as found in RtlGenRandom. r=cmartin,handyman
Our hooking code was misinterpreting 48 FF 15 as the beginning of a
REX-prefixed JUMP/4 instruction, but it's a REX-prefixed CALL/2. We must
check more bits on the third byte to distinguish a JMP from a CALL, and
from other instructions that also fall into the pattern we were
matching.

Differential Revision: https://phabricator.services.mozilla.com/D174967
2023-05-03 13:40:36 +00:00
Yannis Juglaret 6929e31dcb Bug 1816953 - Stop hooking BCryptGenRandom. r=cmartin,handyman
In bug 1788004, we started hooking BCryptGenRandom on the machines where
calling it for the first time fails. This was useful to mitigate Rust
panics linked to RNG function failures in the Rust stdlib and
in the getrandom crate. Both now have proper fallbacks again, so we can
remove our hook.

Differential Revision: https://phabricator.services.mozilla.com/D174966
2023-05-03 13:40:36 +00:00
Yannis Juglaret 52dbff7568 Bug 1816953 - Update getrandom to 0.2.9. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174965
2023-05-03 13:40:36 +00:00
anonymous0000007 3db6038aa5 Bug 1710232 - remove dead code unused function UseSiteForFirstPartyDomain in OriginAttributes.h. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D176790
2023-05-03 13:25:42 +00:00
Kagami Sascha Rosylight 89172dc9c2 Bug 1831065 - Part 2: Remove unused ErrorResult parameters in highlight and selection r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D177008
2023-05-03 13:24:53 +00:00
Kagami Sascha Rosylight 1925d5477f Bug 1831065 - Part 1: Remove unused ErrorResult in dom/{abort,base} r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177007
2023-05-03 13:24:53 +00:00
Rob Wu 5b898edeed Bug 1482983 - Fix intermittent test failure in test_ext_webrequest_frameId.html r=rpl
The test was getting stuck because it was expecting a favicon.ico
request that never happened. The test logic was copied from
test_ext_webrequest_filter.html which suffers from exactly the same
issue. Since the favicon.ico test was meant to serve as a regression
test, this patch fixes only one of the two tests.

Differential Revision: https://phabricator.services.mozilla.com/D174505
2023-05-03 13:10:44 +00:00
Jan de Mooij 5b6cd149a6 Bug 1830727 - Emit JSOp::IsNullOrUndefined for null-or-undefined checks in self-hosted code. r=iain
It's fairly common in the JS spec to check whether a value is null-or-undefined.
We already have a bytecode op for this that we can use if we add an `IsNullOrUndefined`
intrinsic.

This has some minor performance benefits (no Baseline ICs instead of 3 Baseline ICs)
and no `Or` or `And` branch, but it also makes our bytecode more compact. This will
help with follow-up work to look into inlining more string builtins.

Differential Revision: https://phabricator.services.mozilla.com/D176902
2023-05-03 12:52:31 +00:00
Valentin Gosu 5c922d8b93 Bug 1818714 - Remove cachePurge lock file after running BackgroundTask_removeDirectory r=necko-reviewers,saschanaz,jesup
Differential Revision: https://phabricator.services.mozilla.com/D176548
2023-05-03 12:40:54 +00:00
Andrew McCreight eabe555848 Bug 1808352 - Browser test, using a popup window. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D171927
2023-05-03 11:52:07 +00:00
Jan de Mooij 4e9c4bccfc Bug 1808352 - Add a browser test. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D171095
2023-05-03 11:52:07 +00:00
Jan de Mooij 9136fb069a Bug 1808352 - Add test and assertions. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D170910
2023-05-03 11:52:06 +00:00
Jari Jalkanen 7c8c782eba Bug 1826780 - Use ContentType instead of nsString as OPFS file type. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D175366
2023-05-03 11:48:51 +00:00
Jari Jalkanen 60e176584d Bug 1828400 - Stop logging errors if nothing is overwritten. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D175609
2023-05-03 11:48:51 +00:00
Emilio Cobos Álvarez 4f71b39dfb Bug 1830986 - Fix 32-bit builds.
MANUAL PUSH: Trivialish fix CLOSED TREE
2023-05-03 13:33:50 +02:00
Luca Greco f77699f12a Bug 1826817 - Re-enable test assertions on mirrored DNR telemetry probes when executing tests on artifact builds. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D176932
2023-05-03 10:45:38 +00:00
Emilio Cobos Álvarez e816d6d829 Bug 1830986 - Make a more precise decision on the StringBuilder unit size. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D177001
2023-05-03 10:44:22 +00:00
Emilio Cobos Álvarez bfc49acc42 Bug 1830986 - Minor StringBuilder clean-ups. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D177000
2023-05-03 10:44:22 +00:00
Emilio Cobos Álvarez 3f20dc0f3e Bug 1830986 - Avoid a bunch of allocations in innerHTML / outerHTML getter. r=smaug
One thing that stands out of the profiles in bug 1827132 are a ton of
allocations and attribute lookups.

While the root cause of that performance issue is likely to be a
DOMSubtreeModified event that Chrome doesn't fire or so, those are
rather easy to optimize and might be more generally useful.

I removed handling of `<br type="">`, because editor no longer uses it.
Maybe we can also remove some of the other of the prefixed attribute
shenanigans.

Differential Revision: https://phabricator.services.mozilla.com/D176956
2023-05-03 10:44:22 +00:00
Jan-Niklas Jaeschke cffddeed9d Bug 1830542: Avoid unnecessary allocation when registering `Selection`s in `nsRange`s. r=smaug
`nsRange`s need to keep track of all `Selection` instances they are in, while maintaining an as-small-as-possible memory footprint.

The approach of using a linked list to store the selection pointers led to a performance regression
because of the necessary allocations of the selection wrapper class.

Since the `AutoTArray` has an identical size, the list can easily be replaced.

Differential Revision: https://phabricator.services.mozilla.com/D176908
2023-05-03 10:03:29 +00:00
Kagami Sascha Rosylight 4612d82e3a Bug 1831044 - Remove redundant *Throws attributes in URL r=webidl,smaug
D34766 removed the usages by not using URLWorker on those methods.

Differential Revision: https://phabricator.services.mozilla.com/D176989
2023-05-03 10:01:52 +00:00
Andreas Pehrson fa6606c9ba Bug 1830825 - Handle spurious wakeups in DelayedRunnable.TimerFiresBeforeRunnableRuns. r=emilio
This patch adds a state on the stack so that it can be known at all times which
async steps have run, and to make sure main thread can handle spurious wakeups.
With this state, only one monitor is needed, so the other is removed.

Differential Revision: https://phabricator.services.mozilla.com/D176895
2023-05-03 09:05:35 +00:00
James Teh 87e2c0219d Bug 1829603 part 2: Include the src of images without names in the parent process a11y cache. r=morgan
This is used by some clients to help remediate inaccessible images.

Differential Revision: https://phabricator.services.mozilla.com/D176905
2023-05-03 09:02:53 +00:00
James Teh d1c3206f01 Bug 1829603 part 1: Include the class attribute in the parent process a11y cache. r=morgan
This is used by the Web Access NVDA add-on to identify and remediate some inaccessible elements on websites with accessibility problems.
It is also useful for developers using screen readers when trying to identify specific elements in the absence of semantics.

Differential Revision: https://phabricator.services.mozilla.com/D176896
2023-05-03 09:02:53 +00:00
Neil Deakin 34df9a7220 Bug 1829981, reduce maximum filename length to 254, as Windows File Explorer won't allow deleting filenames longer than this, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D176911
2023-05-03 09:02:27 +00:00
Noemi Erli 538408056f Merge mozilla-central to autoland a=merge on a CLOSED TREE 2023-05-03 12:05:33 +03:00
Noemi Erli 39c144a88f Backed out changeset 68f1bedc4fd5 (bug 1812038) for causing build bustages in nsJARInputStream.cpp 2023-05-03 12:04:50 +03:00
Noemi Erli 01825ce9f0 Merge autoland to mozilla-central. a=merge 2023-05-03 12:00:06 +03:00
Perry McManis 6ebb4fdd04 Bug 1828528 - expose Text metric type in FOG r=chutten for causing merge conflict
Differential Revision: https://phabricator.services.mozilla.com/D176350
2023-05-03 11:58:20 +03:00
Marco Bonardo 3e6600cc63 Bug 1829139 - Optimizations to old visits expiration. r=Standard8
This included multiple changes:
  1. Expire old non-typed hidden single-visit URIs
  2. Expire long urls only if they are single-visit
  3. increase the necessary age for expiration to 90 days
  4. stop notifying listeners inside the database transaction

Differential Revision: https://phabricator.services.mozilla.com/D176028
2023-05-03 08:40:31 +00:00