Commit Graph

792757 Commits

Author SHA1 Message Date
Joel Maher
f3a5471268 Bug 1765461 - fix run-on-projects for all condprof jobs. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D144609
2022-04-25 18:18:12 +00:00
Calixte
0f787d748f Bug 1766222 - Update pdf.js to version 2.14.224 r=pdfjs-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D144544
2022-04-25 17:35:02 +00:00
Henrik Skupin
72eb782161 Bug 1759169 - [remote] Initialize the Remote Agent before the first top-level window has been opened. r=webdriver-reviewers,geckoview-reviewers,jdescottes,agi,mossop
Differential Revision: https://phabricator.services.mozilla.com/D143380
2022-04-25 17:20:43 +00:00
Henrik Skupin
04defaf0a4 Bug 1759169 - [remote] Add DeferredPromise helper. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140368
2022-04-25 17:20:43 +00:00
Henrik Skupin
06b4c49953 Bug 1759169 - [puppeteer] Also kill Firefox when temporary profile is used. r=webdriver-reviewers,jdescottes
Depends on D144027

Differential Revision: https://phabricator.services.mozilla.com/D144028
2022-04-25 17:20:42 +00:00
Henrik Skupin
ed733b2679 Bug 1759169 - [puppeteer] Use separate tests for "Puppeteer.launch should filter out ignored default arguments". r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144027
2022-04-25 17:20:42 +00:00
Jamie Nicol
2e495f6789 Bug 1731980 - Ensure SurfaceTextures with transforms get rendered at correct size. r=gfx-reviewers,lsalzman
On Android we use SurfaceTextures to render content from sources such
as the video decoder. These may have a transform set which is supposed
to be applied to the texture coordinates used to sample the
texture. Webrender (and software webrender), however, do not handle
this correctly, meaning videos may be rendered at the incorrect size
on some devices.

SurfaceTextures should always be rendered with their bottom-left being
their origin, eg vertically flipped. Additionally, the texture
transform returned on most devices seems to be a simple y-flip
transform with no scaling. Webrender currently just ignores the y-flip
due to the texture origin, which cancels out us not handling the
y-flip from the transform, meaning video looks correct on most
devices. Some devices, however, do return a scaling transform which we
must handle.

This patch removes the override of WebRenderTextureHost::NeedsYFlip()
that was causing us to ignore the y-flip due to the texture origin -
since we will now apply the transform we must handle this correctly
too.

It adds a virtual method RenderTextureHost::GetUvCoords(), that
returns the texture coordinates that should be used by webrender to
sample from external textures. In most cases these are simply (0, 0)
and (size.x, size.y), but in RenderAndroidSurfaceTextureHost we
override this function to apply the transformation. This ensures we
use the correct coordinates whenever the texture is rendered by
webrender, eg in both software and hardware webrender when rendering
in the non-compositing-path, and by hardware webrender's draw
compositor. Additionally, the composite.glsl shader requires a fix to
calculate the UV bounds correctly, as the coordinates may now be
inverted.

Lastly, we fix software webrender with the OpenGL
compositor. CompositorOGL already has the required functionality to
apply the texture transformation as it was used back in the layers
days. We must simply ensure that we pass the value of the
mIgnoreTransform flag from the original SurfaceTextureHost, through to
the RenderAndroidSurfaceTextureHost, and finally to the
SurfaceTextureSource which we hand to CompositorOGL.

Differential Revision: https://phabricator.services.mozilla.com/D144306
2022-04-25 16:47:51 +00:00
André Bargull
ee902f8f06 Bug 1766220: Backport ICU-21994 to fix a potential heap buffer overflow. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D144542
2022-04-25 16:34:42 +00:00
André Bargull
4fba387fcc Bug 1766225: Save volatile output register before calling post-write barrier. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D144549
2022-04-25 16:34:03 +00:00
Rob Wu
9c9a7d440b Bug 1740792 - Replace TODO with explanatory comment r=rpl DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D144495
2022-04-25 15:51:58 +00:00
Bobby Holley
93a43d41f6 Bug 1765894 - Make WebMIDI early-beta-or-earlier. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D144349
2022-04-25 15:40:27 +00:00
Joel Maher
a37e1187e4 Bug 1766097 - remove .cron entry for perftest-s7. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D144574
2022-04-25 15:27:05 +00:00
Joel Maher
dbe2b02531 Bug 1765223 - Turn off isolated process xpcshell tests. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D144578
2022-04-25 15:11:06 +00:00
Butkovits Atila
c891bf41e7 Backed out 17 changesets (bug 1752332) for causing crashes at JS::AutoAssertNoGC::AutoAssertNoGC(JSContext*). CLOSED TREE
Backed out changeset eaa4213b9e08 (bug 1752332)
Backed out changeset 2d794b61fbf7 (bug 1752332)
Backed out changeset 69cbec3e9a11 (bug 1752332)
Backed out changeset 022a68e8d603 (bug 1752332)
Backed out changeset 1ff8656b362d (bug 1752332)
Backed out changeset 46ea5b4f9ad3 (bug 1752332)
Backed out changeset e1dcb4c7cb88 (bug 1752332)
Backed out changeset f9d6bc72406f (bug 1752332)
Backed out changeset dd02b8ef0219 (bug 1752332)
Backed out changeset 3e60b77153a3 (bug 1752332)
Backed out changeset ce93b08837d2 (bug 1752332)
Backed out changeset d165042105ea (bug 1752332)
Backed out changeset 22b910308ecd (bug 1752332)
Backed out changeset d2e748ccd01c (bug 1752332)
Backed out changeset a89203990075 (bug 1752332)
Backed out changeset b580c2a3bac0 (bug 1752332)
Backed out changeset a2d5880b528f (bug 1752332)
2022-04-25 17:55:17 +03:00
Niklas Baumgardner
d315f5773e Bug 1654054 - Fluent migration for videocontrols. r=fluent-reviewers,mconley,flod
Depends on D139742

Differential Revision: https://phabricator.services.mozilla.com/D143622
2022-04-25 14:21:18 +00:00
Mike Conley
71185850fb Bug 1654054 - Port videocontrols to Fluent. r=mconley,fluent-reviewers,pip-reviewers,flod
Original patch by Guanlin Cheng <chenggu3@msu.edu>.

Differential Revision: https://phabricator.services.mozilla.com/D139742
2022-04-25 14:21:18 +00:00
Tom Ritter
7a53777411 Bug 1752332: Suppress Hazard warnings due to hash table function pointers r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D144437
2022-04-25 13:54:05 +00:00
Tom Ritter
136cc98e2f Bug 1752332: Update the preferences documentation r=KrisWright
Depends on D141422

Differential Revision: https://phabricator.services.mozilla.com/D141423
2022-04-25 13:54:04 +00:00
Tom Ritter
9a95903aa5 Bug 1752332: Sanitize preferences in the shared memory region r=KrisWright
Before we would stick all prefs into an immutable shared memory
region and clear our HashMap.

Now we will stick all non-sanitized prefs into the immutable
shared memory region, save the sanitized prefs in a list
temporarily, clear the hashmap, and then repopulate the hashmap
with the sanitized prefs.

As a bit of underlying complexity, to do this we must do some
tricks with the Pref Name Arena which is a chunk of memory
dedicated to storing pref names. That goes away (and we want to
wipe it to save space) - so we just need to move the sanitized
pref names to a new arena.

Depends on D141421

Differential Revision: https://phabricator.services.mozilla.com/D141422
2022-04-25 13:54:04 +00:00
Tom Ritter
1cacb9fc02 Bug 1752332: Optimize the crash checks in Check*Value functions r=KrisWright
We busted browser_preferences_usage.js by looking up a
preference too many times.

The reason we are now exceeding the pref-reading limit for
this pref is that inside ShouldSanitizePreference all of
our calls to Preferences::Something(pref_name) are causing
pref lookups.  _Most_ of the time when we are in
ShouldSanitizePreference, we got there from a place that has
the actual pref object; so change the function to take in a
Pref object.

Unfortunately, there is a place we do need to look it up
by name, and that's in Static Pref getters, so we need to
keep that function around (and expose it in Preferences.h)

To minimize code duplication (i.e. not having the exact same
code for ShouldSanitizePreference(Pref) and
ShouldSanitizePreference(PrefWrapper) we do some templating
tricks because even though they expose the same API, they are
not in a class hierarchy where we could just make one function
for a base class.

Depends on D141420

Differential Revision: https://phabricator.services.mozilla.com/D141421
2022-04-25 13:54:04 +00:00
Tom Ritter
dbac0fccf2 Bug 1752332: Remove the shouldSanitizeFunction member r=KrisWright
In the following patch we are going to change the signature of
ShouldSanitizePreference to take a Pref object.  Pref is only
known to the Preferences compilation unit; so to keep this member
(whose signature will change) we would need to expose the Pref
class. However it will only be a forward declaration, one could
not construct a Pref object in e.g. the gtest.

It is simpler to just remove the member entirely and call
ShouldSanitizePreference unconditionally - the member was only
used for the gtest, and while the gtest will be less robust
because of this change, it will still do some testing.

Depends on D141419

Differential Revision: https://phabricator.services.mozilla.com/D141420
2022-04-25 13:54:03 +00:00
Tom Ritter
297cd05828 Bug 1752332: Add preferences that control whether we send user data and/or crash r=KrisWright
Depends on D141418

Differential Revision: https://phabricator.services.mozilla.com/D141419
2022-04-25 13:54:03 +00:00
Tom Ritter
0251e1437c Bug 1752332: Crash if a pref is accessed that shouldn't be r=KrisWright
Depends on D141417

Differential Revision: https://phabricator.services.mozilla.com/D141418
2022-04-25 13:54:03 +00:00
Tom Ritter
904aadd877 Bug 1752332: Improve the blocklisting behavior r=KrisWright
For all subprocesses, if a preference is in the blocklist,
sanitize it.  (This preserves the IPC optimization behavior,
kind of.  We now generate IPC traffic when we didn't before,
but we omit the value. Values were previously capped at 4 KiB
now they're 0 bytes.)

For Web Content processes, we sanitize a preference if it is
in the blocklist, or if does not have a Default value (i.e.
it is dynamically named). There is an exception list for
dynamically named preferences we know we need though.

In subprocesses, we know if a preference was sanitized
by checking its Sanitized bit.

Depends on D141416

Differential Revision: https://phabricator.services.mozilla.com/D141417
2022-04-25 13:54:02 +00:00
Tom Ritter
90b65f0b6f Bug 1752332: Make SerializePreferences correctly sanitize preferences r=KrisWright,necko-reviewers,dragana
To do the correct thing in Preferences::SerializePreferences
(which is used during subprocess startup) we need to know if
the destination process is a web content process or not.
We add parameters to
SharedPreferenceSerializer::SerializeToSharedMemory that let
us figure that out.

In Preferences::SerializePreferences we fix the call to
aShouldSanitizeFn to pass the correct destination.

Depends on D141415

Differential Revision: https://phabricator.services.mozilla.com/D141416
2022-04-25 13:54:02 +00:00
Tom Ritter
790bbf4ea8 Bug 1752332: Remove the blocklisting check in ::OnPreferenceChange r=KrisWright
Now that we send everything (except sometimes the user value
is sanitized) we should no longer perform this check.

This is also good because it eliminates security code you
have to have (and thus accidently omitting it is a
vulnerability) and changes it to security code that happens
automatically, and is enforced by the compiler (via mandatory
ctor argument.)

Depends on D141414

Differential Revision: https://phabricator.services.mozilla.com/D141415
2022-04-25 13:54:01 +00:00
Tom Ritter
eda46349a8 Bug 1752332: Remove some prefs from the blocklist r=KrisWright
Depends on D141413

Differential Revision: https://phabricator.services.mozilla.com/D141414
2022-04-25 13:54:01 +00:00
Tom Ritter
f9201a6b3f Bug 1752332: Correctly populate the sanitized bit for PreferenceUpdate r=KrisWright
PreferenceUpdate is the IPC message notifying a child process
that a preference has been updated. To correctly decide whether
or not a value should be sanitized in it, we need to know
what type of destination process it is; we add parameters to
Preferences::GetPreference indicating that.

Inside of ToDomPref we call ShouldSanitizePreference to
correctly populate the sanitized bit.

Depends on D141412

Differential Revision: https://phabricator.services.mozilla.com/D141413
2022-04-25 13:54:01 +00:00
Tom Ritter
e7d695f54c Bug 1752332: Rename ShouldSyncPreference to ShouldSanitizePreference r=KrisWright
This simplifies the number of negations needed,
and makes things easy to understand. I think
anyway; I know that without renaming it I made
several annoying-to-diagnose negation errors...

Depends on D141411

Differential Revision: https://phabricator.services.mozilla.com/D141412
2022-04-25 13:54:00 +00:00
Tom Ritter
ef6d930532 Bug 1752332: Tell ShouldSyncPreference if the destination is a web content process r=KrisWright
A couple places where it might be a web content process
still pass 'false' - this will be corrected in a later
patch.

Depends on D141410

Differential Revision: https://phabricator.services.mozilla.com/D141411
2022-04-25 13:54:00 +00:00
Tom Ritter
4ef13ee7f8 Bug 1752332: Move ShouldSyncPreferences to Preferences module r=KrisWright
Depends on D141409

Differential Revision: https://phabricator.services.mozilla.com/D141410
2022-04-25 13:53:59 +00:00
Tom Ritter
ffb8a027cc Bug 1752332: Rename references to parent-only pref structures r=KrisWright
We're going to be using them in more contexts, so generalize
the name.

Depends on D141408

Differential Revision: https://phabricator.services.mozilla.com/D141409
2022-04-25 13:53:59 +00:00
Tom Ritter
ef57c7df72 Bug 1752332: Add a sanitized property to prefs r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D141408
2022-04-25 13:53:59 +00:00
Gabriele Svelto
8c8cd436c6 Bug 1764867 - Simplify paired minidump generation r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D143809
2022-04-25 13:09:41 +00:00
Sebastian Hengst
0a3512f558 Bug 1765981 - set partitioned-web-locks.tentative.https.html as failing outside Nightly. r=jgraham DONTBUILD
Bug 1762475 added a subtest. First party isolation (partioning) is only enabled
in Nightly. Bug 1549587 is the general bug tracking first party isolation.

Differential Revision: https://phabricator.services.mozilla.com/D144439
2022-04-25 12:53:01 +00:00
Marian-Vasile Laza
3e77d599b0 Backed out 2 changesets (bug 1762865, bug 1764055) for causing devtools failures on browser_dbg-features-breakable-lines.js. CLOSED TREE
Backed out changeset 87cb99924fc4 (bug 1762865)
Backed out changeset 83c8bb7087f5 (bug 1764055)
2022-04-25 15:44:02 +03:00
Hubert Boma Manilla
7f6df7ea8a Bug 1762865 - [devtools] Add assertion for server breakpoints in breakpoints tests r=ochameau
This patch also adds assertions for breakpoints on the server to the
breakpoints reload tests. This also asserts that the breakpoint is not removed
on the server when related source no longer exists after a reload

Differential Revision: https://phabricator.services.mozilla.com/D142545
2022-04-25 11:46:23 +00:00
Hubert Boma Manilla
2e950ad6d7 Bug 1764055 - [devtools] Add tests for breakpoints in original source whose generated source content changes on reload r=ochameau
Updating the bug id

Differential Revision: https://phabricator.services.mozilla.com/D142047
2022-04-25 11:46:22 +00:00
Jens Stutte
5ee2800188 Bug 1765822: Do not assert but just bail out on missing event target in nsTimerImpl::InitCommon. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144540
2022-04-25 10:46:25 +00:00
Marian-Vasile Laza
eccbf2e6d7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-04-25 12:44:29 +03:00
Marian-Vasile Laza
a9de726161 Merge autoland to mozilla-central. a=merge 2022-04-25 12:40:50 +03:00
Jens Stutte
f3bcc60440 Bug 1764251: Substitute sCanLaunchSubprocesses with AppShutdown::IsInOrBeyond and add shutdown checks to BeginSubprocessLaunch and ContentProcessManager singleton creation. r=smaug,jesup
Differential Revision: https://phabricator.services.mozilla.com/D142190
2022-04-25 09:22:22 +00:00
julianwels
7e56e6f684 Bug 1735565 - Debugging intermittent https-only iframe test. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D144313
2022-04-25 09:10:58 +00:00
Oriol Brufau
891163b4d8 Bug 1765747 - Fix intermittent failure in browser_ext_tabs_onCreated.js. r=mixedpuppy
It seems that tab creation may sometimes trigger 'status' updates.
It may depend on whether about:newtab is cached or has to be loaded.

Differential Revision: https://phabricator.services.mozilla.com/D144285
2022-04-25 08:38:05 +00:00
Emilio Cobos Álvarez
7d2ab62323 Bug 1766046 - cleanup animation-name. r=boris
Make the representation the same between Gecko and Servo code. This will
enable further clean-ups in the future.

Make serialization be correct, serializing as identifier unless it's an
invalid one (in which case we serialize as a string).

This changes our stringification behavior in the specified style, but
now it will match the computed style and be more correct over-all.

Differential Revision: https://phabricator.services.mozilla.com/D144473
2022-04-25 08:23:51 +00:00
Butkovits Atila
206c96bde0 Backed out changeset dfec425c53fe (bug 1766046) for causing wpt failures at animation-timeline-computed.html. CLOSED TREE 2022-04-25 11:06:51 +03:00
Mozilla Releng Treescript
b033b97046 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
dsb -> a33c8b0e9e913f67b112cdd9483a721cb5036b78
es-AR -> 151a4312d4317d21368a4a61d001222f21e39f4b
hsb -> c6bd49fd3112fd4e3020d0c1200e90236e040a35
2022-04-25 06:57:30 +00:00
Gabriele Svelto
4e25142c69 Bug 1762949 - Explicitly flag all crash reports as throttleable when they've not been submitted manually r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D143185
2022-04-25 06:37:17 +00:00
Kagami Sascha Rosylight
836900ef53 Bug 1765844 - Remove an empty test meta file r=smaug DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D144324
2022-04-24 23:41:09 +00:00
Emilio Cobos Álvarez
e097b4be55 Bug 1765999 - Move some of the media query code to a more generic queries module. r=hiro
No behavior change, just moving and renaming files.

The code in the "queries" module will be shared between @media and
@container.

@media has some other code that container queries doesn't need like
MediaList / MediaType / etc. That remains in the media_queries module.

Differential Revision: https://phabricator.services.mozilla.com/D144435
2022-04-24 21:48:02 +00:00