Commit Graph

2229 Commits

Author SHA1 Message Date
Botond Ballo
20586c03d8 Bug 1945717 - Add some logging to codepaths handling the 980px desktop viewport width. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D237991
2025-02-13 06:59:48 +00:00
Botond Ballo
10cd44fb94 Bug 1945717 - Use the larger of the screen width or 980px as the initial containing block size in desktop mode. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D237286
2025-02-13 06:59:47 +00:00
Adam Vandolder
23e9c9915a Bug 1890747 - Track Navigation history entries. r=dom-core,farre
Differential Revision: https://phabricator.services.mozilla.com/D219007
2025-02-13 03:11:20 +00:00
Emilio Cobos Álvarez
300a114109 Bug 1947023 - Propagate hidden-under-embedder properly to nested tops. r=nika,devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D237502
2025-02-10 17:50:57 +00:00
Tom Schuster
b295216433 Bug 1940273 - Assert that all loaded chrome: documents have some CSP. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D235302
2025-02-07 12:04:52 +00:00
Botond Ballo
54f22d2cc7 Bug 1654697 - Use the larger of the screen width or 980px as the initial containing block size on mobile sites which do not specify a meta viewport tag. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D236667
2025-02-07 04:39:06 +00:00
Alexandru Marc
89648f4e35 Backed out 3 changesets (bug 1940273) for causing mass failures
Backed out changeset 9a6898e9f3a5 (bug 1940273)
Backed out changeset f9e293e9ee57 (bug 1940273)
Backed out changeset 312c5cc5dc24 (bug 1940273)
2025-02-05 21:09:12 +02:00
Tom Schuster
553e25ffcf Bug 1940273 - Assert that all loaded chrome: documents have some CSP. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D235302
2025-02-05 15:41:11 +00:00
Goloman Adrian
857a15f541 Backed out changeset bd833efe4ab5 (bug 1654697) for causing reftest failures @ownscale-svg-1b.html. 2025-02-05 02:03:21 +02:00
Botond Ballo
fdf062eaf6 Bug 1654697 - Use the larger of the screen width or 980px as the initial containing block size on mobile sites which do not specify a meta viewport tag. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D236667
2025-02-04 19:32:26 +00:00
Tim Huang
93f97a9790 Bug 1944915 - Disable tracker cookie blocking for the test browser_noStorageAccessAutoGrant_thirdPartyTracker.js. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D236312
2025-02-01 20:03:12 +00:00
Boris Chiou
e845887837 Bug 1914322 - Perform pending operations when the view transition is animating. r=view-transitions-reviewers,emilio
Basically, we have to schedule the performing pending operations after
activating the view transitions, and stop to do that once we don't have
active animations.

There is one known issue: we always timeout even if we activate the view
transitions successfully, so I clear the timeout once we start the animations.
Otherwise, we may always interrupt the long animations whose
durations are longer than `dom.viewTransitions.timeout-ms`. However, I
guess we may still need a timeout for it. We probably need to figure out
what to do in the future.

Note that `/css/css-view-transitions/paused-animation-at-end.html.ini`
is failed because we don't have any animations. This is probably blocked by
the dynamic UA stylesheet (Bug 1914324).

Also, update some other tests to avoid getting javascript errors:
`JavaScript error: , line 0: uncaught exception: Object`.

Differential Revision: https://phabricator.services.mozilla.com/D236215
2025-01-31 02:32:03 +00:00
Henri Sivonen
7a53ba39fe Bug 1944792 - Use UTF8String in Document::open. r=webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D236106
2025-01-30 11:06:04 +00:00
Frédéric Wang
c3a1a2e1c2 Bug 1944483 - Document::WriteCommon should perform Trusted Types checks earlier. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D235922
2025-01-30 04:47:18 +00:00
Tim Huang
e2487b8177 Bug 1943537 - Introduce a pref to exclude AutoGrant from third-party trackers. r=bvandersloot,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D235586
2025-01-29 14:56:08 +00:00
Valentin Gosu
0461ae216d Bug 1943262 - Refactor instantiation of nsEffectiveTLDService r=cookie-reviewers,anti-tracking-reviewers,permissions-reviewers,emz
This ensures that the instantiation of the service always returns the
same singleton. I also changed calls to nsEffectiveTLDService::GetInstance
to use mozilla::components::EffectiveTLD::Service() instead.

Differential Revision: https://phabricator.services.mozilla.com/D235288
2025-01-28 10:56:50 +00:00
aiunusov
5cca3ceec2 Bug 1926181 - Tweak TimeoutManager for usage with Workers, r=smaug,dom-worker-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226433
2025-01-27 11:46:06 +00:00
Emilio Cobos Álvarez
c48384abd5 Bug 1943832 - Select the node contents rather than the node for spellcheck. r=masayuki
SelectNodeContents() is constant time, while SelectNode() relies on
knowing the index of the node in its parent, which is quadratic with
many contenteditable siblings, see bug 1943746.

Differential Revision: https://phabricator.services.mozilla.com/D235552
2025-01-26 14:03:13 +00:00
Emilio Cobos Álvarez
d5d33843fb Bug 1943542 - Remove contenteditable / EditorOverride sheet. r=masayuki
Move the relevant bits to html.css or other UA sheets, and use faster
things than attribute selectors (read: classes) for resizers and such
things.

The hidden class can just be a hidden attribute since we don't otherwise
style these.

The cursor can just be set at the resizer / grabber creation time.

One known behavior change other than this is not styling using the
_moz_abspos attribute. The reasoning for this is that these are content
nodes, and in general having these kinds of rules for content nodes
isn't great. E.g. these two pages behave differently:

 * data:text/html,<div _moz_abspos=black>boo</div>
 * data:text/html,<div _moz_abspos=black>boo</div><div contenteditable></div>

We could use the style attribute for this, I suppose, just like we set
the position or what not, but then we need to save / restore as needed
or something. I'd rather not change the stacking order or backgrounds or
what not, too.

If you feel very strongly about that piece of functionality of the
abspos editor I could try to restore it somehow. But I honestly rather
not.

The rest of the stuff should just work.

Differential Revision: https://phabricator.services.mozilla.com/D235319
2025-01-26 12:31:18 +00:00
Florian Quèze
9609e47f62 Bug 1879329 - script generated replacement of the GleanMetrics.h includes, r=chutten,valentin,media-playback-reviewers,cookie-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,rkraesig,emz,aabh,padenot.
Differential Revision: https://phabricator.services.mozilla.com/D234744
2025-01-21 11:21:45 +00:00
Frédéric Wang
51c2edda75 Bug 1901492 - Introduce RequireTrustedTypesForDirectiveState enum for CSP. r=smaug
Extend the hasPolicyWithRequireTrustedTypesForDirective boolean on
nsIContentSecurityPolicy to an enum in order to indicate whether there
is actually a require-trusted-types-for directive with "enforce"
disposition. Because there is currently only one sink group, we can
use this enum in GetTrustedTypesCompliantString() to determine whether
violations must be blocked, and perform violation reporting in an
independent function.

This will allow to make GetTrustedTypesCompliantString() work with
workers, by testing the enum on the worker thread and reporting
violations on the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D233506
2025-01-17 13:35:39 +00:00
Andreas Farre
3806855c63 Bug 1935609 - Part 1: Rename synced field to IsSyntheticDocumentContainer. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D234474
2025-01-17 11:16:36 +00:00
Butkovits Atila
cdcf9a4b58 Backed out changeset c3aa404cb15e (bug 1937488) for causing regressions. a=backout 2025-01-17 11:58:47 +02:00
Benjamin VanderSloot
986aa04113 Bug 1937102 - Fix protections UI tests that rely on unpartitioning storage - r=anti-tracking-reviewers,cookie-reviewers,webcompat-reviewers,timhuang,twisniewski
This is where I found and addressed a bug with surplus console messages when we enabled APS

Differential Revision: https://phabricator.services.mozilla.com/D233915
2025-01-16 15:39:24 +00:00
Emilio Cobos Álvarez
e2b1d953d0 Bug 1940688 - Add a pref to make top level pages always active for the purpose of refresh driver throttling and such. r=layout-reviewers,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D233937
2025-01-15 20:43:02 +00:00
Emilio Cobos Álvarez
3c1b64acfe Bug 1940412 - Add batch removal information to nsIMutationObserver::ContentWillBeRemoved, and use it in some trivial-ish places. r=dom-core,credential-management-reviewers,sefeng
The idea is to use it on the style (via PresShell->RestyleManager) to do
invalidation faster in cases like bug 1940405.

Differential Revision: https://phabricator.services.mozilla.com/D233547
2025-01-15 20:39:40 +00:00
Adam Vandolder
d345c782ea Bug 1937488 - Create the document in parseHTMLUnsafe without a principal. r=hsivonen,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D233753
2025-01-14 17:10:22 +00:00
Tim Huang
c34cfecfda Bug 1933428 - Part 3: Recompute partitionKey for top-level documents if required. r=bvandersloot,smaug
The principal of a document might be changed during loading in certain
situation, e.g. a sandboxed document. In this case, we need to recompute
the partitionKey of the document to reflect the change on the principal.

Differential Revision: https://phabricator.services.mozilla.com/D230819
2025-01-14 08:56:10 +00:00
Tim Huang
fdfe79f563 Bug 1915355 - Part 5: Exempt third-party cookie blocking if the channel is on the exception list. r=cookie-reviewers,bvandersloot,valentin
Differential Revision: https://phabricator.services.mozilla.com/D223384
2025-01-10 08:24:30 +00:00
Tim Huang
5cd3f25e6a Bug 1915355 - Part 2: Propagate the isOn3PCBExcpetionList to workers. r=edenchuang
We need to propagate the isOn3PCBExceptionList flag from the nsILoadInfo
to workers so that the requests from workers can have the flag to exempt
third-party cookie blocking. We will also tackle the fetch request in
the worker scope in the patch.

Depends on D223380

Differential Revision: https://phabricator.services.mozilla.com/D223936
2025-01-10 08:24:28 +00:00
Stanca Serban
3eac2f1354 Backed out 8 changesets (bug 1915355) for causing xpcshell failures.
Backed out changeset d292c3a2592d (bug 1915355)
Backed out changeset 3386ee00459e (bug 1915355)
Backed out changeset 98848e63dfbf (bug 1915355)
Backed out changeset b668d0c685e8 (bug 1915355)
Backed out changeset 08acd8256071 (bug 1915355)
Backed out changeset 3ae9463ee988 (bug 1915355)
Backed out changeset 2dd416f1b847 (bug 1915355)
Backed out changeset 17107bbcf8c8 (bug 1915355)
2025-01-08 23:36:08 +02:00
Tim Huang
26d9df1577 Bug 1915355 - Part 5: Exempt third-party cookie blocking if the channel is on the exception list. r=cookie-reviewers,bvandersloot,valentin
Differential Revision: https://phabricator.services.mozilla.com/D223384
2025-01-08 19:25:59 +00:00
Tim Huang
480c19889f Bug 1915355 - Part 2: Propagate the isOn3PCBExcpetionList to workers. r=edenchuang
We need to propagate the isOn3PCBExceptionList flag from the nsILoadInfo
to workers so that the requests from workers can have the flag to exempt
third-party cookie blocking. We will also tackle the fetch request in
the worker scope in the patch.

Depends on D223380

Differential Revision: https://phabricator.services.mozilla.com/D223936
2025-01-08 19:25:58 +00:00
Sandor Molnar
126c23f8df Backed out 11 changesets (bug 1933428) for causing mochitest failures @ test_iframe_sandbox_popups_inheritance.html CLOSED TREE
Backed out changeset 688df3cbad90 (bug 1933428)
Backed out changeset 94c12c68067f (bug 1933428)
Backed out changeset 85aab9235de5 (bug 1933428)
Backed out changeset b2cfb42e31bf (bug 1933428)
Backed out changeset d31e0480bbd9 (bug 1933428)
Backed out changeset b122f021875e (bug 1933428)
Backed out changeset fc400e4ab086 (bug 1933428)
Backed out changeset 3db923cf4bb8 (bug 1933428)
Backed out changeset 9878302a4cb4 (bug 1933428)
Backed out changeset af92deb55302 (bug 1933428)
Backed out changeset f7b1a3832630 (bug 1933428)
2025-01-07 18:23:00 +02:00
Tim Huang
254411e25e Bug 1933428 - Part 3: Recompute partitionKey for top-level documents if required. r=bvandersloot,smaug
The principal of a document might be changed during loading in certain
situation, e.g. a sandboxed document. In this case, we need to recompute
the partitionKey of the document to reflect the change on the principal.

Differential Revision: https://phabricator.services.mozilla.com/D230819
2025-01-07 10:39:57 +00:00
Alexandru Marc
0c1f8f4e28 Backed out 7 changesets (bug 1915355) for causing performance regressions CLOSED TREE
Backed out changeset 77b4cc920fe4 (bug 1915355)
Backed out changeset da9446e06954 (bug 1915355)
Backed out changeset 20708fe16d2a (bug 1915355)
Backed out changeset 7c4b003d1e48 (bug 1915355)
Backed out changeset 36163490219b (bug 1915355)
Backed out changeset 8f867025b79b (bug 1915355)
Backed out changeset 3d647f81adb9 (bug 1915355)
2024-12-30 13:02:45 +02:00
Sean
63d5a0f251 Bug 1938947 - Expose responseStatus and responseStatusText for about:neterror r=necko-reviewers,fluent-reviewers,bolsson,kershaw,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D223417
2024-12-23 18:22:08 +00:00
Alexandru Marc
d3a6a84fb2 Backed out 4 changesets (bug 1325876) for causing wd failures @ navigation.spec.js CLOSED TREE
Backed out changeset b29ef3f14bf7 (bug 1325876)
Backed out changeset f8add6e2ef93 (bug 1325876)
Backed out changeset 41cc884f84c1 (bug 1325876)
Backed out changeset 014c9c77393a (bug 1325876)
2024-12-21 04:41:41 +02:00
Sean
de6b0fce66 Bug 1325876 - Expose responseStatus and responseStatusText for about:neterror r=necko-reviewers,fluent-reviewers,bolsson,kershaw,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D223417
2024-12-20 22:12:10 +00:00
Stanca Serban
29fc723e46 Backed out 4 changesets (bug 1325876) for causing wpt failures in 404-with-early-hints.h2.window.html. CLOSED TREE
Backed out changeset 1c2e847c0632 (bug 1325876)
Backed out changeset 8b56e7a25cdd (bug 1325876)
Backed out changeset 55446c955dbd (bug 1325876)
Backed out changeset a4ecb980de87 (bug 1325876)
2024-12-18 21:07:50 +02:00
Sean
7475fefd84 Bug 1325876 - Expose responseStatus and responseStatusText for about:neterror r=necko-reviewers,fluent-reviewers,bolsson,kershaw,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D223417
2024-12-18 15:54:19 +00:00
Mirko Brodesser
6d5d3ce67e Bug 1938069: remove superfluous whitespace in parseHTMLUnsafe's sink string. r=smaug
Test is added in <https://phabricator.services.mozilla.com/D232363>.

Differential Revision: https://phabricator.services.mozilla.com/D232487
2024-12-18 11:31:14 +00:00
Tim Huang
5af4ce75e1 Bug 1915355 - Part 5: Exempt third-party cookie blocking if the channel is on the exception list. r=cookie-reviewers,bvandersloot,valentin
Differential Revision: https://phabricator.services.mozilla.com/D223384
2024-12-17 21:44:37 +00:00
Tim Huang
2beb9afe1b Bug 1915355 - Part 2: Propagate the isOn3PCBExcpetionList to workers. r=edenchuang
We need to propagate the isOn3PCBExceptionList flag from the nsILoadInfo
to workers so that the requests from workers can have the flag to exempt
third-party cookie blocking. We will also tackle the fetch request in
the worker scope in the patch.

Differential Revision: https://phabricator.services.mozilla.com/D223936
2024-12-17 21:44:36 +00:00
Norisz Fay
31b3da5965 Backed out 3 changesets (bug 1325876) for causing bc failures on browser_subdocument_downgrade.js CLOSED TREE
Backed out changeset aede2883237a (bug 1325876)
Backed out changeset decca0d92c74 (bug 1325876)
Backed out changeset 0bda3da380ac (bug 1325876)
2024-12-18 02:21:37 +02:00
Sean
4025a41f26 Bug 1325876 - Expose responseStatus and responseStatusText for about:neterror r=necko-reviewers,fluent-reviewers,bolsson,kershaw,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D223417
2024-12-17 21:01:09 +00:00
longsonr
f80aac16d2 Bug 1937736 - Style of display:none mapped attributes is not updated when changed r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D232327
2024-12-17 14:05:05 +00:00
Alexandru Marc
424d306b7d Backed out 7 changesets (bug 1915355) for causing build bustages @ ThirdPartyCookieBlockingExceptions.cpp CLOSED TREE
Backed out changeset 5e5278038a79 (bug 1915355)
Backed out changeset d2381f88168a (bug 1915355)
Backed out changeset 675785853d7a (bug 1915355)
Backed out changeset de6a26d3e3df (bug 1915355)
Backed out changeset b2934cae3c23 (bug 1915355)
Backed out changeset e7077b00cfc1 (bug 1915355)
Backed out changeset c5d7f4e7e839 (bug 1915355)
2024-12-17 12:39:21 +02:00
Tim Huang
e608835f5e Bug 1915355 - Part 5: Exempt third-party cookie blocking if the channel is on the exception list. r=cookie-reviewers,bvandersloot,valentin
Differential Revision: https://phabricator.services.mozilla.com/D223384
2024-12-17 08:57:31 +00:00
Tim Huang
ccba861132 Bug 1915355 - Part 2: Propagate the isOn3PCBExcpetionList to workers. r=edenchuang
We need to propagate the isOn3PCBExceptionList flag from the nsILoadInfo
to workers so that the requests from workers can have the flag to exempt
third-party cookie blocking. We will also tackle the fetch request in
the worker scope in the patch.

Differential Revision: https://phabricator.services.mozilla.com/D223936
2024-12-17 08:57:30 +00:00