Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "PlzDedicatedWorker: Send COEP report for worker initialization failure" #27755

Merged
merged 1 commit into from Feb 24, 2021

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Feb 24, 2021

This reverts commit 15a3b50680c497dd442927fb7033f852b25e0d24.

Reason for revert: crashes in RenderFrameHostImpl::CreateDedicatedWorkerHostFactory https://crbug.com/1180505

Original change's description:

PlzDedicatedWorker: Send COEP report for worker initialization failure

This CL sends COEP violation reports during the worker initialization
process.

The corresponded spec is here:
https://html.spec.whatwg.org/C/#check-a-global-object's-embedder-policy

  1. If ownerPolicy's report-only value is "require-corp" and policy's
    value is "unsafe-none", then queue a cross-origin embedder policy
    inheritance violation with response, "worker initialization", owner's
    policy's report only reporting endpoint, "reporting", and owner.
  2. Queue a cross-origin embedder policy inheritance violation with
    response, "worker initialization", owner's policy's reporting endpoint,
    "enforce", and owner.

Also adds WPT to check if the owner iframe can observe reports via
ReportingObserver API. Tests pass with PlzDedicatedWorker and fail with
non-PlzDedicatedWorker.

Bug: 1171094, 1060837
Change-Id: Ida5eab351879a6793c412dccc8b0cff38c38e906
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2650015
Commit-Queue: Asami Doi <asamidoi@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#850107}

Bug: 1171094
Bug: 1060837
Bug: 1180505
Change-Id: I2803227fa27b308cb27a6999b2d0f72cad19cf1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2717382
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Commit-Queue: Asami Doi <asamidoi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#857038}

Copy link
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.

…n failure"

This reverts commit 15a3b50680c497dd442927fb7033f852b25e0d24.

Reason for revert: crashes in RenderFrameHostImpl::CreateDedicatedWorkerHostFactory https://crbug.com/1180505

Original change's description:
> PlzDedicatedWorker: Send COEP report for worker initialization failure
>
> This CL sends COEP violation reports during the worker initialization
> process.
>
> The corresponded spec is here:
> https://html.spec.whatwg.org/C/#check-a-global-object's-embedder-policy
> > 4. If ownerPolicy's report-only value is "require-corp" and policy's
> value is "unsafe-none", then queue a cross-origin embedder policy
> inheritance violation with response, "worker initialization", owner's
> policy's report only reporting endpoint, "reporting", and owner.
> > 6. Queue a cross-origin embedder policy inheritance violation with
> response, "worker initialization", owner's policy's reporting endpoint,
> "enforce", and owner.
>
> Also adds WPT to check if the owner iframe can observe reports via
> ReportingObserver API. Tests pass with PlzDedicatedWorker and fail with
> non-PlzDedicatedWorker.
>
> Bug: 1171094, 1060837
> Change-Id: Ida5eab351879a6793c412dccc8b0cff38c38e906
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2650015
> Commit-Queue: Asami Doi <asamidoi@chromium.org>
> Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
> Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#850107}

Bug: 1171094
Bug: 1060837
Bug: 1180505
Change-Id: I2803227fa27b308cb27a6999b2d0f72cad19cf1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2717382
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Commit-Queue: Asami Doi <asamidoi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#857038}
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.

None yet

3 participants