Closed Bug 1592602 Opened 5 years ago Closed 4 years ago

[wpt-sync] Sync PR 19994 - Fix allow attribute timing issue on browser side

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 19994 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/19994
Details from upstream follow.

Charlie Hu <chenleihu@google.com> wrote:

Fix allow attribute timing issue on browser side

The issue of allow attribute timing originates from bug crbug.com/972089.
The initial fix to that bug only deals with feature policy replication
problem on renderer side.

This CL adds a wpt test that targets a feature(camera) that is tested on
browser side. A test on similar issue with sandbox attribute is added
as well, but is currently failing. The sandbox attribute part will be fixed
in future CLs.

On browser-side:
Frame policy value is captured at RenderFrameHostImpl::BeginNavigation,
and travel through the whole navigation process in
NavigationRequest::common_params. Finally it will reach
NavigatorImpl::DidNavigate which is called by
RenderFrameHostImpl::DidCommitNavigationInternal.

NavigatorImpl will then use the value captured from the beginning of navigation
in common_params to set the active frame policy instead of using currently
pending frame policy, which could be further modified at the commit of navigation.

Bug: 1012786
Change-Id: Ib944ee204ca82e1ede6052ca58187fe97f0aab00

Reviewed-on: https://chromium-review.googlesource.com/1852905
WPT-Export-Revision: e3c42ca4eecc7af4080e87cd6bf09b102c8fba85

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
PR 19994 applied with additional changes from upstream: 1da988941a8c83f13aa71447a188335f5cc35ab0
Test result changes from PR not available.
Test result changes from PR not available.

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 3
PASS: 1
FAIL: 3

Chrome

OK : 3
PASS: 1
FAIL: 3

Safari

OK : 3
PASS: 1
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/feature-policy/feature-policy-frame-policy-timing.https.sub.html
allow attr timing test diff origin: FAIL (Chrome: FAIL, Safari: FAIL)
allow attr timing test same origin: FAIL (Chrome: FAIL, Safari: FAIL)
/html/browsers/sandboxing/sandbox-navigation-timing.tentative.html
setting sandbox attribute should not affect current document in iframe: FAIL (Chrome: FAIL, Safari: FAIL)

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.