Commit Graph

799330 Commits

Author SHA1 Message Date
Dão Gottwald
3e72dba73e Bug 1774927 - Account for menu_openFirefoxView currently only existing in Nightly builds. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149985
2022-06-22 13:44:23 +00:00
pmcmanis
9240ee3749 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D149569
2022-06-22 13:41:18 +00:00
Cristian Tuns
18f109320e Backed out changeset 2426eb39bdb7 (bug 1774169) for causing mochitest failures on browser_newtab_userTypedValue.js CLOSED TREE 2022-06-22 10:34:11 -04:00
Bogdan Szekely
01435fe423 Backed out changeset 485960624319 (bug 1775194) for causing mochitest failures on test_serviceworker_interfaces.html CLOSED TREE 2022-06-22 17:18:14 +03:00
Bogdan Szekely
e43c058bda Backed out changeset 7b707ff8a7d1 (bug 1769154) for causing xpcshell failures on test_system_upgrades.js 2022-06-22 17:17:10 +03:00
Sarah Clements
f729c6d7ab Bug 1774169 - Add observer, keyboard nav & tests to Tab Pickup list r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149991
2022-06-22 13:35:13 +00:00
serge-sans-paille
88f47b8906 Bug 1775154 - Extra cleanup of dom/, extensions/, hal/, netwerk/ and storage/ includes r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D149806
2022-06-22 13:31:25 +00:00
Masayuki Nakano
d292b994f8 Bug 1770877 - part 37: Make HTMLEditor::HandleInsertLinefeed stop touching Selection directly r=m_kato
Note that the odd path which always returns `NS_ERROR_FAILURE` is not covered by
the tests.  Therefore, this patch adds `MOZ_ASSERT` to make somebody hit it and
report a bug.

Differential Revision: https://phabricator.services.mozilla.com/D149108
2022-06-22 13:14:17 +00:00
Sean Feng
0c4ca55aa8 Bug 1731778 - Expect some anonymous iframe tests to fail r=smaug
Looks like with the COEP:credentialless implementation, some anonymous
iframe tests start to fail. I didn't investigate this because we don't
support anonymous iframe at the moment, so it's not worth to look into
it.

Differential Revision: https://phabricator.services.mozilla.com/D149945
2022-06-22 13:13:40 +00:00
Sean Feng
c575e60261 Bug 1731778 - Implement COEP: credentialless for cache storage r=edenchuang
Spec: https://fetch.spec.whatwg.org/#ref-for-cross-origin-resource-policy-internal-check

This purpose of this patch is just to implement the spec.

One noticeable thing I did in the patch is I made `CacheResponse` to
include the `credentials mode` of the initial request. Consider the
below scenario:

  1. Create a fetch request with a URL and a specific credential_mode, and put it into cache
  2. Call cache.match by using a URL, but without credential_mode
  3. cache.match() result should be filtered according to the initial request's credential_mode

When applying the `response’s request-includes-credentials is true`
check, the initial request's `credential_mode` is needed because
`request-includes-credentials` is judged by the `credential_mode`.

The rest of the changes are just normal spec alignments.

Differential Revision: https://phabricator.services.mozilla.com/D147803
2022-06-22 13:13:39 +00:00
Sean Feng
80b0c0f55b Bug 1731778 - Implement COEP: credentialless r=smaug,necko-reviewers,kershaw
Spec: https://html.spec.whatwg.org/multipage/#coep:coep-credentialless

Credentialless is a new cross-origin embedder policy which allows us
to not enforcing CORP when loading cross-origin resources while
providing SharedArrayBuffer.

There are two main things involved here:
  1. Fetching cross-origin no-CORS resources omits credentials
     - This is done by applying `LOAD_ANONYMOUS` flag to the request
  2. Other requests sent with credentials require the server's explicit
  permission through the CORS protocol or the CORS header
     - This is done by expanding `ProcessCrossOriginResourcePolicyHeader`
     function to apply the necessary checks.

Differential Revision: https://phabricator.services.mozilla.com/D147802
2022-06-22 13:13:39 +00:00
Frederik Braun
d36bbbc700 Bug 1775194 - disable reporting API r=ckerschb
This disables the outdated, incorrect implementation of the
Reporting API. The current implementation was only enabled
on Nightly builds, but given its current state it does not
even make sense there.

Differential Revision: https://phabricator.services.mozilla.com/D149873
2022-06-22 13:09:21 +00:00
Masayuki Nakano
4f7e0e9717 Bug 1770877 - part 36: Make HTMLEditor::CreateStyleForInsertText stop touching Selection directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149107
2022-06-22 13:07:05 +00:00
Joel Maher
0f3990e1cb Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 13:03:46 +00:00
Masayuki Nakano
d97c255cf8 Bug 1770877 - part 35: Make HTMLEditor::SetInlinePropertyOnNode and HTMLEditor::SetInlinePropertyOnNodeImpl stop touching Selection directly r=m_kato
Note that `CSSEditUtils` does not change `Selection` except
`RemoveCSSInlineStyleWithTransaction` which is used only by aligning in a block.
Therefore, this patch does not touch `CSSEditUtils`.

Differential Revision: https://phabricator.services.mozilla.com/D149106
2022-06-22 12:57:51 +00:00
Mathew Hodson
05c1e827cb Bug 1325637 - Remove browser.preferences.instantApply pref. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149699
2022-06-22 12:39:16 +00:00
Masayuki Nakano
d8cdcb51a1 Bug 1770877 - part 34: Make HTMLEditor::RemoveStyleInside stop touching Selection directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149105
2022-06-22 12:36:37 +00:00
Bogdan Szekely
5f290bd70c Backed out 2 changesets (bug 1774287) for causing node test failures on globals.js CLOSED TREE
Backed out changeset 8d85ca22341e (bug 1774287)
Backed out changeset 608869fc839e (bug 1774287)
2022-06-22 15:37:00 +03:00
Bogdan Szekely
b56ae513c7 Backed out changeset 86e9449aba35 (bug 1463600) for causing xpcshell failures on test_css-properties-db.js 2022-06-22 15:35:33 +03:00
Emilio Cobos Álvarez
9fad2ec27a Bug 1775282 - Enable color-mix in high-contrast test. DONTBUILD
MANUAL PUSH: Trivial reftest manifest tweak.
2022-06-22 14:22:45 +02:00
Alexandra Borovova
f49bf0fabd Bug 1741861 - Move shared logic from _subscribeEvent and _unsubscribeEvent. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149401
2022-06-22 12:15:08 +00:00
Jan de Mooij
6a2f271bac Bug 1774848 part 3 - Push a profiler entry when resuming generators and async functions in the C++ interpreter. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D149864
2022-06-22 12:07:09 +00:00
Jan de Mooij
3878b76d96 Bug 1774848 part 2 - Add testing function and tests for reading the interpreter profiling stack. r=iain
`readGeckoProfilingStack` only reads the JIT frames. This adds a similar function
for C++ interpreter frames.

Differential Revision: https://phabricator.services.mozilla.com/D149863
2022-06-22 12:07:08 +00:00
Jan de Mooij
8a9dfe40a6 Bug 1774848 part 1 - Improve assertion in EnterScript. r=iain
We push a new `InterpreterFrame` for generators/async nowadays, so the flag should
never be set.

Differential Revision: https://phabricator.services.mozilla.com/D149862
2022-06-22 12:07:08 +00:00
Tooru Fujisawa
edc20fad88 Bug 1774287 - Part 2: Add helpers.getIsTopLevelScript. r=Standard8
Depends on D149606

Differential Revision: https://phabricator.services.mozilla.com/D149607
2022-06-22 12:05:26 +00:00
Tooru Fujisawa
74881f888d Bug 1774287 - Part 1: Add helpers.getIsGlobalThis and use it when handling global variable. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D149606
2022-06-22 12:05:25 +00:00
Mark Banner
5526fffc2a Bug 1775312 - Add simple tests for user and policy engines. r=mak
Depends on D149929

Differential Revision: https://phabricator.services.mozilla.com/D149930
2022-06-22 10:51:13 +00:00
Mark Banner
c362058eb9 Bug 1775312 - When reporting an empty submission url to Glean, use a dummy value as it requires a non-empty string. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D149929
2022-06-22 10:51:12 +00:00
Martin Robinson
83640bbee6 Bug 1463600 - Implement CSS 'contain: style' r=emilio
Add an implementation of CSS `contain: style`. This introduces two new
data structures, the ContainStyleScope and ContainStyleScopeManager.

ContainStyleScope manages one `contain: style` "world" which has its own
counter and quote lists. The contents of these lists depend on their
parent scopes, but are not affected by their children.
ContainStyleScopeManager manages a tree of scopes starting at a root
scope which is outside of any `contain: style` element.

Scopes are stored in a hash table that is keyed off of the nsIContent
which establishes the `contain: style` scope. When modifying quote or
content lists, the ContainStyleScopeManager is responsible for finding
the appropriate `contain: style` scope to modify.

Perhaps the most complex part of this is that counters and quotes have
read access to the state of counters and quotes that are in ancestor
`contain: style` scopes. In the case of counters, USE nodes that are at
the beginning of counter lists might have a counter scope that starts in
an ancestor `contain: style` scope. When nsCounterNode::SetScope() is
called, the code may look upward in the `contain: style` scope tree to
find the start of the counter scope. In the case of quotes, the first
node in the quote list must look for the state of quotes in ancestor
`contain: style` scopes.

Differential Revision: https://phabricator.services.mozilla.com/D149508
2022-06-22 10:42:34 +00:00
Hubert Boma Manilla
33a1ae1c8f Bug 1775217 - [devtools] Update MDN compat data (2022 June) r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D149971
2022-06-22 10:30:03 +00:00
Gabriele Svelto
7ad6cca012 Bug 1774298 - Install watchman only on Debian 11+ r=andi
Differential Revision: https://phabricator.services.mozilla.com/D149358
2022-06-22 10:08:23 +00:00
Gabriele Svelto
1cc62be3ff Bug 1775117 - Fix Windows builds when using version 10.0.22621.0 of the Windows SDK r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D149868
2022-06-22 10:07:43 +00:00
Gabriele Svelto
48c14e7d51 Bug 1713160 - Avoid crashes when setting the description of the minidump generation thread r=rkraesig
Differential Revision: https://phabricator.services.mozilla.com/D149869
2022-06-22 10:06:25 +00:00
Cristian Tuns
6d0ba065e3 Backed out changeset e863269355cd (bug 1774834) for causing python failures on test_vendor.py CLOSED TREE 2022-06-22 07:14:59 -04:00
James Graham
94d8b3ec57 Bug 1775222 - Fix wdspec test failures after sync, a=testonly CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D149977
2022-06-22 10:58:36 +00:00
Manuel Bucher
1585146833 no bug - Fix indentation of bullet list in ipdl document DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D149969
2022-06-22 09:52:06 +00:00
serge-sans-paille
b122b6d13d Bug 1774865 - extra cleanup mozglue, security, intl and netwerk includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D149670
2022-06-22 09:51:52 +00:00
serge-sans-paille
5b0ab0f5a6 Bug 1775340 - Cleanup gfx/ includes r=sylvestre
This one is a bit messy so I was very conservative on the changes.

Differential Revision: https://phabricator.services.mozilla.com/D149922
2022-06-22 09:50:52 +00:00
Emilio Cobos Álvarez
5f68dd7dd3 Bug 1775310 - Add some accent-color-based dark mode system colors on Windows. r=handyman
This matches UWP apps like Settings on Windows 11, and what we do for other
desktop platforms too.

The system colors match the ones from Win32 otherwise, but using UIUtils we can
access the accent color pallete from UWP apps.

Add a pref just to be safe in any case.

Differential Revision: https://phabricator.services.mozilla.com/D149905
2022-06-22 09:47:27 +00:00
serge-sans-paille
a909699ad6 Bug 1774863 - Cleanup mfbt includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D149669
2022-06-22 09:47:14 +00:00
Bogdan Szekely
02617d2f1e Merge mozilla-central to autoland. CLOSED TREE 2022-06-22 12:59:05 +03:00
Emilio Cobos Álvarez
3ef07530a4 Bug 1775247 - Enable widget.use-theme-accent on Windows. r=cmartin
Just like we do in all other platforms where we use the system accent
color.

Differential Revision: https://phabricator.services.mozilla.com/D149878
2022-06-22 09:45:07 +00:00
Emilio Cobos Álvarez
fe85e4d99d Bug 1775247 - Make AccentColor/Text consistent with accent-color: auto. r=mstange
It'd be weird otherwise, as in platforms where use-theme-accent is false
(Windows), form controls would be blue (the default accent color) but
the AccentColor color would be the system accent color still.

Differential Revision: https://phabricator.services.mozilla.com/D149877
2022-06-22 09:45:07 +00:00
Emilio Cobos Álvarez
4c5f20179e Bug 1775247 - Implement AccentColor/AccentColorText and remove -moz-prefixed version of the color. r=mstange
As per https://github.com/w3c/csswg-drafts/issues/7347.

Mostly renaming, doesn't change behavior other than exposing the new
color keywords (tested in wpt).

Differential Revision: https://phabricator.services.mozilla.com/D149876
2022-06-22 09:45:06 +00:00
serge-sans-paille
0f59369eb4 Bug 1773897 - cleanup extra js/src includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D149023
2022-06-22 09:45:04 +00:00
Bogdan Szekely
c30349265c Merge autoland to mozilla-central. a=merge 2022-06-22 12:39:06 +03:00
Nicolas Chevobbe
3c8d1a8b26 Bug 1775411 - [devtools] Fix append new stylesheet link. r=ochameau.
The link was missing an event listener, that we add in this patch.
A test case is added to make sure the link does work.

Differential Revision: https://phabricator.services.mozilla.com/D149953
2022-06-22 09:30:05 +00:00
moz-wptsync-bot
fd8937a635 Bug 1775222 - [wpt-sync] Update web-platform-tests to a18e6b2b21fc2dec06eb319ee6ae1348ccfeaace, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: a18e6b2b21fc2dec06eb319ee6ae1348ccfeaace
wpt-type: landing
2022-06-22 09:22:18 +00:00
Morten Stenshorne
dbede31c45 Bug 1775090 [wpt PR 34498] - Properly handle floats leaving an inline formatting context., a=testonly
Automatic update from web-platform-tests
Properly handle floats leaving an inline formatting context.

Revert all code changes from CL:3613771 and replace with this. The bad
CL just did SetIsInLayoutNGInlineFormattingContext(false), which would
leave fragment items behind pointing to layout objects. When such a
layout object would later on be deleted, the fragment items wouldn't be
notified, since IsInLayoutNGInlineFormattingContext was false.

Notify the fragment items that layout object becoming in-flow
non-floated will be "moved", to properly clear the association. There
was already code for this when going out-of-flow, but we also need this
when becoming in-flow non-floated.

Bug: 1331189
Change-Id: I888d81495627952b75ec33a83edce165f6a3ad01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3714111
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1016000}

--

wpt-commits: d0cc6394218081bea51fc0352cd521fbf1fc1f47
wpt-pr: 34498
2022-06-22 09:22:18 +00:00
moz-wptsync-bot
71d00e0750 Bug 1770705 [wpt PR 34162] - Update wpt metadata, a=testonly
wpt-pr: 34162
wpt-type: metadata
2022-06-22 09:22:18 +00:00