Граф коммитов

778173 Коммитов

Автор SHA1 Сообщение Дата
Anny Gakhokidze d7d15d402a Bug 1721217 - Part 4: Fix search tests to wait for a stop event a bit longer, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D126844
2021-11-30 16:31:35 +00:00
Anny Gakhokidze dd2f9d54f7 Bug 1721217 - Part 3: Fix tests that try to open URIs for download, r=nika,preferences-reviewers
Previously, the tests were waiting for the load event, which was being emitted
for the initial about:blank. With the pref enabled, this event is no longer
propagated/fired to the content process. Instead of notifying the content
process that it needs to emit a load event for about:blank, we can instead make
the tests wait for a STATE_STOP event.

Differential Revision: https://phabricator.services.mozilla.com/D126843
2021-11-30 16:31:35 +00:00
Anny Gakhokidze 4a06eef3a8 Bug 1721217 - Part 2: Fix the race between navigations originating in the parent and in the content, r=nika
Add a synced ParentInitiatedNavigationEpoch field to browsing context, which
only gets incremented when we start navigations in the parent process. When a
child process initiates a navigation, it sends the current value of the field
that it sees via DocumentChannelCreationArgs. In the parent process, we can
compare the value of that field with the latest one for the same browsing
context. If the latest value is higher than the one provided by the content
process, it means that in the meantime parent process has started a navigation
so the earlier navigation originating in the content process will be cancelled.

Differential Revision: https://phabricator.services.mozilla.com/D126842
2021-11-30 16:31:34 +00:00
Anny Gakhokidze 64c6fca640 Bug 1721217 - Part 1: Enable parent controlled loads via DC, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D126841
2021-11-30 16:31:34 +00:00
Rob Wu b364bab638 Bug 1732473 - Remove redundant privateBrowsingAllowed check r=zombie
The query method already validates whether access to private cookies is
allowed. It cannot yield private cookies if not allowed, so checking it
again in the loop of getAll is redundant..

Differential Revision: https://phabricator.services.mozilla.com/D127644
2021-11-30 16:25:16 +00:00
Rob Wu 9cc497b2b4 Bug 1732473 - Deduplicate storeId parsing in cookies API r=zombie
Move the duplicate logic of parsing the storeId to a common place.

This patch has the following observable change in behavior:

- Invalid storeId (whether with the "firefox-container-" prefix or with
  something else) have the same error message instead of distinct ones.
  Instead of "Illegal storeId: X` or "Unknown storeId", the message is
  now `Invalid cookie store id: "X"`, which is also what Chromium uses.

Differential Revision: https://phabricator.services.mozilla.com/D127643
2021-11-30 16:25:16 +00:00
Rob Wu cc933799f1 Bug 1732473 - Add test coverage for errors in the cookies API r=zombie
The cookies API implementation emits a bunch of errors in some cases,
but these are not covered by unit tests. I'm going to refactor some
logic involving these checks, and before doing so I'd like to start
with unit tests with the current behavior as expectations.

Differential Revision: https://phabricator.services.mozilla.com/D127642
2021-11-30 16:25:15 +00:00
moz-wptsync-bot 11f0549ed3 Bug 1743535 - [wpt-sync] Update web-platform-tests to 9811accad612849822802ab82e168a198cd89805, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: 9811accad612849822802ab82e168a198cd89805
wpt-type: landing
2021-11-30 16:16:33 +00:00
Ian Kilpatrick 8ea7a321ae Bug 1743472 [wpt PR 31780] - [flex] Clamp available sizes to zero., a=testonly
Automatic update from web-platform-tests
[flex] Clamp available sizes to zero.

Scrollbars may be present on a box. When subtracting
BorderScrollbarPadding we almost always need to clamp to zero, as the
border-box size - bsp may be negative.

Bug: 1274476
Change-Id: I55322f5c5bc5a5bbe9fefc1eb1403677044b9443
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307128
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946104}

--

wpt-commits: 9811accad612849822802ab82e168a198cd89805
wpt-pr: 31780
2021-11-30 16:16:32 +00:00
moz-wptsync-bot 3bface93f3 Bug 1742611 [wpt PR 31720] - Update wpt metadata, a=testonly
wpt-pr: 31720
wpt-type: metadata
2021-11-30 16:16:32 +00:00
Patrick Meenan feac254223 Bug 1742611 [wpt PR 31720] - Prevent opaque range request responses from entering the preload cache, a=testonly
Automatic update from web-platform-tests
Prevent opaque range request responses from entering the preload cache

ResourceLoader cancels range request responses that were not initiated
with range request headers causing them to error out and be cleared from
the preload cache. Other responses (200, 416, error, etc) complete
successfully and would otherwise enter the preload cache, making them
observable.

This prevents opaque range responses of any kind from persisting in the
preload cache (which would not naturally have any anyway).

Bug: 1270990
Change-Id: Ife9922fe0b88e39722f3664ddd091a1516892157
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3294001
Reviewed-by: Ben Kelly <wanderview@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Patrick Meenan <pmeenan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946055}

--

wpt-commits: 5fc81f8eaa41bf9ea8ffb9a0869c426a02ff2f64
wpt-pr: 31720
2021-11-30 16:16:31 +00:00
moz-wptsync-bot a6eed9f805 Bug 1742719 [wpt PR 31725] - Update wpt metadata, a=testonly
wpt-pr: 31725
wpt-type: metadata
2021-11-30 16:16:31 +00:00
Blink WPT Bot 9b7c86c7bd Bug 1742719 [wpt PR 31725] - Reduce flakiness of COOP tests by using timeouts, a=testonly
Automatic update from web-platform-tests
Reduce flakiness of COOP tests by using timeouts (#31725)

The COOP WPTs requiring a popup to be navigated were waiting before
navigating:
- that the onload event triggered
- requestAnimationFrame was executed, twice.

The latter is not always executed when the tab doesn't have the focus,
and gets executed as soon as it gets it. As an alternative, we added a
timeout, which avoids waiting for too long. It still achieves the same
goal in the tests I conducted than requestAnimationFrame: Make sure the
navigation is not considered as a redirection, and that a history entry
is created as a result.

Bug: 1233840
Change-Id: I5c8bbbccdc9b76ec32c795e7f5a4cdc594823e27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3297849
Auto-Submit: Pâris Meuleman <pmeuleman@chromium.org>
Commit-Queue: Pâris Meuleman <pmeuleman@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945351}

Co-authored-by: Pâris Meuleman <pmeuleman@chromium.org>
--

wpt-commits: 71a9256b1f56ade260091cd6f62644970c8a42d4
wpt-pr: 31725
2021-11-30 16:16:31 +00:00
moz-wptsync-bot 3d6d255269 Bug 1743013 [wpt PR 31747] - Update wpt metadata, a=testonly
wpt-pr: 31747
wpt-type: metadata
2021-11-30 16:16:30 +00:00
Titouan Rigoudy d78d45bbb5 Bug 1743013 [wpt PR 31747] - [Private Network Access] Write Web Platform Tests for preflights., a=testonly
Automatic update from web-platform-tests
[Private Network Access] Write Web Platform Tests for preflights.

- Introduce a new preflight.py wptserve request handler that can respond
  to CORS and PNA preflight requests, as well as follow-up requests.
- Update existing tests to use this endpoint correctly for CORS headers.
- Add new tests that exercise PNA preflight behavior, checking that the
  correct headers must be set on the preflight response.
- Add a virtual test suite to exercise these tests with preflights
  enabled and enforced. For now, many tests fail at HEAD outside the
  virtual test suite.

Fixed: chromium:1268876
Change-Id: Idb2bc4a216c75f963aa6f190d542a2eb6d6f4a7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3302789
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Reviewed-by: Arthur Hemery <ahemery@chromium.org>
Commit-Queue: Titouan Rigoudy <titouan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945972}

--

wpt-commits: ef0854594cfe20045ddfcf86697c92b43f113657
wpt-pr: 31747
2021-11-30 16:16:30 +00:00
Manuel Rego Casasnovas bbbbe87962 Bug 1743382 [wpt PR 31775] - Reland "Initial support for text-decoration-line: spelling|grammar-error", a=testonly
Automatic update from web-platform-tests
Reland "Initial support for text-decoration-line: spelling|grammar-error"

This is a reland of 643df2d079fac73cb420e6cd074c79d5a739f63d

It missed rebaselines for Mac 10.12.

Original change's description:
> Initial support for text-decoration-line: spelling|grammar-error
>
> This adds the initial support for spelling-error and grammar-error
> values of text-decoration-line property.
>
> Main changes are in TextDecorationInfo, where we need to support
> the new values and paint the decoration correctly.
> In Mac platform we use a dotted decoration to match
> the platform conventions.
> In other platforms we use a wavy decoration, but we modify it
> so it looks similar to the spelling and grammar markers
> in Microsoft Word.
>
> It's important to note that this is just an intermediate step,
> as this is different than how we currently paint
> the spelling and grammar errors in DocumentMarkerPainter.
> The idea would be make DocumentMarkerPainter use CSS text decorations
> and then use this new code added here.
>
> There are some known issues:
> * The underline offset is not the same than in Microsoft Word,
>   but that's because of a problem with regular underlines
>   not using the font metrics to compute that offset (crbug.com/1273042).
> * We should allow to tweak the color with text-decoration-color,
>   added a TODO about that.
>
> BUG=1163436
>
> Change-Id: I117ad38fe3fc805619eb47b1df2f48c9d7c9a351
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3297885
> Commit-Queue: Delan Azabani <dazabani@igalia.com>
> Reviewed-by: Delan Azabani <dazabani@igalia.com>
> Reviewed-by: Stephen Chenney <schenney@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#945876}

Bug: 1163436
Change-Id: I8c719644a611fef901ad60e25aa19f5b53ce199e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3306472
Reviewed-by: Delan Azabani <dazabani@igalia.com>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Commit-Queue: Manuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/main@{#945958}

--

wpt-commits: 26d2cfcf89582cff18696e8ce37d05469d68323c
wpt-pr: 31775
2021-11-30 16:16:29 +00:00
Greg Thompson 1f3c137361 Bug 1743379 [wpt PR 31774] - Revert "Initial support for text-decoration-line: spelling|grammar-error", a=testonly
Automatic update from web-platform-tests
Revert "Initial support for text-decoration-line: spelling|grammar-error"

This reverts commit 643df2d079fac73cb420e6cd074c79d5a739f63d.

Reason for revert: text-decoration-line-grammar-error.html and text-decoration-line-spelling-error.html fail consistently on Mac10.12 Tests

Original change's description:
> Initial support for text-decoration-line: spelling|grammar-error
>
> This adds the initial support for spelling-error and grammar-error
> values of text-decoration-line property.
>
> Main changes are in TextDecorationInfo, where we need to support
> the new values and paint the decoration correctly.
> In Mac platform we use a dotted decoration to match
> the platform conventions.
> In other platforms we use a wavy decoration, but we modify it
> so it looks similar to the spelling and grammar markers
> in Microsoft Word.
>
> It's important to note that this is just an intermediate step,
> as this is different than how we currently paint
> the spelling and grammar errors in DocumentMarkerPainter.
> The idea would be make DocumentMarkerPainter use CSS text decorations
> and then use this new code added here.
>
> There are some known issues:
> * The underline offset is not the same than in Microsoft Word,
>   but that's because of a problem with regular underlines
>   not using the font metrics to compute that offset (crbug.com/1273042).
> * We should allow to tweak the color with text-decoration-color,
>   added a TODO about that.
>
> BUG=1163436
>
> Change-Id: I117ad38fe3fc805619eb47b1df2f48c9d7c9a351
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3297885
> Commit-Queue: Delan Azabani <dazabani@igalia.com>
> Reviewed-by: Delan Azabani <dazabani@igalia.com>
> Reviewed-by: Stephen Chenney <schenney@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#945876}

Bug: 1163436
Change-Id: I2622bde37f2f8a7f725a1a06be8d34acdf9f728b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3306392
Auto-Submit: Greg Thompson <grt@chromium.org>
Owners-Override: Greg Thompson <grt@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#945903}

--

wpt-commits: 0b044312ec1d3dc5a91ab6701276fcacaca04836
wpt-pr: 31774
2021-11-30 16:16:29 +00:00
dependabot[bot] dc25879aa8 Bug 1743205 [wpt PR 31762] - Bump hypothesis from 6.24.4 to 6.27.2 in /tools, a=testonly
Automatic update from web-platform-tests
Bump hypothesis from 6.24.4 to 6.27.2 in /tools

Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.24.4 to 6.27.2.
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.24.4...hypothesis-python-6.27.2)

---
updated-dependencies:
- dependency-name: hypothesis
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: 8b1beb0aa226a690d0f5bc245cd5ff5273423fc8
wpt-pr: 31762
2021-11-30 16:16:28 +00:00
moz-wptsync-bot 2f53eb2573 Bug 1742762 [wpt PR 31727] - Update wpt metadata, a=testonly
wpt-pr: 31727
wpt-type: metadata
2021-11-30 16:16:28 +00:00
Manuel Rego Casasnovas b4b87ca56c Bug 1742762 [wpt PR 31727] - Initial support for text-decoration-line: spelling|grammar-error, a=testonly
Automatic update from web-platform-tests
Initial support for text-decoration-line: spelling|grammar-error

This adds the initial support for spelling-error and grammar-error
values of text-decoration-line property.

Main changes are in TextDecorationInfo, where we need to support
the new values and paint the decoration correctly.
In Mac platform we use a dotted decoration to match
the platform conventions.
In other platforms we use a wavy decoration, but we modify it
so it looks similar to the spelling and grammar markers
in Microsoft Word.

It's important to note that this is just an intermediate step,
as this is different than how we currently paint
the spelling and grammar errors in DocumentMarkerPainter.
The idea would be make DocumentMarkerPainter use CSS text decorations
and then use this new code added here.

There are some known issues:
* The underline offset is not the same than in Microsoft Word,
  but that's because of a problem with regular underlines
  not using the font metrics to compute that offset (crbug.com/1273042).
* We should allow to tweak the color with text-decoration-color,
  added a TODO about that.

BUG=1163436

Change-Id: I117ad38fe3fc805619eb47b1df2f48c9d7c9a351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3297885
Commit-Queue: Delan Azabani <dazabani@igalia.com>
Reviewed-by: Delan Azabani <dazabani@igalia.com>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945876}

--

wpt-commits: 3ee257b18ef0fcb1c6346c9d3b760922b26673c6
wpt-pr: 31727
2021-11-30 16:16:27 +00:00
moz-wptsync-bot 4965a3bc46 Bug 1742859 [wpt PR 31735] - Update wpt metadata, a=testonly
wpt-pr: 31735
wpt-type: metadata
2021-11-30 16:16:27 +00:00
Yi Xu 875a38d0ac Bug 1742859 [wpt PR 31735] - Add tests for letterspacing and wordspacing with different units, a=testonly
Automatic update from web-platform-tests
Add tests for letterspacing and wordspacing with different units

After changing letterspacing and wordspacing to accept strings,
test if they work with different length units, ex: px, mm, cm, inch, em.

Bug: 1263632

Change-Id: I2944ff56e1bfd796b0c6481d7f0f67775d9ce8b5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3297936
Commit-Queue: Yi Xu <yiyix@chromium.org>
Reviewed-by: Juanmi Huertas <juanmihd@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945872}

--

wpt-commits: d613c3c794c784a2c6116c586422cc13cfc9d505
wpt-pr: 31735
2021-11-30 16:16:26 +00:00
Kent Tamura 1d558b3260 Bug 1743331 [wpt PR 31769] - SVG Text NG: Fix an issue of multiple continuous <textPath>, a=testonly
Automatic update from web-platform-tests
SVG Text NG: Fix an issue of multiple continuous <textPath>

We failed to get the PathPositionMapper for the latter <textPath>
if multiple <textPath> are placed continuously.

Bug: 1274425
Change-Id: I539e987c32b35b8a4596de6aad8d4b724448fd4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3305145
Auto-Submit: Kent Tamura <tkent@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945861}

--

wpt-commits: ae61df6244676bb25d6a6256b7aeffbe1900090e
wpt-pr: 31769
2021-11-30 16:16:26 +00:00
moz-wptsync-bot 970486db56 Bug 1735293 [wpt PR 31201] - Update wpt metadata, a=testonly
wpt-pr: 31201
wpt-type: metadata
2021-11-30 16:16:25 +00:00
BruceDai 68b09d6e5c Bug 1735293 [wpt PR 31201] - Add IDL tests for Web Neural Network API, a=testonly
Automatic update from web-platform-tests
Add IDL tests for Web Neural Network API (#31201)

* Added IDL tests for WebNN API.

* Added webnn/META.yml file.
--

wpt-commits: 666e2ff2871974a7714b921bbc11475975947627
wpt-pr: 31201
2021-11-30 16:16:25 +00:00
Rimas Misevičius bf29eaa9f5 Bug 1743293 [wpt PR 31767] - Add test with invalid punycode (contains non-ASCII character), a=testonly
Automatic update from web-platform-tests
URL: Add test with invalid punycode (contains non-ASCII character) (#31767)

To test if URL parser is affected by ICU-21212 bug:
https://unicode-org.atlassian.net/browse/ICU-21212

Bug was fixed in ICU 68.1 version. In the earlier ICU versions the
`uidna_nameToASCII` function reports no error on this input, and returns
the same string as input.
--

wpt-commits: b772ca18865a09f3307440a9a756cb08fc0028a6
wpt-pr: 31767
2021-11-30 16:16:24 +00:00
Xianzhu Wang 5acb165c16 Bug 1743049 [wpt PR 31752] - Fix absolute-position under non-containing stacking context, a=testonly
Automatic update from web-platform-tests
Fix absolute-position under non-containing stacking context

When a stacking context has non-contained absolute-position descendant,
and the stacking context is forced by its ancestor to update cull rect,
the stacking context needs to propagate the forced cull rect update
flag to descendants because the cull rect of non-contained
absolute-position descendant depends on the contents cull rect of its
container instead of the non-containing stacking context.

Bug: 1273431
Change-Id: I8155df211fd4781c1c97f25302d2ebd22c3e8309
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3302093
Auto-Submit: Xianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945771}

--

wpt-commits: 7066b521e6f243238590f6242a123a841f22dcc6
wpt-pr: 31752
2021-11-30 16:16:24 +00:00
Agi Sferro 9ce9bd86e7 Bug 1740358 - Use Java JDK from Adoptium in CI. r=aki
Differential Revision: https://phabricator.services.mozilla.com/D131928
2021-11-30 16:11:00 +00:00
Agi Sferro acc50579ec Bug 1740358 - Add toolchain-env r=ahal
This patch adds a new toolchain run property: toolchain-env which allows
specifying additional environment variables that will be added to the worker
when consuming the toolchain artifact.

Differential Revision: https://phabricator.services.mozilla.com/D131987
2021-11-30 16:11:00 +00:00
Agi Sferro fbb07613dc Bug 1740358 - Enable |mach bootstrap| for GeckoView on Apple Silicon. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D130795
2021-11-30 16:11:00 +00:00
Agi Sferro 79940ac0dd Bug 1740358 - Download Java from adoptium. r=mhentges,glandium
We already use the adoptopenjdk on some platforms, this allows us to have a
more predictable Java binary on all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D130878
2021-11-30 16:10:59 +00:00
Tooru Fujisawa 017e5fb2f9 Bug 1743357 - Part 3: Remove CompilationStencil::steal. r=nbp
Depends on D132356

Differential Revision: https://phabricator.services.mozilla.com/D132357
2021-11-30 16:09:25 +00:00
Tooru Fujisawa fea01a452e Bug 1743357 - Part 2: Use owned-borrow CompilationStencil. r=nbp
Depends on D132355

Differential Revision: https://phabricator.services.mozilla.com/D132356
2021-11-30 16:09:25 +00:00
Tooru Fujisawa bbd2a9d7d8 Bug 1743357 - Part 1: Add support for owned-borrow for CompilationStencil. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D132355
2021-11-30 16:09:25 +00:00
Mark Striemer b87567e7b1 Bug 1661663 - Allow overriding @page margin rules r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D132284
2021-11-30 15:59:11 +00:00
Kagami Sascha Rosylight e1611c9885 Bug 1743471 - Remove assertion for existence of WindowGlobalChild r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132484
2021-11-30 15:53:42 +00:00
Steve Fink 70ffe6ef15 Bug 1743441 - Missing nullptr check in TypedArray_base::fromObject r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D132416
2021-11-30 15:51:27 +00:00
pestanoah 5c3b2f577f Bug 1733580 - Fixed glitch on the PiP toggle icon in HCM. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D129354
2021-11-30 15:43:36 +00:00
Kagami Sascha Rosylight 19993c55dd Bug 1739989 - Part 2: Apply more edits r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D130630
2021-11-30 15:38:37 +00:00
Kagami Sascha Rosylight c0dd606b27 Bug 1739989 - Part 1: Update Web IDL references r=peterv
Reflects the recent move to WHATWG and the name (corresponding to f01080ffc4)

Differential Revision: https://phabricator.services.mozilla.com/D130629
2021-11-30 15:38:37 +00:00
Emilio Cobos Álvarez 8ce726b6d4 Bug 1743600 - Clean up some cocoa system color code. r=mac-reviewers,harry
No behavior change, but it's a bit less code this way.

Differential Revision: https://phabricator.services.mozilla.com/D132477
2021-11-30 15:08:37 +00:00
Emilio Cobos Álvarez a03153bd1b Bug 1743027 - Simplify plaintext.css dark mode code. r=jwatt
Now that we have dark color-scheme everywhere we don't need to hard-code
this.

Differential Revision: https://phabricator.services.mozilla.com/D132187
2021-11-30 15:06:51 +00:00
Butkovits Atila 8e13e5203a Backed out changeset 0de3705203a4 (bug 1742168) for causing failures at browser_multiple_pushState.js. CLOSED TREE 2021-11-30 16:31:10 +02:00
Tim Huang 32d4280266 Bug 1743236 - Part 3: Add a test. r=dimi
This patch adds a test to ensure that a dedicated worker can be created
in a page which is controlled by a servcie worker.

Differential Revision: https://phabricator.services.mozilla.com/D132371
2021-11-30 13:40:33 +00:00
Tim Huang e2cd77377d Bug 1743236 - Part 2: Use Partitioned Principal when creating clientSource in WorkerPrivate. r=dimi,edenchuang
We should use the parititoned principal when creating clientSource in
WorkerPrivate if the workerPrivate is in third-party context.

Differential Revision: https://phabricator.services.mozilla.com/D132370
2021-11-30 13:40:33 +00:00
Tim Huang 82984ed40f Bug 1743236 - Part 1: Add StoragePrincipalHelper::ShouldUsePartitionPrincipalForServiceWorker() for WorkerPrivate. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D132369
2021-11-30 13:40:32 +00:00
Tim Huang e892676b4e Bug 1731999 - Part 4: Modify tests to tests partitioned service workers. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D131789
2021-11-30 13:40:32 +00:00
Tim Huang e3e09e1fdf Bug 1731999 - Part 3: Enable partitioned service workers. r=pbz
This patch enables partitioned service workers in third-party contexts.
Doesn't like before, we will allow service workers to be registered even
the third-party contexts don't have storage access and the registered
service workers will be partitioned by the top-level site.

You can control this by using the pref 'privacy.partition.serviceWorkers'.
Setting this to true will enable the partitioning, otherwise, it will
still use the old behavior.

Differential Revision: https://phabricator.services.mozilla.com/D131788
2021-11-30 13:40:31 +00:00
Tim Huang bf00e6e2cf Bug 1731999 - Part 2: Use regular principal for service workers if pref 'privacy.partition.serviceWorkers' is false. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D131787
2021-11-30 13:40:31 +00:00
Tim Huang bee9196df8 Bug 1731999 - Part 1: Add a pref 'privacy.partition.serviceWorkers'. r=pbz
This patch adds a pref to control unconditional partitioned service
worker in dFPI.

Differential Revision: https://phabricator.services.mozilla.com/D131786
2021-11-30 13:40:31 +00:00