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

794608 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Watt ebabc1e31f Bug 1768919 - Avoid checking the original document for focus in nsPrintJob. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D146110
2022-05-12 12:06:57 +00:00
Jonathan Kew 434f2762eb Bug 1768759 - Disable use of SVG-in-OpenType glyphs when text rendering is not happening on the main thread. r=lsalzman
We might want to look into this further and see if it can be supported, but for now at least
the safest option is to disable any attempt by Gecko to render such glyphs.

(Actually, in some cases they may work anyhow, if they're natively supported by the system font
rasterizer we're using; I'm seeing this on current macOS thanks to Core Text. Maybe at some point
we can switch off our SVG-glyph code altogether and just rely on the platform.)

Differential Revision: https://phabricator.services.mozilla.com/D146052
2022-05-12 11:42:28 +00:00
Norisz Fay ce587cb281 Backed out 3 changesets (bug 1766805) for causing build bustage on AsyncPanZoomController.cpp CLOSED TREE
Backed out changeset e35a130f2bce (bug 1766805)
Backed out changeset 9f9e2030fbc1 (bug 1766805)
Backed out changeset 898bd12a5da8 (bug 1766805)
2022-05-12 13:42:36 +03:00
Joel Maher c46d70e419 Bug 1766212 - Remove DFPI variant. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D145481
2022-05-12 10:17:35 +00:00
Nicolas Silva 70704d1c67 Bug 1768829 - Fix test partial-prerender-translate-6.html to use blob images. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D146073
2022-05-12 10:03:19 +00:00
Bogdan Szekely e6703d76c7 Merge mozilla-central to autoland. CLOSED TREE 2022-05-12 12:59:38 +03:00
Bogdan Szekely f39a9bb111 Merge autoland to mozilla-central. a=merge 2022-05-12 12:48:28 +03:00
Dão Gottwald f7c7439ca2 Bug 1768750 - Replace stray reference to --toolbarbutton-focus-outline. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D146050
2022-05-12 09:36:14 +00:00
ui.sayuree 4188190076 Bug 1766231 - edit observer. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D146146
2022-05-12 08:46:45 +00:00
Martin Giger 86738ee648 Bug 1766823 - Select multiple dictionaries if document has multiple Content-Language values. r=dminor,smaug
Persist dictionary preference in document content language field for mail editors so multiple dictionary selection can persist.

Differential Revision: https://phabricator.services.mozilla.com/D144935
2022-05-12 08:29:36 +00:00
Henrik Skupin d806a68833 Bug 1768742 - browser_preferences_usage.js - reduce min values for gfx.*.azure.backends to account for pre-allocated content processes. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D146120
2022-05-12 08:04:36 +00:00
Jan de Mooij e3fa19a519 Bug 1768790 part 3 - Simplify WarpBuilder::build_JumpTarget more. r=iain
We can now set/use `current` directly and get rid of the `joinBlock` variable.

Depends on D146046

Differential Revision: https://phabricator.services.mozilla.com/D146047
2022-05-12 07:47:41 +00:00
Jan de Mooij e9350c5cac Bug 1768790 part 2 - Inline addEdge lambda into sole caller. r=iain
Depends on D146045

Differential Revision: https://phabricator.services.mozilla.com/D146046
2022-05-12 07:47:41 +00:00
Jan de Mooij d08d1552b8 Bug 1768790 part 1 - Simplify PendingEdge and WarpBuilder::build_JumpTarget. r=iain
After bug 1767966 we can simplify this a bit. The new code is also more similar to
how Wasm => MIR generation works.

Differential Revision: https://phabricator.services.mozilla.com/D146045
2022-05-12 07:47:40 +00:00
Hiroyuki Ikezoe c578fe6929 Bug 1766805 - Ignore snap points behind scroll direction on intended direction scroll operations. r=botond
Depends on D145191

Differential Revision: https://phabricator.services.mozilla.com/D145192
2022-05-12 07:45:59 +00:00
Hiroyuki Ikezoe 098b8bc1a5 Bug 1766805 - Introduce intended direction and intended end position concepts. r=botond
The scroll snap spec defines the concepts [1]. There are three type of scroll
operations. 1) intended end position, 2) intended direction and end position
and 3) intended direction.

Basically our existing ScrollUnits types correspond;

1) DEVICE_PIXELS, WHOLE => intended end position
2) PAGES => intended direction and end position
3) LINES => intended direction

There are two exceptions in the `intended direction and end position` case,
scrollBy() and fling gestures (on Linux). They were defined as scroll operations
with DEVICE_PIXELS unit, but the spec cleary says they are `intended direction
and end position` operations.

Note that we will also use this information for scroll-snap-stop property since
the properly will only have effects on both 2) and 3) cases.

[1] https://drafts.csswg.org/css-scroll-snap/#scroll-types

Depends on D145190

Differential Revision: https://phabricator.services.mozilla.com/D145191
2022-05-12 07:45:59 +00:00
Hiroyuki Ikezoe fbbbe95ea6 Bug 1766805 - Give the proper destination to GetSnapPointForDestination for ScrollUnit::WHOLE on the main-thread. r=botond
Now the proper destination is same as what we do for ScrollUnit::WHOLE [1].

With the proper points we no longer need special handlings in
CalcSnapPoints::AddEdge for ScrollUnit::WHOLE. In my sense the special handling
wasn't necessary though.

[1] https://searchfox.org/mozilla-central/rev/dc09246dfbfd8dafeb6d55ebee18a6294d525443/gfx/layers/apz/src/AsyncPanZoomController.cpp#2105-2112

Differential Revision: https://phabricator.services.mozilla.com/D145190
2022-05-12 07:45:58 +00:00
Emilio Cobos Álvarez 9e02f38a2e Bug 1766909 - Wrap ObservableArray proxy on getter, rather than throwing. r=peterv
This will still prevent them from accessing stuff (.length will be
undefined, etc), but seems better than unexpectedly throwing. This fixes
the issue at hand at least.

With this patch, we reject length accesses here:

  https://searchfox.org/mozilla-central/rev/86c98c486f03b598d0f80356b69163fd400ec8aa/js/xpconnect/wrappers/XrayWrapper.cpp#229-233

Your call on whether this patch is enough as-is, or more work is needed.
Also your call on whether if more work is needed that needs to happen on
this bug or somewhere else.

I'm not sure what we'd need to do to support this more "properly",
presumably we'd need to add special XRay support to
ObservableArrayProxyHandler or so? Pointers (or patches of course ;))
welcome.

Also unsure about the setter situation, I _think_ it's fine not to throw
given the code I read, but please sanity-check.

Differential Revision: https://phabricator.services.mozilla.com/D145045
2022-05-12 07:36:03 +00:00
Alex Finder 218b3891f5 Bug 1762857 Fix permanent imdb non-live chrome/chromium raptor-browsertime r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D145963
2022-05-12 07:21:05 +00:00
Mozilla Releng Treescript a0e80b0c52 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
is -> 2a47dc529fcb53e12c5c25a55c1883eb26d99c26
ko -> 52f00bbc20fcd67e02368a0cca1b0172eeba5a7c
tg -> 1a618e51ddbf373bc49f6ec5d45b7649b10c68d5
2022-05-12 06:58:05 +00:00
sotaro 25a13f8e9c Bug 1761402 - Let session change handling of window occlusion on Windows ride the trains to release r=jrmuizel,gfx-reviewers
Since Bug 1732739, "session change handling of window occlusion on Windows" is enabled until early beta. And no regression was reported. Then it seems OK to enable it until release.

Differential Revision: https://phabricator.services.mozilla.com/D145193
2022-05-12 06:57:32 +00:00
Kelsey Gilbert 4416195118 Bug 1743767 - Tighten bounds and add asserts for row-by-row ReadPixels. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D144900
2022-05-12 03:23:40 +00:00
criss 29bfef65cb Bug 1768964 - Fix black lint failure, r=fix. CLOSED TREE 2022-05-12 02:07:27 +03:00
Alexandre Lissy 16e4ebbd58 Bug 1768696 - Correct start/stop Utility Process test logic r=nika
Differential Revision: https://phabricator.services.mozilla.com/D146067
2022-05-11 22:52:25 +00:00
Alexandre Lissy e52065148a Bug 1768696 - Unregister correct memory reporter on UtilityProcessParent r=nika
Differential Revision: https://phabricator.services.mozilla.com/D146066
2022-05-11 22:52:25 +00:00
Eitan Isaacson 5b5c37736c Bug 1768964 - Use setattr on Namespace object. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D146133
2022-05-11 22:44:29 +00:00
Dana Keeler 58a4c6bd73 Bug 1767099 - convert some security PKI preferences to static prefs r=jschanck
Using static preferences in PSM will eventually allow NSS to be initialized on
a background thread instead of blocking the main thread.

Depends on D145152

Differential Revision: https://phabricator.services.mozilla.com/D145390
2022-05-11 22:36:16 +00:00
Dana Keeler 4b1cb737b4 Bug 1767099 - convert some TLS security prefs to static prefs r=jschanck
Using static preferences in PSM will eventually allow NSS to be initialized on
a background thread instead of blocking the main thread.

Depends on D145151

Differential Revision: https://phabricator.services.mozilla.com/D145152
2022-05-11 22:36:15 +00:00
Dana Keeler 78783f1ae0 Bug 1767099 - convert some certificate-related security prefs to static prefs r=jschanck
Using static preferences in PSM will eventually allow NSS to be initialized on
a background thread instead of blocking the main thread.

Depends on D145150

Differential Revision: https://phabricator.services.mozilla.com/D145151
2022-05-11 22:36:15 +00:00
Dana Keeler 16aec8aa2f Bug 1767099 - convert security OCSP prefs to static prefs r=jschanck
Using static preferences in PSM will eventually allow NSS to be initialized on
a background thread instead of blocking the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D145150
2022-05-11 22:36:14 +00:00
Kris Maglione a1fde10261 Bug 1729005: Recursively block parsing for parser blocking scripts. r=hsivonen
Bug 1333990 added the ability to have multiple parser blockers at the same
time, so we no longer need to guard against recursively blocking. What's more,
if we do, and skip calling `BlockParser` while it's blocked for another reason,
we still call `UnblockParser` when we receive script data, at which point we
crash.

This patch moves the XHTML parser's behavior closer in line with the HTML
parser's.

The only way I've seen this manifest as a bug is when we have an XHTML
document with a top-level <script> element, and an extension with content
scripts that cause us to block parsing when we see that top-level element and
need to wait for them to compile.

Differential Revision: https://phabricator.services.mozilla.com/D145513
2022-05-11 22:15:14 +00:00
criss 715c6ab9a9 Backed out 10 changesets (bug 1747760) for causing wpt failures on mediasource-correct-frames-after-reappend.html. CLOSED TREE
Backed out changeset aae68dac17d0 (bug 1747760)
Backed out changeset dbb36eb962f7 (bug 1747760)
Backed out changeset 51ded936bda1 (bug 1747760)
Backed out changeset 706c89c31a6d (bug 1747760)
Backed out changeset ede5ba8832cb (bug 1747760)
Backed out changeset 4740c9cf6d51 (bug 1747760)
Backed out changeset 71e0dd7f0dad (bug 1747760)
Backed out changeset 0f6c6489a2c6 (bug 1747760)
Backed out changeset ad0284c66cb0 (bug 1747760)
Backed out changeset b0b666cba2ce (bug 1747760)
2022-05-12 01:37:32 +03:00
Eitan Isaacson 4bec8d9205 Bug 1768913 - Don't send window content changed event when loaded about:blank. r=morgan
Testing note - this enables junit tests to start and pass more reliably
when caching is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D146106
2022-05-11 22:09:12 +00:00
criss a13d4d1bea Merge mozilla-central to autoland on a CLOSED TREE 2022-05-12 00:51:24 +03:00
criss 7a56c1d96b Merge autoland to mozilla-central. a=merge 2022-05-12 00:48:44 +03:00
criss 0a0b79664f Backed out changeset 48ce51771f48 (bug 1768482) for causing failures on test_ext_startup_cache_telemetry.js. CLOSED TREE 2022-05-12 00:12:52 +03:00
Morgan Reschenberg 5e491aa675 Bug 1763212: Add tests for vertical text caching r=Jamie
Depends on D143527

Differential Revision: https://phabricator.services.mozilla.com/D144893
2022-05-11 20:47:36 +00:00
Razvan Cojocaru fd9479bbef Bug 1661575 - Make it so you don't need to modify two prefs to turn on APZ tree logging. r=botond
Make apz.printtree the only pref that needs enabling for APZ tree
logging.

Differential Revision: https://phabricator.services.mozilla.com/D145990
2022-05-11 20:42:38 +00:00
Jamie Nicol c54bfe3ed5 Bug 1768925 - Disable SurfaceControl compositing path on Android. r=agi
In bug 1762424 we introduced a compositing path using SurfaceControl
to work around an issue on Android 12 where the app would freeze when
attempting to recover from a GPU process crash. However, this caused
bug 1767128. Until we have a proper solution to that, we should
disable the SurfaceControl functionality.

This means on Android 12 the browser will be once again be unable to
recover from a GPU process crash. However, as part of bug 1762424 we
made it so the parent process crashes in this situation rather than
freezing, meaning Android 12 users will be no worse off than having
the GPU process disabled.

Differential Revision: https://phabricator.services.mozilla.com/D146114
2022-05-11 20:12:50 +00:00
Dão Gottwald c165c742a1 Bug 1767807 - Add rudimentary tests for the hidden Firefox View tab. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D146105
2022-05-11 20:08:22 +00:00
Eden Chuang f03fb58873 Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup.
In the previous implementation, FetchEvent.preloadResponse is resolved when the response fetching finishes.
However, ServiceWorker responding letency could be increased since waiting for preloadResponse finishes.
The patch resolves FetchEvent.preloadResponse earlier when the response is available.

The basic idea is to resolve the preload response when FetchInstance::OnResponseAvailableInternal() is called.
Then propagating the response from the parent process main thread to the content process worker thread. This is achieved by IPC PFetchEventOp::Send/RecvPreloadResponse -> PFetchEventOpProxy::Send/RecvPreloadResponse.

Since we can only get the response's ResourceTiming when FetchInstance::OnResponseEnd() is called. This patch introduces a new IPC method to propagate the ResourceTiming information from the parent process main thread to the content process worker thread.
PFetchEventOp::Send/RecvPreloadResponseEnd -> PFetchEventOpProxy->Send/RecvPreloadResponseEnd.

The tricky of this patch is we must extend the life cycle of FetchEventOp object if preloadResponse is set into FetchEvent.
That because ServiceWorker could resolve FetchEvent.respondWith() by using FetchEvent.preloadResponse.
In that case, FetchEventOp will get into a finish state and try to call FetchEventOpProxyChild::Senddelete with the operation result.
However, the ResponseEnd could not be called at the moment, and we need to wait for the corresponding timing information and its end reason.
To extend the life cycle of FetchEventOp, this patch cached the operation result while we get FetchEventOp::Callback is called. Then call FetchEventOpProxyChile::Senddelete() in FetchEventOpProxyChild::RecvPreloadResponseEnd() to close IPC. Or Senddelete() will be called while ActorDestroy() caused by shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D145338
2022-05-11 19:40:47 +00:00
Luca Greco f0e9b26ed1 Bug 1768482 - Fix TV intermittent failure on Glean.extensions.startupCacheLoadTime set to 0. r=mixedpuppy,chutten
The test failing intermittently on test-verify jobs seems to be only the one that covers the newly added
Glean timespan metric named "extensions.startupCacheLoadTime".

Given that it seems to be only failing in test-verify jobs, and with the Glean metric set to a numeric value as expected
just not always a non-zero value as the test expectes, I suspect it may be because the startupCache is technically
empty or only including a pretty small amount data and so it may be able to be loaded so fast that the resulting
value is 0 milliseconds.

I'm unable to reproduce the same locally even when running the test locally using --verify, and so this patch
is actually relaxing the failing assertion to only check that the Glean metric value is numeric and the
mirror scalar is set to the exact same value, and in addition to that the test is not reseting the FOG data
and assert that the Glean metric is initially undefined until we expect it to be collected and set to a numeric value.

Differential Revision: https://phabricator.services.mozilla.com/D145904
2022-05-11 19:32:57 +00:00
Emilio Cobos Álvarez f260713835 Bug 1768846 - Don't compute transform matrix twice while untransforming dirty / visible rects. r=boris
This code can appear in profiles as seen in bug 1768766.

No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D146070
2022-05-11 19:20:04 +00:00
Bryce Seager van Dyk 6dc932b8e0 Bug 1747760 - P10: Remove AudioInfo.mExtraData. r=kinetik
This is no longer needed as the codec specific data member covers all codec
specific data.

Differential Revision: https://phabricator.services.mozilla.com/D145523
2022-05-11 19:20:05 +00:00
Bryce Seager van Dyk b1bdfce5fc Bug 1747760 - P9: Handle Vorbis data with Vorbis codec specific variant. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D145522
2022-05-11 19:20:04 +00:00
Bryce Seager van Dyk 8c1b8958f3 Bug 1747760 - P8: Handle Opus data using Opus codec specific variant. r=kinetik.
This means as of this patch
- All mp4 specific audio codecs are handled. There's some more we could
  theoretically get, stuff like ALAC, but it's not clear to me we handle them
  following demuxing. I've left a catch all in the mp4 demuxing code just in
  case.
- We no longer pack the codec-delay/preskip at the head of the opus binary blob.
  This means that the binary blob is just the opus header data and the container
  specific preskip has its own member. My hope is this is clearer and easier to
  understand. It also means we can drop some of the code we had for packing the
  delay/preskip into a binary blob.

Differential Revision: https://phabricator.services.mozilla.com/D145521
2022-05-11 19:20:04 +00:00
Bryce Seager van Dyk 2bd1dfbe36 Bug 1747760 - P7: Handle aac codec specific data using aac codec specific variant. r=kinetik
This should be the last change needed for a number of our platform specific
decoders to be switched entirely over to the new variant types. As such, we can
move them from the lenient `ForceGetAudioCodecSpecificBlob` and to
`GetAudioCodecSpecificBlob` to enforce handling of codecs that don't use
trivially blob like codec specific data.

Differential Revision: https://phabricator.services.mozilla.com/D145520
2022-05-11 19:20:04 +00:00
Bryce Seager van Dyk 59a6df4acd Bug 1747760 - P6: Use Wave specific codec data for Wave audio. r=kinetik
We don't store Wave specific info, but this means that we have a struct in place
if we ever want to add such data + gives us more typing info for codec specific
data.

Differential Revision: https://phabricator.services.mozilla.com/D145519
2022-05-11 19:20:03 +00:00
Bryce Seager van Dyk bf2f3ab323 Bug 1747760 - P5: Handle flac codec specific data using flac codec specific variant. r=kinetik
This also populates flac codec specific data for flac in mp4, which appears to
have been overlooked.

Depends on D134730

Differential Revision: https://phabricator.services.mozilla.com/D134731
2022-05-11 19:20:03 +00:00
Bryce Seager van Dyk 4fe6f9c9af Bug 1747760 - P4: Handle mp3 codec specific data using mp3 codec specific variant. r=kinetik
This switches the mp3 codec specific handling from using a binary blob to
instead use a typed structure.

Depends on D134729

Differential Revision: https://phabricator.services.mozilla.com/D134730
2022-05-11 19:20:03 +00:00