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
Iulian Moraru
498b92b571
Backed out 9 changesets (bug 1848783, bug 1837168, bug 1835920) for causing multiple failures. CLOSED TREE
...
Backed out changeset ab1717421318 (bug 1848783)
Backed out changeset de5e1715c877 (bug 1848783)
Backed out changeset 1f64106e6667 (bug 1848783)
Backed out changeset e082ba20bbb2 (bug 1848783)
Backed out changeset cb56c5d713bf (bug 1848783)
Backed out changeset 735161c251e4 (bug 1848783)
Backed out changeset 3d1468ac6e84 (bug 1848783)
Backed out changeset 9ff5b92032cb (bug 1837168)
Backed out changeset 15cfb0c4f048 (bug 1835920)
2023-09-20 22:29:41 +03:00
Benjamin VanderSloot
eeb8f98769
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-20 16:14:40 +00:00
Benjamin VanderSloot
e0441af918
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-20 16:14:40 +00:00
Cosmin Sabou
805246368b
Backed out 9 changesets (bug 1837168, bug 1835920, bug 1848783) for causing storage-access-api wpt failures. CLOSED TREE
...
Backed out changeset 3fd66f8f5d65 (bug 1848783)
Backed out changeset a96afb6d05d6 (bug 1848783)
Backed out changeset 117132b000ac (bug 1848783)
Backed out changeset 3a14281b7d72 (bug 1848783)
Backed out changeset 7dc5f794364d (bug 1848783)
Backed out changeset 84ca25a557a6 (bug 1848783)
Backed out changeset 8bb89cf9587e (bug 1848783)
Backed out changeset 15a005bef445 (bug 1837168)
Backed out changeset a97bc1fd6637 (bug 1835920)
2023-09-20 04:41:18 +03:00
Benjamin VanderSloot
a373fb28e1
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-19 21:03:08 +00:00
Benjamin VanderSloot
b0352105fc
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-19 21:03:08 +00:00
Chris H-C
217642a103
Bug 1848708 - Convert all Glean Metric types to webidl. r=nika,janerik,perry.mcmanis,application-update-reviewers,nalexander
...
Though these are in essence plain objects that need no refcounting,
the presence of a NamedGetter on GleanLabeled means we need to register
everything with the wrappercache.
Paths not taken:
* Making a common utility for Maybe<T> -> dom::Nullable<T>
* GleanEvent::Record taking a dictionary instead of object
* TimerId as opaque Web IDL
* GleanDatetime accept JS Date as well as return it
(( Should make decent follow-ups ))
Differential Revision: https://phabricator.services.mozilla.com/D186267
2023-09-19 17:39:09 +00:00
Narcis Beleuzu
48b97a9a32
Backed out 7 changesets (bug 1848708) for bustages on TimingDistribution.cpp
...
Backed out changeset e63a855c0acf (bug 1848708)
Backed out changeset 242478709593 (bug 1848708)
Backed out changeset f1a77753fa0c (bug 1848708)
Backed out changeset d230a932c850 (bug 1848708)
Backed out changeset 1261ba650483 (bug 1848708)
Backed out changeset 06061d509ab5 (bug 1848708)
Backed out changeset 726d5138b1d2 (bug 1848708)
2023-09-19 19:18:00 +03:00
Chris H-C
456557ec79
Bug 1848708 - Convert all Glean Metric types to webidl. r=nika,janerik,perry.mcmanis,application-update-reviewers,nalexander
...
Though these are in essence plain objects that need no refcounting,
the presence of a NamedGetter on GleanLabeled means we need to register
everything with the wrappercache.
Paths not taken:
* Making a common utility for Maybe<T> -> dom::Nullable<T>
* GleanEvent::Record taking a dictionary instead of object
* TimerId as opaque Web IDL
* GleanDatetime accept JS Date as well as return it
(( Should make decent follow-ups ))
Differential Revision: https://phabricator.services.mozilla.com/D186267
2023-09-19 15:03:57 +00:00
Narcis Beleuzu
cf8743b301
Backed out 9 changesets (bug 1835920, bug 1848783, bug 1837168) for assertion failure on PermissionManager.cpp . CLOSED TREE
...
Backed out changeset 589241e4e1f6 (bug 1848783)
Backed out changeset 7446d643420d (bug 1848783)
Backed out changeset 1b5a505a9bc6 (bug 1848783)
Backed out changeset bfd4df9014d7 (bug 1848783)
Backed out changeset 01f053bbdb97 (bug 1848783)
Backed out changeset e1b829bfb8d1 (bug 1848783)
Backed out changeset f17d58a27f3c (bug 1848783)
Backed out changeset d21bdbf5baf1 (bug 1837168)
Backed out changeset a2d17b5958b8 (bug 1835920)
2023-09-19 16:15:26 +03:00
Benjamin VanderSloot
01de371f9e
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-19 11:11:19 +00:00
Benjamin VanderSloot
218d63a6cc
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-19 11:11:19 +00:00
Gregory Pappas
32906a3125
Bug 1428302 - Remove window.sidebar r=webidl,saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D188418
2023-09-17 15:34:47 +00:00
Markus Stange
a4e2816d54
Bug 1843484 - Use EventTarget* instead of nsISupports* for the event target parameter of the EventDispatcher::Dispatch methods. r=smaug
...
This saves a few QueryInterface calls on the hot path.
Differential Revision: https://phabricator.services.mozilla.com/D186977
2023-08-28 23:38:43 +00:00
Markus Stange
70bd936589
Bug 1843484 - Use EventTarget* instead of nsISupports* for the event target parameter of the nsContentUtils::Dispatch methods. r=smaug
...
This saves a few queryInterface calls on the hot path.
Differential Revision: https://phabricator.services.mozilla.com/D186976
2023-08-28 23:38:42 +00:00
Olli Pettay
22262b6f58
Bug 1843473 - Don't dispatch DOMActivate if there are no listeners for it, r=masayuki
...
Differential Revision: https://phabricator.services.mozilla.com/D186473
2023-08-18 06:01:16 +00:00
Tooru Fujisawa
63adc251d4
Bug 1847469 - Part 23: Use uint32_t for line and column in DescribeScriptedCaller* functions as a preparation to use column number types. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185761
2023-08-16 17:31:41 +00:00
Cristian Tuns
77d753c741
Backed out 27 changesets (bug 1847469) for causing spidermonkey bustages in Script.cpp CLOSED TREE
...
Backed out changeset 9d6e2651a013 (bug 1847469)
Backed out changeset 9b72d668efd2 (bug 1847469)
Backed out changeset 86abf5cf0a22 (bug 1847469)
Backed out changeset 46833087f8ac (bug 1847469)
Backed out changeset f3e2207fdeec (bug 1847469)
Backed out changeset aed75776cfff (bug 1847469)
Backed out changeset 8292a38bd99f (bug 1847469)
Backed out changeset 1320f83fb8c7 (bug 1847469)
Backed out changeset df9f925f9837 (bug 1847469)
Backed out changeset 69f32cf1862a (bug 1847469)
Backed out changeset b2ddddec8818 (bug 1847469)
Backed out changeset 056eed7abc97 (bug 1847469)
Backed out changeset 5df4f43ac0bf (bug 1847469)
Backed out changeset cb57923f6532 (bug 1847469)
Backed out changeset a0993f2a2195 (bug 1847469)
Backed out changeset 782499fbedf2 (bug 1847469)
Backed out changeset cf84fb98c5e1 (bug 1847469)
Backed out changeset 1fa5ab59814b (bug 1847469)
Backed out changeset f5f78944df81 (bug 1847469)
Backed out changeset aa14337bf5c6 (bug 1847469)
Backed out changeset 6757db4575d7 (bug 1847469)
Backed out changeset 236ff135701e (bug 1847469)
Backed out changeset 9b4d5b435020 (bug 1847469)
Backed out changeset a0f789621bc8 (bug 1847469)
Backed out changeset c19b81f48055 (bug 1847469)
Backed out changeset b4521e546d7e (bug 1847469)
Backed out changeset f26a10289316 (bug 1847469)
2023-08-16 07:08:01 -04:00
Tooru Fujisawa
982cdf0ff7
Bug 1847469 - Part 23: Use uint32_t for line and column in DescribeScriptedCaller* functions as a preparation to use column number types. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185761
2023-08-16 10:26:33 +00:00
Benjamin VanderSloot
3d8d18cfc1
Bug 1835907, part 5 - Refactor the window's mStorageAccessPermissionGranted variable and its Getters to a more accurate name: mUsingStorageAccess - r=anti-tracking-reviewers,pbz
...
This probably should have been done earlier, but became obvious with uses of Document::HasStorageAccessPermissionGrated in this stack.
Differential Revision: https://phabricator.services.mozilla.com/D184825
2023-08-15 13:04:05 +00:00
Cosmin Sabou
819840f3b4
Backed out 6 changesets (bug 1835907) for causing multiple failures. CLOSED TREE
...
Backed out changeset 91ef29afec50 (bug 1835907)
Backed out changeset 989479621780 (bug 1835907)
Backed out changeset 86e3f98ceb31 (bug 1835907)
Backed out changeset 4790e44c234c (bug 1835907)
Backed out changeset bb9f48eec5bf (bug 1835907)
Backed out changeset 74f90708260a (bug 1835907)
2023-08-14 22:18:10 +03:00
Benjamin VanderSloot
dfe479593f
Bug 1835907, part 5 - Refactor the window's mStorageAccessPermissionGranted variable and its Getters to a more accurate name: mUsingStorageAccess - r=anti-tracking-reviewers,pbz
...
This probably should have been done earlier, but became obvious with uses of Document::HasStorageAccessPermissionGrated in this stack.
Differential Revision: https://phabricator.services.mozilla.com/D184825
2023-08-14 18:02:47 +00:00
Chris H-C
d2467e9003
Bug 1848146 - Allow Glean access to about: pages that are secure chrome UI r=nika
...
I thought about adding a new flag, but all the current about: pages with
IS_SECURE_CHROME_UI should have Glean, and from how it's documented and used,
I think it's low-risk for future users of that flag as well.
Differential Revision: https://phabricator.services.mozilla.com/D185939
2023-08-11 17:00:06 +00:00
Logan Rosen
847ac3aef0
Bug 1091187 - remove unused arguments and check from UpdateCommands r=dom-core,webidl,masayuki,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D185385
2023-08-10 04:09:08 +00:00
Olli Pettay
3f2cf8ccea
Bug 1843239, optimize Location.hash, r=peterv,dom-core
...
Differential Revision: https://phabricator.services.mozilla.com/D183788
2023-08-07 12:31:25 +00:00
Peter Van der Beken
5dc8782829
Bug 1846277 - Untangle nsGlobalWindow*.h includes. r=dom-core,media-playback-reviewers,sessionstore-reviewers,padenot,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D184978
2023-08-02 20:41:49 +00:00
Gregory Pappas
90e64be6e1
Bug 1177968 - Remove dom.caches.enabled pref r=webidl,devtools-reviewers,saschanaz,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D183849
2023-07-20 07:26:11 +00:00
Gregory Pappas
8f97726751
Bug 1842451 - Remove dom.requestIdleCallback.enabled pref r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D183799
2023-07-18 08:00:26 +00:00
Mathew Hodson
3aa1fc98c1
Bug 1832733 - Unexpose sizeToContent() in Nightly. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D177867
2023-07-11 14:39:29 +00:00
Gregory Pappas
3189ebd376
Bug 1400140 - Make window.content chrome-only, remove dom.window.content.untrusted.enabled r=saschanaz,webidl,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D183216
2023-07-11 08:28:37 +00:00