New issue
Advanced search Search tips

Issue 738769 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Compat

Blocking:
issue 567358



Sign in to add a comment

Worklet: Add layout/wpt tests for WorkletOptions

Project Member Reported by nhiroki@chromium.org, Jul 3 2017

Issue description

Currently there are no tests for WorkletOptions:
https://drafts.css-houdini.org/worklets/#worklet-section

(This is split from  issue 710837 )
 
Blocking: 567358
Summary: Worklet: Add layout/wpt tests for WorkletOptions (was: Add layout/wpt tests for WorkletOptions)
Cc: flackr@chromium.org xidac...@chromium.org ikilpatrick@chromium.org
Owner: nhiroki@chromium.org
Status: Started (was: Available)
In the current spec, WorkletOptions has only "credentials" field. I'm now writing tests for it.
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4eca7587fe5f74fcb2bf2338f21029016cf2a06d

commit 4eca7587fe5f74fcb2bf2338f21029016cf2a06d
Author: Hiroki Nakagawa <nhiroki@chromium.org>
Date: Thu Oct 05 22:46:23 2017

Worklet: Add tests for addModule() to access a cross origin resource

The Worklet spec allows addModule() on a cross origin resource:
https://drafts.css-houdini.org/worklets/

Bug:  738769 
Change-Id: Ib18114697112966309ccc4d6107a4804f05a24fe
Reviewed-on: https://chromium-review.googlesource.com/694704
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506895}
[modify] https://crrev.com/4eca7587fe5f74fcb2bf2338f21029016cf2a06d/third_party/WebKit/LayoutTests/external/wpt/worklets/animation-worklet-import.html
[modify] https://crrev.com/4eca7587fe5f74fcb2bf2338f21029016cf2a06d/third_party/WebKit/LayoutTests/external/wpt/worklets/paint-worklet-import.html
[modify] https://crrev.com/4eca7587fe5f74fcb2bf2338f21029016cf2a06d/third_party/WebKit/LayoutTests/external/wpt/worklets/resources/import-tests.js

Labels: M-64
Status: Fixed (was: Started)
Project Member

Comment 7 by bugdroid1@chromium.org, Dec 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ecb522dd8d700b77f800e157228e838a1fa19c61

commit ecb522dd8d700b77f800e157228e838a1fa19c61
Author: Hiroki Nakagawa <nhiroki@chromium.org>
Date: Wed Dec 13 07:40:17 2017

Worklet: Fix credentials tests for worklets

Before this CL, credentials tests for worklets are completely broken as follows:

- In credentials.py, |credentials_mode| is compared by "is" that conducts the
  object equality check. As a result, all conditions unexpectedly pass through
  and the script always returns a valid response.
- In credentials.py, |is_cross_origin| value is always |False| because requests
  don't have the GET param.
- fetch() needs { credentials: 'include' } option for configuring the document's
  cookie with the Set-Cookie header, but it's not specified.
- Response headers are not specified for a 404 response. This results in test
  timeout instead of a network error.

This CL fixes these bugs and cleans up tests.

Bug:  738769 
Change-Id: I9aeb11fca23dec3fd3057a765fa60eb6e59d8258
Reviewed-on: https://chromium-review.googlesource.com/799730
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523713}
[modify] https://crrev.com/ecb522dd8d700b77f800e157228e838a1fa19c61/third_party/WebKit/LayoutTests/external/wpt/worklets/resources/credentials-tests.js
[modify] https://crrev.com/ecb522dd8d700b77f800e157228e838a1fa19c61/third_party/WebKit/LayoutTests/external/wpt/worklets/resources/credentials.py
[modify] https://crrev.com/ecb522dd8d700b77f800e157228e838a1fa19c61/third_party/WebKit/LayoutTests/external/wpt/worklets/resources/set-cookie.py

Sign in to add a comment