Commit Graph

761336 Commits

Author SHA1 Message Date
Iain Ireland
c04f551ec0 Bug 1703740: Update irregexp r=mgaudet
Pulling in some small upstream fixes:

Bugs involving quantifiers inside look-around assertions
https://bugs.chromium.org/p/v8/issues/detail?id=11290
https://bugs.chromium.org/p/v8/issues/detail?id=11616

Allocating unnecessary memory in RegExpStack
https://bugs.chromium.org/p/v8/issues/detail?id=11540

--trace-regexp-assembler broken by adding RISC-V support
https://bugs.chromium.org/p/v8/issues/detail?id=11572

Differential Revision: https://phabricator.services.mozilla.com/D111334
2021-06-16 23:28:07 +00:00
Timothy Nikkel
16d7003b40 Bug 1713715. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D116926
2021-06-16 23:15:38 +00:00
Timothy Nikkel
a531bbe273 Bug 1713715. Redirect double tap gestures to the root content apzc. r=botond
This means that double tapping on an oop iframe "works" in that we don't try (and fail) to zoom the oop iframe. But it also means it is impossible to zoom to some content inside that oop iframe. Instead the best we can do is zoom to the oop iframe itself. This is consistent with what Chrome and Safari currently do. Allowing zooming to content inside an oop iframe would be decently complicated and it doesn't seem worth it. Bug 1715179 is on file for this.

Differential Revision: https://phabricator.services.mozilla.com/D116925
2021-06-16 23:15:37 +00:00
Shane Caraveo
568202a19a Bug 1501879 fix system update failure tests r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D115019
2021-06-16 23:08:17 +00:00
R. Martinho Fernandes
60eca13626 Bug 1714630 - Fix broken call to rememberValidityOverride in exceptionDialog r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D117300
2021-06-16 22:11:03 +00:00
Rafal Bielski
bdf6cda786 Bug 1673913 - Fix readability-else-after-return warnings. r=masayuki,mbrodesser
Differential Revision: https://phabricator.services.mozilla.com/D94243
2021-06-16 21:53:04 +00:00
Itiel
81275099b6 Bug 1705967 - Overhaul and protonize the library window for Windows r=mak,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D112490
2021-06-16 21:24:27 +00:00
Drew Willcoxon
c2b15a15cd Bug 1716639 - Add a "Disable" button to the Firefox Suggest onboarding prompt that opens about:preferences#search. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D117950
2021-06-16 21:16:34 +00:00
Toshihito Kikuchi
a1fe650713 Bug 1713415 - Don't discard the unprocessed loading events. r=aklotz
We had the constant `kMaxEvents` which limits the maximum number of loading
events in `UntrustedModulesData`.  Because we had a check for the number of
events in `UntrustedModulesData::AddNewLoads` where we already swapped
`UntrustedModulesProcessor::mUnprocessedModuleLoads` with a local variable,
when the array exceeds `kMaxEvents`, we discarded the remaining loading events.

The proposed fix is to check for `kMaxEvents` before swapping the unprocessed
events, so that the remaining events will be processed the next time.

This was caught by the `UntrustedModulesFixture` GTest.  This test had
another test bug that it always expected modules were loaded in the main
thread except the predefined known modules.  This is not correct because
the same process may have loaded a bunch of modules in the earlier GTests
such as graphics drivers in different threads.  This patch includes a fix
for that bug as well.

Differential Revision: https://phabricator.services.mozilla.com/D117433
2021-06-16 21:16:05 +00:00
stransky
9633cd40dc Bug 1716850 [Wayland] Call WindowSurfaceWayland::Reset() from moz_container_wayland_surface_create_locked(), r=rmader
Depends on D118078

Differential Revision: https://phabricator.services.mozilla.com/D118079
2021-06-16 20:37:12 +00:00
stransky
14c48df3df Bug 1716850 [Wayland] Don't lock WindowSurfaceWayland at WindowSurfaceWayland::Reset(), r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D118078
2021-06-16 20:37:12 +00:00
stransky
4ea1126264 Bug 1715365 [Linux] Move DMABuf video frames allocation from FFmpegVideoFramePool to FFmpegDataDecoder, r=alwu
- Replace DMABufSurfaceWrapper array by FFmpegVideoFramePool and create it only when DMABuf/VA-API is used.
- Use FFmpegVideoFramePool to allocate/recycle video frames backed by DMABuf surfaces.
- Enable SW decoding to DMABuf surfaces only when VA-API is enabled to avoid potential breakage (keep recent state).
- Disable VA-API / DMABuf decoding when WebRender is not used.
- Remove DMABufSurfaceWrapper class.

Depends on D117222

Differential Revision: https://phabricator.services.mozilla.com/D117223
2021-06-16 20:14:26 +00:00
stransky
900c23dd13 Bug 1715365 [Linux] Implement FFmpegVideoFramePool class to allocate and recycle DMABuf video frames, r=alwu
- Implement abstract class for video frames named VideoFrameSurface
- Implement VideoFrameSurfaceDMABuf class for video frames uploaded to DMABuf memory from SW decoding.
- Implement VideoFrameSurfaceVAAPI class for video frames decoded by VA-API.
- Implement VideoFramePool to create and recycle video frames.

Depends on D117221

Differential Revision: https://phabricator.services.mozilla.com/D117222
2021-06-16 20:14:25 +00:00
stransky
6c42f7b5b9 Bug 1715365 [Linux] Update DMABuf log, r=rmader
- Fix typo in dmabuf log.
- Print error type when dmabuf node can't be opened.

Differential Revision: https://phabricator.services.mozilla.com/D117221
2021-06-16 20:14:25 +00:00
stransky
0f4a2660f0 Bug 1715365 [Linux] Polish FFmpegVideoDecoder VA-API code, r=alwu
- Split VA-API / DMABuf video images decoding to CreateImageDMABuf() and CreateImageVAAPI(). CreateImageVAAPI() is used for VA-API only and CreateImageDMABuf() for images decoded by SW and uploaded to DMABuf.
- Implement FFmpegVideoDecoder::InitHWDecodingPrefs() where VA-API related prefereces are processed.
- Change mDisableHardwareDecoding to mEnableHardwareDecoding for better readability.
- Implement nsDMABufDevice::IsDMABufVideoEnabled() to explicitly configure dmabuf texture setup.
- Remove unused AllocateYUV420PVideoBuffer() prototype.

Differential Revision: https://phabricator.services.mozilla.com/D117220
2021-06-16 20:14:25 +00:00
Sean Feng
eb8464f241 Bug 1632733 - Always use InputTaskManager for InputHigh tasks regardless InputEventQueueState r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D118028
2021-06-16 19:54:37 +00:00
moz-wptsync-bot
a1a7e79d45 Bug 1716738 - [wpt-sync] Update web-platform-tests to 6ce585b845874728b6c7c6bdf312cc1ed12ca4a4, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: 6ce585b845874728b6c7c6bdf312cc1ed12ca4a4
wpt-type: landing
2021-06-16 19:41:48 +00:00
Michael[tm] Smith
d7cb27b186 Bug 1716700 [wpt PR 29396] - cc Rename one ARIA test, and update messages.json, a=testonly
Automatic update from web-platform-tests
cc Rename one ARIA test, and update messages.json

--

wpt-commits: 6ce585b845874728b6c7c6bdf312cc1ed12ca4a4
wpt-pr: 29396
2021-06-16 19:41:48 +00:00
Joey Arhar
464d7b6f0d Bug 1716674 [wpt PR 29393] - Fix use-after-free with XSLT strip-space, a=testonly
Automatic update from web-platform-tests
Fix use-after-free with XSLT strip-space

Fixed: 1219209
Change-Id: I3baab9d1b419407d964a80f10c6ca05e0294554f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2965632
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892861}

--

wpt-commits: 3e3b873f7c571a4e2d1c890c0c8a9840237e23ee
wpt-pr: 29393
2021-06-16 19:41:47 +00:00
Robert Flack
d78a467430 Bug 1716424 [wpt PR 29368] - Update sticky position pushed beyond scrollable range test., a=testonly
Automatic update from web-platform-tests
Update sticky position pushed beyond scrollable range test.

The css-position spec[1] was updated to suggest that sticky positioned
elements are only shifted after layout within their containing block.
This would imply that the now unified behavior across browsers matches
the new spec expectations. This updates the test to match what the
browsers do.

[1] https://drafts.csswg.org/css-position-3/#stickypos-insets

Bug: 752022
Change-Id: Ic95d32948f9088ae4592a3de78d6ac0a58db8183
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2960015
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892805}

--

wpt-commits: 05ab45fb425416018d4bfa23ee3a65b5d37f593b
wpt-pr: 29368
2021-06-16 19:41:47 +00:00
Aaron Leventhal
3abe6ea3d5 Bug 1716599 [wpt PR 29388] - Safe slot reassigment, a=testonly
Automatic update from web-platform-tests
Safe slot reassigment

1. Use GetWithoutInvalidation() instead of Get() in DCHECKs.
We should never call Get() inside of a DCHECK(), because this can
lead to a different code path depending on whether DCHECKs are enabled.

2. Get() should not cause immediate side effects. At most, it should
queue up an invalidation for later processing.

Fixing #1 and #2 were required in order to get past a first set of
errors introduced by the new test.

3. The actual fix -- avoid infinite loop by calling a special
new SlotAssignmentWillChange(), rather than ChildrenChanged(),
where a minimal GetWithoutInvalidation() is called that does not
lead to IsShadowContentRelevantForAccessibility() => FirstChild() =>
RecalcAssignedNodes() => ChildrenChanged() ... (infinite loop).

A simpler potential fix is in CL:2965317 but requires more
research. It's also mentioned in a TODO comment.

Bug: 1219311
Change-Id: Iafaa289f241a851404ce352715d2970172a2e5f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2961158
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892778}

--

wpt-commits: 7b9ca7da96108c39142ebf9b6d639d9725beebf4
wpt-pr: 29388
2021-06-16 19:41:46 +00:00
moz-wptsync-bot
c23c7b896c Bug 1716447 [wpt PR 29374] - Update wpt metadata, a=testonly
wpt-pr: 29374
wpt-type: metadata
2021-06-16 19:41:46 +00:00
Dan Sanders
457dda5022 Bug 1716447 [wpt PR 29374] - [webcodecs] Rename regions concepts, a=testonly
Automatic update from web-platform-tests
[webcodecs] Rename regions concepts

This CL renames "Region" to "Rect" and readInto() to copyTo().

Bug: 1176464
Change-Id: Ic2c494a54d9755f96272eecddb427ae4324f5099
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2961677
Commit-Queue: Dan Sanders <sandersd@chromium.org>
Reviewed-by: Chrome Cunningham <chcunningham@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892753}

--

wpt-commits: f93078f2cc56044fcd2ee6047b1afedbc64e67d6
wpt-pr: 29374
2021-06-16 19:41:45 +00:00
David Grogan
63835bc0a1 Bug 1716650 [wpt PR 29391] - [css-flex] Migrate more abspos tests from reference to check-layout, a=testonly
Automatic update from web-platform-tests
[css-flex] Migrate more abspos tests from reference to check-layout

Before this patch, the entire test file is marked Fail even though each
file has ~15-20 tests in it, some of which Blink passes. If we were to
regress any of the tests we pass, we'd never know.

This patch shows that Blink disagrees with Firefox in any wrap-reverse
container and some justify-content:space-between containers.

Change-Id: I3ce1120a47f85a89ecfbea9952b15514bc1c58e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2965267
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Auto-Submit: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892738}

--

wpt-commits: 38ba3d82c68c3f79d9a24350ff1960a493c65d5c
wpt-pr: 29391
2021-06-16 19:41:45 +00:00
moz-wptsync-bot
485dd2ce25 Bug 1716428 [wpt PR 29369] - Update wpt metadata, a=testonly
wpt-pr: 29369
wpt-type: metadata
2021-06-16 19:41:44 +00:00
Ian Kilpatrick
231eb71914 Bug 1716428 [wpt PR 29369] - [wpt] Fix grid aspect-ratio tests., a=testonly
Automatic update from web-platform-tests
[wpt] Fix grid aspect-ratio tests.

There two tests were asserting that "min-width: auto" would clamp the
inline-size to the available inline-size, even though we had a
transferred inline-size.

(Firefox has the same behaviour as us if "min-width: 0").
This updates the tests to respect the transferred inline-size.

Bug: 1203090
Change-Id: I02e10d3393f74cce0979b483629d1d6cea33d10d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2961536
Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892731}

--

wpt-commits: cf132901347a5159fa0b969819505b9a414a2128
wpt-pr: 29369
2021-06-16 19:41:44 +00:00
James Graham
5d96d97688 Bug 1675478 [wpt PR 26411] - Ensure we set a testdriver context when running in a non-test window , a=testonly
Automatic update from web-platform-tests
Remove some unnecessary switch to window commands from testdriver

--
Ensure we set a testdriver context when running in a non-test window

testdriver can be used outside the test window in two ways:

* By passing in a context parameter pointing to another window in
which the commands should be run.

* By loading testdriver in the other window and having it postMessage
commands back to the top window.

For the first case the context parameter being null means "run the
command in the test window". However we were also passing null in the
second case when the command should be run in the window where
testdriver was loaded. That meant the command was actually run in the
test window rather than the target. It just so happened this didn't
cause test failures in Chrome and Firefox because of the specific
choice of commands in the tests. But it did in Firefox with site
isolation enabled and Safari and would for a different set of tests.

The fix is to ensure that the context is always set when postMessaging
a command to the top-level window.

--
Only skip switching to the current window if we didn't already switch to a different window

--
Only try to switch to parent if we are processing a frame

--

wpt-commits: c0302954a41ac1c442beca0227a7fb2208f96dc6, b32b3e223f63dc5500de31dfc117a03ec582f38d, 27e1c32dd3ad67a06a07ebc0d1e4809e3f05eb9b, 6a943265f49d7c5de263c6d2f5de36531d10e8e8
wpt-pr: 26411
2021-06-16 19:41:43 +00:00
moz-wptsync-bot
f5057455a0 Bug 1716631 [wpt PR 29390] - Update wpt metadata, a=testonly
wpt-pr: 29390
wpt-type: metadata
2021-06-16 19:41:43 +00:00
Ben Kelly
bd6c0aac10 Bug 1716631 [wpt PR 29390] - URLPattern: Collapse look-ahead loops into main parse loop., a=testonly
Automatic update from web-platform-tests
URLPattern: Collapse look-ahead loops into main parse loop.

This CL refactors the parser to use separate states instead of the
previously implemented look-ahead loops.  This fixes a bug where the
look-ahead loops did not properly ignore characters within `{ }`
pattern groupings.

This CL also slightly improves handling for nesting `{ }` groupings
even though they are not legal pattern syntax.  It seems better to
avoid getting confused on depth and let the later pattern compiler
return a more predictable error.

This CL also adds a number of additional comments and other cleanup.

Bug: 1141510
Change-Id: Id6bc1b4a16390b9e878c6757582519997332bbc8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2951204
Commit-Queue: Ben Kelly <wanderview@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892699}

--

wpt-commits: 3b7d310344e0ea8eb032ce9ad3e588a86216cd54
wpt-pr: 29390
2021-06-16 19:41:43 +00:00
Ted Campbell
b172dd415c Bug 1716250 - Remove JS_FRIEND_API. r=jandem,sfink
Convert all JS_FRIEND_API to JS_PUBLIC_API. At this point, the JS_PUBLIC_API has
no formal curation process and in practice we add a lot of new features to
JS_FRIEND_API without giving much thought to if they should be public. The
result is that all embedders need to use the friend API in some form and the
distinction has lost meaning.

Going forward, we should continue to use the js/public/experimental directory as
a place to expose new APIs, and in general should strive for high quality of the
APIs that are exposed. If a particular API is tricky or discouraged, comments
explaining that will be more helpful that a losely applied FRIEND_API marker.

Differential Revision: https://phabricator.services.mozilla.com/D117607
2021-06-16 19:38:10 +00:00
Butkovits Atila
b252130bae Backed out changeset 8473f7b4d147 (bug 1705967) for causing build bustages on organizer.css. CLOSED TREE 2021-06-16 22:32:30 +03:00
surajeet310
535edf75ec Bug 1714688 - Removed 'if PY2' logic from testing/marionette r=mhentges,webdriver-reviewers,jgraham
Python2 is no longer used in testing/marionette

Differential Revision: https://phabricator.services.mozilla.com/D118037
2021-06-16 19:21:00 +00:00
Robert Mader
ca47a39e5a Bug 1646135 - Disable HW-WR on Nvidia prop. drivers on Wayland, r=aosmond
Currently we fail to display anything when using the Nvidia EGL
implementation. Similar issues seem to happen in GTK4.

If we're lucky this will be fixed by future Nvidia drivers as they
started to adopt DMABUF/GBM.

Differential Revision: https://phabricator.services.mozilla.com/D117434
2021-06-16 19:17:05 +00:00
Itiel
290b312d8e Bug 1705967 - Overhaul and protonize the library window for Windows r=mak,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D112490
2021-06-16 19:11:17 +00:00
Mike Conley
3ad3f51cf9 Bug 1714253 - Extend Picture-in-Picture Telemetry events until v95. r=mhowell, data-review=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D117546
2021-06-16 19:05:52 +00:00
Kashav Madan
1aac97839f Bug 1713896 - Remove fission annotation for false positive, r=neha
Differential Revision: https://phabricator.services.mozilla.com/D118039
2021-06-16 18:52:34 +00:00
Dan Minor
b7aab76ee1 Bug 1716805 - Create a micro benchmark for Intl.Locale; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D118035
2021-06-16 18:47:11 +00:00
Thomas Wisniewski
8ed04d7a16 Bug 1713725 - update the SmartBlock shim for Rich Relevance; r=denschub,webcompat-reviewers
- stub out more of the API to mitigate more breakage
- update the ES coding style to be more modern

Differential Revision: https://phabricator.services.mozilla.com/D118038
2021-06-16 18:38:31 +00:00
Christoph Kerschbaumer
c0afcb9eea Bug 1709838: Enable HTTPS-First Mode in PBM Mode in Nightly r=arthuredelstein
Differential Revision: https://phabricator.services.mozilla.com/D114500
2021-06-16 18:18:30 +00:00
Eitan Isaacson
848bbe1cb6 Bug 1691813 - Use TreeWalker to find accessible descendants. r=Jamie
This speeds up reflows on pages like view source that have a single
giant container. But this maybe slows down other cases? I'm not 100%
sure.

Differential Revision: https://phabricator.services.mozilla.com/D117948
2021-06-16 18:05:13 +00:00
surajeet310
2241c4ace7 Bug 1714688 - Removed 'if PY3' logic from testing/mozbase r=mhentges
Python2 is no longer used in testing/mozbase

Differential Revision: https://phabricator.services.mozilla.com/D118040
2021-06-16 17:57:48 +00:00
Markus Stange
84e4f09a3f Bug 1716826 - Re-enable some passwordmgr tests that were disabled for macOS Fission. r=neha
Differential Revision: https://phabricator.services.mozilla.com/D118036
2021-06-16 17:52:25 +00:00
Kashav Madan
0785bcf16e Bug 1716366 - Synchronize history state for entries of discarded contexts, r=smaug
We sync layout history state on doc shell removal, and we may have discarded a
context for an out-of-process frame before ContentParent receives the
synchronize message.

Differential Revision: https://phabricator.services.mozilla.com/D118003
2021-06-16 17:39:26 +00:00
Butkovits Atila
8378288f6c Backed out changeset af44502e176a (bug 1691813) for causing build bustages on DocAccessible.cpp. CLOSED TREE 2021-06-16 20:43:03 +03:00
Emilio Cobos Álvarez
d7fb957271 Bug 1716462 - Add a bit more logging. r=stransky
And reuse an already-computed name rather than calling GetGtkTheme
again.

Differential Revision: https://phabricator.services.mozilla.com/D117723
2021-06-16 17:02:09 +00:00
Emilio Cobos Álvarez
e4b1b9e37b Bug 1716462 - Minor WidgetStyleCache cleanup. r=stransky
We always support these functions, so no need to use dlsym. The csd type
technically depends on the theme I think, so caching it globally is
wrong. Instead compute it once and pass it down to the two callers that
care about it.

Differential Revision: https://phabricator.services.mozilla.com/D117722
2021-06-16 17:02:08 +00:00
Gregory Mierzwinski
9d1fca2ffe Bug 1680214 - Disable cnn live-site test. r=perftest-reviewers,kimberlythegeek
Differential Revision: https://phabricator.services.mozilla.com/D117653
2021-06-16 17:00:29 +00:00
Eitan Isaacson
ac98d85fc6 Bug 1691813 - Use TreeWalker to find accessible descendants. r=Jamie
This speeds up reflows on pages like view source that have a single
giant container. But this maybe slows down other cases? I'm not 100%
sure.

Differential Revision: https://phabricator.services.mozilla.com/D117948
2021-06-16 16:42:47 +00:00
surajeet310
a6cc0d3961 Bug 1714688 - Removed 'if PY3' logic from testing/condprofile r=mhentges
Python2 is no longer used in testing/condprofile

Differential Revision: https://phabricator.services.mozilla.com/D117942
2021-06-16 16:33:20 +00:00
Kashav Madan
de0419dc6e Bug 1713900 - Remove platform-specific Fission sessionstore annotations from bug 1694824, r=neha
Most of these fail very rarely (if at all), and the ones that do already have
intermittent bugs filed.

See comment #6.

Differential Revision: https://phabricator.services.mozilla.com/D118005
2021-06-16 16:26:42 +00:00