Tim Huang
c83ecb0df1
Bug 1885936 - Part 1: Introduce a chrome only function for getting all gamepads. r=cmartin,webidl,emilio
...
To collect the gamepad information on the user device, we introduce a
chrome only function called RequestAllGamepads to Navigator. The
function will return a promise which resolves when we get all gamepads
info from the parent process.
Note that we cannot rely on The existing navigator.getGamepads()
function because it cannot allow us collecting gamepads info
without the user interacts with the gamepads.
Differential Revision: https://phabricator.services.mozilla.com/D207979
2024-05-15 16:48:58 +00:00
Tamas Szentpeteri
3be78841f1
Backed out 4 changesets (bug 1885936) for causing bpnu bustages related to Gamepad. CLOSED TREE
...
Backed out changeset 935c80ed4a38 (bug 1885936)
Backed out changeset 6cc4da44b050 (bug 1885936)
Backed out changeset 03205a0f59e6 (bug 1885936)
Backed out changeset 93619e887bb7 (bug 1885936)
2024-05-15 16:58:13 +03:00
Tim Huang
266c083bd9
Bug 1885936 - Part 1: Introduce a chrome only function for getting all gamepads. r=cmartin,webidl,emilio
...
To collect the gamepad information on the user device, we introduce a
chrome only function called RequestAllGamepads to Navigator. The
function will return a promise which resolves when we get all gamepads
info from the parent process.
Note that we cannot rely on The existing navigator.getGamepads()
function because it cannot allow us collecting gamepads info
without the user interacts with the gamepads.
Differential Revision: https://phabricator.services.mozilla.com/D207979
2024-05-15 11:43:31 +00:00
Fatih
388a75eb56
Bug 1830629: Remove unnecessary checks for pdf.js for RFP. r=tjr
...
resource:// is exempt from RFP, so we no longer need to check pdf.js specifically.
Differential Revision: https://phabricator.services.mozilla.com/D209359
2024-05-03 17:28:37 +00:00
cypherpunks1
66e2ffdebd
Bug 1554751 - Change the RFP value of devicePixelRatio to 2. r=gfx-reviewers,nical
...
Differential Revision: https://phabricator.services.mozilla.com/D207834
2024-05-02 16:44:12 +00:00
Cristian Tuns
88cc303704
Backed out changeset 2218b1b338de (bug 1554751) for causing mochitest failures in test_bug418986-1.html CLOSED TREE
2024-04-29 14:06:32 -04:00
cypherpunks1
a45ea9581b
Bug 1554751 - Change the RFP value of devicePixelRatio to 2. r=gfx-reviewers,nical
...
Differential Revision: https://phabricator.services.mozilla.com/D207834
2024-04-29 16:44:24 +00:00
Paul Zuehlcke
fd682138db
Bug 1848406 - Detect stateful bounces for window associated storages. r=bvandersloot,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D203607
2024-04-17 20:29:04 +00:00
Norisz Fay
7cdea11ce1
Backed out 15 changesets (bug 1843308, bug 1889444, bug 1888504, bug 1890546, bug 1888500, bug 1848406, bug 1890782) for causing bustage on BounceTrackingProtection.h CLOSED TREE
...
Backed out changeset 09168636f92e (bug 1890782)
Backed out changeset 45c9c902f35f (bug 1889444)
Backed out changeset 7cd441010547 (bug 1889444)
Backed out changeset 692d3fb54e2c (bug 1890546)
Backed out changeset 4c476414499a (bug 1843308)
Backed out changeset fc70ef415bfe (bug 1888504)
Backed out changeset e400fe8e13ac (bug 1888500)
Backed out changeset 336738f93085 (bug 1888500)
Backed out changeset 40fdfaf3cc32 (bug 1848406)
Backed out changeset 6a3ec1f62811 (bug 1848406)
Backed out changeset 5ea32ea95f62 (bug 1848406)
Backed out changeset df982722bc0a (bug 1848406)
Backed out changeset 6808ec37fa93 (bug 1848406)
Backed out changeset 36b8e78cc27e (bug 1848406)
Backed out changeset d63358e762de (bug 1848406)
2024-04-11 23:07:40 +03:00
Paul Zuehlcke
f895782096
Bug 1848406 - Detect stateful bounces for window associated storages. r=bvandersloot,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D203607
2024-04-11 19:03:15 +00:00
Sandor Molnar
e7bdbd80c9
Backed out 12 changesets (bug 1843308, bug 1848406, bug 1888500, bug 1888504, bug 1890546) for causing AddressSanitizer @ xpcom/base/nsISupportsImpl.cpp & bc failures @ toolkit/components/antitracking/bouncetrackingprotection/test/browser/<...> CLOSED TREE
...
Backed out changeset 4537591cca64 (bug 1890546)
Backed out changeset b29ebdf1439e (bug 1843308)
Backed out changeset 7c22cf88677f (bug 1888504)
Backed out changeset b85173dc6c16 (bug 1888500)
Backed out changeset 02d68d4511c7 (bug 1888500)
Backed out changeset 42ab5bd4b856 (bug 1848406)
Backed out changeset 6ce0fba99d02 (bug 1848406)
Backed out changeset affbf180e519 (bug 1848406)
Backed out changeset 80365ce68377 (bug 1848406)
Backed out changeset d75faab0301f (bug 1848406)
Backed out changeset 940c5fd39d25 (bug 1848406)
Backed out changeset 31016e129e99 (bug 1848406)
2024-04-10 22:10:33 +03:00
Paul Zuehlcke
263481b845
Bug 1848406 - Detect stateful bounces for window associated storages. r=bvandersloot,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D203607
2024-04-10 14:12:38 +00:00
Greg Stoll
1a4633232d
Bug 1875481 - Part 3: Add content analysis support to printing operations r=handyman,spohl,fluent-reviewers,kpatenio,smaug,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D200979
2024-04-10 00:15:47 +00:00
Stanca Serban
4c0f6b30c1
Backed out 3 changesets (bug 1875481) for basicWindowDotPrintTest related junit failures.
...
Backed out changeset cd024cb2768e (bug 1875481)
Backed out changeset 6b7be15cd017 (bug 1875481)
Backed out changeset d1da53c0673b (bug 1875481)
2024-04-09 05:56:47 +03:00
Greg Stoll
77cb63d2a3
Bug 1875481 - Part 3: Add content analysis support to printing operations r=handyman,spohl,fluent-reviewers,kpatenio,smaug,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D200979
2024-04-08 23:53:58 +00:00
Emilio Cobos Álvarez
de09ab0dd6
Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen
...
Sorry for the massive patch but I found it hard to split without
introducing a bunch of copies around...
This mostly makes necko and DOM agree on which strings to use, which
should result on less copies and conversions.
Differential Revision: https://phabricator.services.mozilla.com/D205601
2024-04-04 11:49:57 +00:00
Edgar Chen
2333e10d4e
Bug 1858627 - Suppress the paste contextmenu in paste event handler; r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D191131
2024-03-13 20:44:07 +00:00
Cristian Tuns
4e35ce0b65
Backed out 4 changesets (bug 1858627) for causing build bustages with "-p style --lib" CLOSED TREE
...
Backed out changeset 7f3f50c77406 (bug 1858627)
Backed out changeset 96327aab8126 (bug 1858627)
Backed out changeset 0655d0feb163 (bug 1858627)
Backed out changeset d3a1b3ac7611 (bug 1858627)
2024-03-13 05:23:51 -04:00
Mirko Brodesser
713b492cdd
Bug 1882498: add web API stubs for Trusted Types guarded behind a new pref. r=smaug,peterv
...
The TODOs corresponding to the stubs will be implemented in separate
patches.
Differential Revision: https://phabricator.services.mozilla.com/D202930
2024-03-13 08:24:18 +00:00
Edgar Chen
024516df40
Bug 1858627 - Suppress the paste contextmenu in paste event handler; r=nika
...
Depends on D202351
Differential Revision: https://phabricator.services.mozilla.com/D191131
2024-03-13 01:07:18 +00:00
Norisz Fay
6b73c14ada
Backed out 4 changesets (bug 1858627) for causing build bustage CLOSED TREE
...
Backed out changeset eaf5e6b7ddd4 (bug 1858627)
Backed out changeset 9efc1874ac78 (bug 1858627)
Backed out changeset 8f4ca2ab875b (bug 1858627)
Backed out changeset 02f94f12c3ef (bug 1858627)
2024-03-13 01:47:31 +02:00
Edgar Chen
6ffeee967b
Bug 1858627 - Suppress the paste contextmenu in paste event handler; r=nika
...
Depends on D202351
Differential Revision: https://phabricator.services.mozilla.com/D191131
2024-03-12 21:51:54 +00:00
Mark Banner
a27f34998d
Bug 1884623 - Update more jsm references in production code and docs in dom/. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D204183
2024-03-11 15:26:28 +00:00
Natalia Csoregi
c447e5b344
Backed out 4 changesets (bug 1858627) for causing clipboard/paste failures. CLOSED TREE
...
Backed out changeset ad694926aa45 (bug 1858627)
Backed out changeset aca702ea720f (bug 1858627)
Backed out changeset 1d5175296606 (bug 1858627)
Backed out changeset 05b957fe3079 (bug 1858627)
2024-03-06 11:52:20 +02:00
Edgar Chen
8f5c19fe0c
Bug 1858627 - Suppress the paste contextmenu in paste event handler; r=nika
...
Depends on D202351
Differential Revision: https://phabricator.services.mozilla.com/D191131
2024-03-06 00:30:59 +00:00
Andrew Sutherland
7db13a440a
Bug 1879259 - Use GlobalTeardownObserver for consistency on workers. r=dom-storage-reviewers,janv
...
This removes the manual global tracking which was only correctly hooked
up for windows, but missed other global types, especially workers.
Because GlobalTeardownObserver is reliably notified of when to
disconnect, it is able to "safely" hold a raw non-owning pointer which
simplifies cycle collection somewhat. (That design decision was
originally part of DOMEventTargetHelper which GlobalTeardownObserver
was extracted from.) It also provides a pre-cached window getter.
This test includes a WPT test that reliably fails without the fix and
passes with the fix.
Differential Revision: https://phabricator.services.mozilla.com/D201188
2024-02-16 17:06:48 +00:00
Paul Zuehlcke
3ca315fcd6
Bug 1865749 - Update CookieServiceChild cookie list on storage access grant. r=cookie-reviewers,bvandersloot,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D199266
2024-02-09 17:28:06 +00:00
Stanca Serban
7c361328fa
Backed out 2 changesets (bug 1865749) for causing mochitests failures.
...
Backed out changeset 967745446a3f (bug 1865749)
Backed out changeset 77f629fe7298 (bug 1865749)
2024-02-08 21:15:38 +02:00
Paul Zuehlcke
caf4932531
Bug 1865749 - Update CookieServiceChild cookie list on storage access grant. r=cookie-reviewers,bvandersloot,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D199266
2024-02-08 15:26:21 +00:00
Hiroyuki Ikezoe
28aff19c85
Bug 1875011 - Rename GetScrollPositionCSSPixels to GetRoundedScrollPositionCSSPixels. r=botond
...
Differential Revision: https://phabricator.services.mozilla.com/D198766
2024-01-17 06:27:05 +00:00
Emilio Cobos Álvarez
610e57d843
Bug 1873967 - Remove DocGroup::TryToLoadIframesInBackground. r=sefeng
...
This is somewhat complex, untested, never shipped, and predates
fission.
Remove it to simplify the code.
Depends on D198183
Differential Revision: https://phabricator.services.mozilla.com/D198184
2024-01-10 22:33:17 +00:00
Nika Layzell
38d90f11db
Bug 1873294 - Clean up logic for firing cross-process load events, r=smaug
...
Previously it may have been possible in some edge cases for us to send
`MaybeFireEmbedderLoadEvents` for a non-toplevel frame during docshell
tree teardown.
Differential Revision: https://phabricator.services.mozilla.com/D197825
2024-01-08 19:30:59 +00:00
Peter Van der Beken
fd17a13d91
Bug 1867945 - Use WeakPtr<Document> instead of nsWeakPtr. r=dom-core,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D195342
2023-12-07 18:47:44 +00:00
Iulian Moraru
18a0b69f80
Backed out changeset f03b7de13ed6 (bug 1867945) for causing leaks at WeakReference. CLOSED TREE
2023-12-07 16:24:40 +02:00
Peter Van der Beken
6f18106eee
Bug 1867945 - Use WeakPtr<Document> instead of nsWeakPtr. r=dom-core,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D195342
2023-12-07 13:42:07 +00:00
Paul Zuehlcke
2d4274179b
Bug 1865914 - Part 3, r=Gijs,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D194886
2023-12-01 21:22:41 +00:00
Sean Feng
7d09c7d6c5
Bug 1867623 - Clear some LCP related data early when the window is dying r=smaug
...
We expect nothing is going to be painted after this point, so
these data are not needed.
Differential Revision: https://phabricator.services.mozilla.com/D195144
2023-12-01 14:13:54 +00:00
Kagami Sascha Rosylight
c1e45850a8
Bug 1862244 - Add GlobalTeardownHelper r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D193295
2023-11-23 17:17:39 +00:00
Emilio Cobos Álvarez
02fbb2e9d3
Bug 1858977 - Don't throw on screen getters. r=smaug,webidl
...
The screen lifetime seems like it was a lot more complicated
in the past (looking at the comments in Window.webidl).
But nowadays it seems it can be more similar to the other
objects like VisualViewport etc.
Differential Revision: https://phabricator.services.mozilla.com/D193212
2023-11-10 09:29:14 +00:00
Tom Schuster
b900d3586a
Bug 1857488 - Set RTPCallerType when creating the global/realm in the browser. r=smaug,devtools-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D190677
2023-10-26 17:49:01 +00:00
Iulian Moraru
653333b281
Backed out 3 changesets (bug 1857488) for causing valgrind bustages related to Fingerprinting. CLOSED TREE
...
Backed out changeset f2961f6ece1f (bug 1857488)
Backed out changeset df299aac1633 (bug 1857488)
Backed out changeset b640c254626e (bug 1857488)
2023-10-23 19:32:13 +03:00
Tom Schuster
6f0742291c
Bug 1857488 - Set RTPCallerType when creating the global/realm in the browser. r=smaug,devtools-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D190677
2023-10-23 14:06:04 +00:00
Kagami Sascha Rosylight
e06c5d6dad
Bug 1859532 - Use IsSecureContextOrObjectIsFromSecureContext to match [SecureContext] behavior r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D191215
2023-10-17 19:42:29 +00:00
Emilio Cobos Álvarez
d02e297b2d
Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
...
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.
I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).
Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Narcis Beleuzu
fcf12c6459
Merge autoland to mozilla-central. a=merge
2023-09-27 06:45:58 +03:00
Olli Pettay
63e3dac2da
Bug 1843477, mark some classes being main thread only, r=mccr8
...
Depends on D187148
Differential Revision: https://phabricator.services.mozilla.com/D188958
2023-09-26 12:36:21 +00:00
Cosmin Sabou
1483b97d75
Backed out 6 changesets (bug 1843477) for causing hazards failures. CLOSED TREE
...
Backed out changeset 64b093aa12a9 (bug 1843477)
Backed out changeset bdcd84c938d1 (bug 1843477)
Backed out changeset 05c882dd0d9a (bug 1843477)
Backed out changeset 1de814e5820d (bug 1843477)
Backed out changeset 6a0e19a60a5d (bug 1843477)
Backed out changeset 48942aff586f (bug 1843477)
2023-09-26 05:32:28 +03:00
Olli Pettay
033c66276e
Bug 1843477, mark some classes being main thread only, r=mccr8
...
Depends on D187148
Differential Revision: https://phabricator.services.mozilla.com/D188958
2023-09-25 21:09:01 +00:00
Benjamin VanderSloot
d8ca4f5cea
Bug 1848783, part 6 - Revoke has storage access when the permission is revoked - r=anti-tracking-reviewers,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D187287
2023-09-21 01:48:49 +00:00
Benjamin VanderSloot
97b33d4ddc
Bug 1848783, part 5 - Move UsingStorageAccess onto the WindowContext to fix the storage access check for resource reuqests within subdocuments without active storage access but with permission r=timhuang,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D187138
2023-09-21 01:48:49 +00:00