Iulian Moraru
fde9af09c2
Backed out changeset 8ff752dc79b2 (bug 1764186) for causing gtest failures on MediaTrackGraph. CLOSED TREE
2022-05-27 03:23:26 +03:00
Chun-Min Chang
73fb2e3f53
Bug 1764186 - Make sure MediaInputPort::Get{Source, Destination} are graph-thread only r=bwc,padenot
...
`MediaInputPort::Get{Source, Destination}` should be graph-thread only since the `MediaInputPort`'s `mSource` and `mDest` will be cleaned up on the graph thread [1], in case of causing some potential racing issues.
[1] https://searchfox.org/mozilla-central/rev/10edce3685369a4c73955cc8d5fcbc5a9d7598af/dom/media/MediaTrackGraph.cpp#2944-2945
Differential Revision: https://phabricator.services.mozilla.com/D143780
2022-05-26 23:17:49 +00:00
Alexandre Lissy
c53de97817
Bug 1767930 - Enable Utility AudioDecoder for Android r=jolin
...
Differential Revision: https://phabricator.services.mozilla.com/D145785
2022-05-26 23:00:07 +00:00
Iulian Moraru
74097ce09d
Backed out changeset f29c1f743f52 (bug 1771009) for causing failures on timeout-close.html. CLOSED TREE
2022-05-27 02:02:16 +03:00
Kagami Sascha Rosylight
090cf33807
Bug 1771009 - Make TimeoutManager::SetTimeout no-op if window is dying r=smaug
...
setTimeout is not affected since nsGlobalWindowInner::SetTimeout is not called at all when it's dying, but that's not the case with AbortSignal.timout, so we have to explicitly deal with such situation.
Differential Revision: https://phabricator.services.mozilla.com/D147368
2022-05-26 22:12:48 +00:00
Jeff Muizelaar
f1980a4fbf
Bug 1767170 - Add some more outbound-rtp stats. r=ng,webidl,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D145177
2022-05-26 17:35:14 +00:00
Jeff Muizelaar
79ba6a28b6
Bug 1771309. Fill in encoded width and height values for h264. r=ng
...
Differential Revision: https://phabricator.services.mozilla.com/D147434
2022-05-26 17:26:03 +00:00
Emilio Cobos Álvarez
812e9972e6
Bug 1730284 - Minor fix so this works for in-process frames in DevTools properly.
...
Otherwise if *this is the top-level document IntersectionObserver won't
quite do the right thing.
MANUAL PUSH: Fix orange timeout CLOSED TREE
2022-05-26 19:58:56 +02:00
Emilio Cobos Álvarez
25f894d32e
Bug 1730284 - Fix new test in XOrigin mode.
...
MANUAL PUSH: Trivial fix for new test CLOSED TREE.
2022-05-26 19:21:12 +02:00
Emilio Cobos Álvarez
8992ef0fda
Bug 1767855 - Make tab warming use the process priority hint. r=mconley
...
Differential Revision: https://phabricator.services.mozilla.com/D145501
2022-05-26 16:25:13 +00:00
Martin Robinson
cac491e1fd
Bug 1477524 - Update quotes and counters to work trough the flattened tree r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D146693
2022-05-26 16:12:46 +00:00
Emilio Cobos Álvarez
614a085bf3
Bug 1730284 - Use whether the embedder element intersects the viewport to decide whether to throttle in-process iframes. r=smaug
...
This is more likely to be understandable by developers, matches other
browsers more closely (see bug comments), and seems more in-line with
what we do for OOP iframes.
Add a pref to not do this throttling at all (which would match Chrome),
though this is probably good enough for now.
Differential Revision: https://phabricator.services.mozilla.com/D146574
2022-05-26 15:45:01 +00:00
Norisz Fay
28db98ade1
Backed out changeset ce66cc2cbb95 (bug 1477524) for causing build bustages on nsCounterManager.cpp CLOSED TREE
2022-05-26 15:24:40 +03:00
Benjamin VanderSloot
00a98e3ed5
Bug 1765307
, part 6 - Add inline comments to explain changes from this set, r=anti-tracking-reviewers,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D147333
2022-05-26 11:18:58 +00:00
Benjamin VanderSloot
c81e491ae4
Bug 1765307
, part 5 - Make requestStorageAccessForOrigin check cookie permissions in the parent process, r=anti-tracking-reviewers,timhuang
...
Also remove the old IPC that did this.
Differential Revision: https://phabricator.services.mozilla.com/D146946
2022-05-26 11:18:57 +00:00
Benjamin VanderSloot
0e7849fdab
Bug 1765307
, part 4 - Update requestStorageAccess[ForOrigin] functions to use helper functino for the asynchronous portion, r=anti-tracking-reviewers,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D146618
2022-05-26 11:18:57 +00:00
Benjamin VanderSloot
b453919747
Bug 1765307
, part 3 - Create helper for the async portion of the requestStorageAccess[ForOrigin] functions, r=anti-tracking-reviewers,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D146617
2022-05-26 11:18:57 +00:00
Benjamin VanderSloot
b6c392d6da
Bug 1765307
, part 2 - Convert privileged API to use helpers for the synchronous portion, r=anti-tracking-reviewers,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D146616
2022-05-26 11:18:56 +00:00
Martin Robinson
786890b5c4
Bug 1477524 - Update quotes and counters to work trough the flattened tree r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D146693
2022-05-26 11:15:16 +00:00
Masayuki Nakano
0e18b68708
Bug 1770133 - part 5: Make `ContentEventHandler` store root node as `Element*` rather than `nsIContent*` r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D147136
2022-05-26 07:03:20 +00:00
Masayuki Nakano
6440fbddc3
Bug 1770133 - part 4: Make `IMEContentObserver` use `dom::Element` instead of `nsIContent` for root r=m_kato
...
The root is always an element node. So, it should take and store the root node
as `dom::Element` rather than `nsIContent`.
Differential Revision: https://phabricator.services.mozilla.com/D147135
2022-05-26 07:03:20 +00:00
Masayuki Nakano
6817b54c9d
Bug 1770133 - part 2: Make `IMEStateManager::sFocusedContent` store it as `Element` r=m_kato
...
`nsFocusManager` defines that focused content is at least `dom::Element`.
So `IMEStateManager` can handle focused content with `dom::Element` too.
Additionally, this patch makes `IMEStateManager` methods take references instead
of pointers as far as possible if they just return error for `nullptr`.
Differential Revision: https://phabricator.services.mozilla.com/D147133
2022-05-26 07:03:19 +00:00
Masayuki Nakano
609478f714
Bug 1770133 - part 1: Rename `sContent`, `sPresContext` and `sWidget` of `IMEStateManager` r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D147132
2022-05-26 07:03:19 +00:00
Masayuki Nakano
5a48a0f346
Bug 1680611 - part 11: Mark `nsFocusManager::NotifyOfReFocus()` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147072
2022-05-26 04:37:22 +00:00
Masayuki Nakano
971efcf6d8
Bug 1770684 - Mark `IMEStateManager::SetIMEState` and its callers in `IMEStateManager` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147071
2022-05-26 04:37:21 +00:00
Masayuki Nakano
77df1d2c4c
Bug 1680611 - part 10: Mark `nsFocusManager::Flush*()` and their callers in `nsFocusManager` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147069
2022-05-26 04:37:21 +00:00
Masayuki Nakano
cc2372ada1
Bug 1680611 - part 9: Mark `nsFocusManager::Focus()` and its callers in `nsFocusManager` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147068
2022-05-26 04:37:21 +00:00
Masayuki Nakano
728f08af35
Bug 1680611 - part 8: Mark `nsFocusManager::Blur` and its callers in `nsFocusManager` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147067
2022-05-26 04:37:20 +00:00
Masayuki Nakano
30257c37b6
Bug 1680611 - part 7: Mark `nsFocusManager::BlurImpl()` and `nsFocusManager::BlurFromOtherProcess()` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147066
2022-05-26 04:37:20 +00:00
Masayuki Nakano
cdfbc99cdf
Bug 1680611 - part 6: Mark `nsFocusManager::MoveCaretToFocus()` and its callers in `nsFocusManager` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147065
2022-05-26 04:37:19 +00:00
Masayuki Nakano
373eef7079
Bug 1680611 - part 5: Get rid of `nsFocusManager::FocusPlugin()` because of unused r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147064
2022-05-26 04:37:19 +00:00
Masayuki Nakano
bf30ad9427
Bug 1680611 - part 4: Mark `nsFocusManager::WindowHidden()` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147063
2022-05-26 04:37:19 +00:00
Masayuki Nakano
1ccba43651
Bug 1680611 - part 3: Mark `nsFocusManager::WindowLowered()` and its callers in `nsFocusManager` as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147062
2022-05-26 04:37:18 +00:00
Masayuki Nakano
c8fc1057ba
Bug 1680611 - part 2: Mark `nsFocusManager::SetFocusedWindowWithCallerType` and its callers in `nsFocusManager` as `MOZ_CAN_RUN_SCRIPT` r=smaug,media-playback-reviewers,chunmin
...
Differential Revision: https://phabricator.services.mozilla.com/D147061
2022-05-26 04:37:18 +00:00
Masayuki Nakano
498eae6328
Bug 1680611 - part 1: Mark all `nsFocusManager` methods whose names explain that they may dispatch events as `MOZ_CAN_RUN_SCRIPT` r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147060
2022-05-26 04:37:17 +00:00
Alexandre Lissy
43ff7d79dd
Bug 1770558 - Ensure proper handling of returned promise r=alwu
...
Differential Revision: https://phabricator.services.mozilla.com/D147158
2022-05-26 01:03:50 +00:00
Kagami Sascha Rosylight
50ec2e051f
Bug 1757635 - Part 2: Use NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS where applicable r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D147235
2022-05-25 23:41:26 +00:00
Kagami Sascha Rosylight
846680d799
Bug 1757635 - Part 1: Add `using ::ImplCycleCollectionUnlink` inside NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS r=mccr8
...
Otherwise the global ImplCycleCollectionUnlink for JS members are shadowed by mozilla::dom::ImplCycleCollectionUnlink and can't be used.
Bug 1756794 is to move all the impls to the single namespace to prevent this, but that requires verbose changes, and currently the only affected uses are from these macros.
Differential Revision: https://phabricator.services.mozilla.com/D147234
2022-05-25 23:41:25 +00:00
Matthew Gaudet
00fec71b01
Bug 1770170 - Bug 1770171 - Disable large-pipeto.js under TSAN (causes claim_expired errors on taskcluster) r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D146814
2022-05-25 21:37:35 +00:00
Emilio Cobos Álvarez
6edd8dc1c9
Bug 1730284 - Factor out some IntersectionObserver code. r=smaug,sefeng
...
Differential Revision: https://phabricator.services.mozilla.com/D146573
2022-05-25 20:45:55 +00:00
Noemi Erli
97087de3d8
Backed out 2 changesets (bug 1730284) for causing devtools,web-platform and mochitest failures CLOSED TREE
...
Backed out changeset 98834b863104 (bug 1730284)
Backed out changeset 1ec157459e8c (bug 1730284)
2022-05-25 22:51:20 +03:00
Emilio Cobos Álvarez
14feea4bf2
Bug 1730284 - Use whether the embedder element intersects the viewport to decide whether to throttle in-process iframes. r=smaug
...
This is more likely to be understandable by developers, matches other
browsers more closely (see bug comments), and seems more in-line with
what we do for OOP iframes.
Add a pref to not do this throttling at all (which would match Chrome),
though this is probably good enough for now.
Differential Revision: https://phabricator.services.mozilla.com/D146574
2022-05-25 17:54:22 +00:00
Emilio Cobos Álvarez
9e0c44f14a
Bug 1730284 - Factor out some IntersectionObserver code. r=smaug,sefeng
...
Differential Revision: https://phabricator.services.mozilla.com/D146573
2022-05-25 17:54:22 +00:00
Tom Schuster
19cb5cfdcb
Bug 1770395 - Test more file types. r=dveditz
...
Differential Revision: https://phabricator.services.mozilla.com/D146923
2022-05-25 17:07:56 +00:00
Tom Schuster
b9f2fe59ee
Bug 1770395 - Telemetry for file protocol script loads. r=freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D146902
2022-05-25 17:07:56 +00:00
Edgar Chen
bc028b1f4e
Bug 1524237 - Use Shmem for sending large string data in IPCDataTransfer; r=NeilDeakin
...
Differential Revision: https://phabricator.services.mozilla.com/D146096
2022-05-25 15:53:39 +00:00
Andrew Osmond
84415e0d42
Bug 1771154 - Ensure we readback the pixel data for offscreen WebGL-backed canvas 2D contexts. r=lsalzman
...
When we want to present with an OffscreenCanvas using a Canvas2D context
that is backed by a WebGL context via DrawTargetWebgl, we need to ensure
that any readbacks are done on the owning thread. As such, we need to
map in the surfaces before passing them to ImageBridge.
There are likely optimizations we can do here that don't involve
readback if the canvas doesn't fallback to software but for now this
patch focuses on making it work.
Differential Revision: https://phabricator.services.mozilla.com/D147297
2022-05-25 14:41:37 +00:00
Emilio Cobos Álvarez
31e7dd1820
Bug 1771137 - Cleanup a bit top layer code. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D147282
2022-05-25 13:07:19 +00:00
Jon Coppeard
a7fd419ccc
Bug 1771112 - Temporarily remove ChromeUtils.importModule API r=smaug
...
This removes the API and skips the tests. The implementation in
mozJSComponentLoader is not removed.
This patch will be backed out after the next merge.
Differential Revision: https://phabricator.services.mozilla.com/D147278
2022-05-25 12:12:18 +00:00
Jamie Nicol
556d4cfd0a
Bug 1764589 - Remove vertex_array_object extension requirement for WebGL. r=gfx-reviewers,jgilbert
...
There are some Android devices which support GLES 2 but do not support
the vertex_array_object extension, and we therefore do not give them
WebGL 1.
This requirement was added in bug 1322746. as part of some changes to
GLBlitHelper which required VAOs. However, in bug 1396704 a fallback
path was added to GLBlitHelper which does not require VAOs. The WebGL
implementation can make use of the WebGLVertexArrayFake fallback path
on devices without VAO support, meaning this requirement can be
dropped.
Differential Revision: https://phabricator.services.mozilla.com/D145422
2022-05-25 11:38:01 +00:00