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

Advertise DocumentPolicy & Network Err when receive incompatible policy #20618

Merged
merged 1 commit into from Jan 10, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Dec 4, 2019

  • Advertise required document policy on out-going requests.
  • Parse and initialize document policy in security context.
  • Replace with page with empty document when incoming document policy
    is incompatible with required policy.
  • A boolean flag body_loader_finished is added to SimRequestBase::Finish
    because when testing page blocked by document policy situation in
    document_loader_test.cc, body_loader.Finish will be called twice, once
    in WebNavigationParams::FillStaticResponse, once in test framework, which
    will crash the test because of a DCHECK.

Bug: 993790
Change-Id: I823675408a0d52e8048172ae23d409a5f14e8eb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1947187
Commit-Queue: Charlie Hu <chenleihu@google.com>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730275}

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.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1947187 branch 6 times, most recently from 9e1427c to d3a2603 Compare December 11, 2019 20:57
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1947187 branch 7 times, most recently from a4a3b04 to 89b28fa Compare December 18, 2019 16:40
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1947187 branch 2 times, most recently from 0dff214 to ae08dac Compare December 23, 2019 17:03
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1947187 branch 7 times, most recently from fca4727 to 489e238 Compare January 10, 2020 17:14
- Advertise required document policy on out-going requests.
- Parse and initialize document policy in security context.
- Replace with page with empty document when incoming document policy
is incompatible with required policy.
- A boolean flag body_loader_finished is added to SimRequestBase::Finish
because when testing page blocked by document policy situation in
document_loader_test.cc, body_loader.Finish will be called twice, once
in WebNavigationParams::FillStaticResponse, once in test framework, which
will crash the test because of a DCHECK.

Bug: 993790
Change-Id: I823675408a0d52e8048172ae23d409a5f14e8eb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1947187
Commit-Queue: Charlie Hu <chenleihu@google.com>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730275}
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-1947187 branch January 10, 2020 20:34
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

2 participants