Skip to content

Fix success test cases in service-worker-update.https.window.js#35808

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-3878345
Sep 8, 2022
Merged

Fix success test cases in service-worker-update.https.window.js#35808
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-3878345

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 7, 2022

The two failing test cases failed not because of PNA checks, but because
the browser sends a Service-Worker header which the server didn't explicitly
allowed. Using serviceWorkerSuccess will make a query that would return
"Access-Control-Allow-Headers: Service-Worker". See also [1]

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3858436

Bug: 1239551
Change-Id: I4b61ffd1cdd85521f7d026d845365e3d1341d130
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3878345
Auto-Submit: Jonathan Hao <[email protected]>
Commit-Queue: Titouan Rigoudy <[email protected]>
Reviewed-by: Titouan Rigoudy <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1044453}

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-3878345 branch 2 times, most recently from 466b09b to 99c0af3 Compare September 7, 2022 17:31
The two failing test cases failed not because of PNA checks, but because
the browser sends a Service-Worker header which the server didn't explicitly
allowed. Using serviceWorkerSuccess will make a query that would return
"Access-Control-Allow-Headers: Service-Worker". See also [1]

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3858436

Bug: 1239551
Change-Id: I4b61ffd1cdd85521f7d026d845365e3d1341d130
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3878345
Auto-Submit: Jonathan Hao <[email protected]>
Commit-Queue: Titouan Rigoudy <[email protected]>
Reviewed-by: Titouan Rigoudy <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1044453}
servo-wpt-sync pushed a commit to servo/wpt that referenced this pull request Mar 7, 2025
…ock for all descendants (web-platform-tests#35808)

* layout: Fix behavior of `transform-style: preserve-3d`

This makes `transform-style: preserve-3d` establish a containing block
for all descendants, as specified here:
<https://drafts.csswg.org/css-transforms-2/#transform-style-property>

Signed-off-by: Daniel Hast <[email protected]>

* layout: Check for transformable elements

Adds a new `is_transformable` helper method and use this in several other
methods, including the methods for whether the fragment establishes a
new stacking context or a containing block for all descendants.

Signed-off-by: Daniel Hast <[email protected]>

* Use generic green square reference for reftest.

Signed-off-by: Daniel Hast <[email protected]>

* layout: Fix stacking context & containing block checks.

Only the computed value of `transform-style` should be used to determine
whether the element establishes a stacking context and/or a containing
block, not the used value.

Signed-off-by: Daniel Hast <[email protected]>

* Update clip-no-stacking-context test expectation to pass.

Signed-off-by: Daniel Hast <[email protected]>

---------

Signed-off-by: Daniel Hast <[email protected]>
servo-wpt-sync pushed a commit to servo/wpt that referenced this pull request Mar 10, 2025
…ock for all descendants (web-platform-tests#35808)

* layout: Fix behavior of `transform-style: preserve-3d`

This makes `transform-style: preserve-3d` establish a containing block
for all descendants, as specified here:
<https://drafts.csswg.org/css-transforms-2/#transform-style-property>

Signed-off-by: Daniel Hast <[email protected]>

* layout: Check for transformable elements

Adds a new `is_transformable` helper method and use this in several other
methods, including the methods for whether the fragment establishes a
new stacking context or a containing block for all descendants.

Signed-off-by: Daniel Hast <[email protected]>

* Use generic green square reference for reftest.

Signed-off-by: Daniel Hast <[email protected]>

* layout: Fix stacking context & containing block checks.

Only the computed value of `transform-style` should be used to determine
whether the element establishes a stacking context and/or a containing
block, not the used value.

Signed-off-by: Daniel Hast <[email protected]>

* Update clip-no-stacking-context test expectation to pass.

Signed-off-by: Daniel Hast <[email protected]>

---------

Signed-off-by: Daniel Hast <[email protected]>
servo-wpt-sync pushed a commit to servo/wpt that referenced this pull request Mar 10, 2025
…ock for all descendants (web-platform-tests#35808)

* layout: Fix behavior of `transform-style: preserve-3d`

This makes `transform-style: preserve-3d` establish a containing block
for all descendants, as specified here:
<https://drafts.csswg.org/css-transforms-2/#transform-style-property>

Signed-off-by: Daniel Hast <[email protected]>

* layout: Check for transformable elements

Adds a new `is_transformable` helper method and use this in several other
methods, including the methods for whether the fragment establishes a
new stacking context or a containing block for all descendants.

Signed-off-by: Daniel Hast <[email protected]>

* Use generic green square reference for reftest.

Signed-off-by: Daniel Hast <[email protected]>

* layout: Fix stacking context & containing block checks.

Only the computed value of `transform-style` should be used to determine
whether the element establishes a stacking context and/or a containing
block, not the used value.

Signed-off-by: Daniel Hast <[email protected]>

* Update clip-no-stacking-context test expectation to pass.

Signed-off-by: Daniel Hast <[email protected]>

---------

Signed-off-by: Daniel Hast <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants