Closed Bug 1464483 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 11166 - [css-layout-api] Allow passing of serialized data between parent<->child.

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:
>  [css-layout-api] Allow passing of serialized data between parent<->child.
>  
>  This allow arbitary parent<->child communation during layout. A parent
>  can send data to a child via:
>  
>  // parent
>  const fragment = yield child.layoutNextFragment({data});
>  
>  // child
>  *layout(children, edges, constraints, style) {
>    const data = constraints.data; // receive data.
>  }
>  
>  And child to parent via:
>  
>  // child
>  *layout() {
>    return {data};
>  }
>  
>  // parent
>  const fragment = yield child.layoutNextFragment();
>  const data = fragment.data; // receive data.
>  
>  As the parent and child layouts may be invoked in different worklet
>  global scopes, and don't allow data shared, the serialization of data
>  uses "kForStorage" which means that SABs aren't allowed in the
>  serialization.
>  
>  Serialization also occurs so that we are able to cache results.
>  
>  Bug: 726125
>  Change-Id: Ib7e81b5778cef3af2c2f8a1ccef749f1d2ba4dfa
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1072150
>  WPT-Export-Revision: d5c92b8567dc48c997b299f81842046f7eed2feb
>  
>  
>
PR 11166 applied with additional changes from upstream: 127a32efa15d361e0eb4d0db1cbf5a99d26d72d9
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 22 tests
FAIL   : 22

New tests that have failures or other problems:
/css/css-layout-api/constraints-data-function-failure.https.html: FAIL
/css/css-layout-api/constraints-data-sab-failure.https.html: FAIL
/css/css-layout-api/constraints-data.https.html: FAIL
/css/css-layout-api/fragment-data-function-failure.https.html: FAIL
/css/css-layout-api/fragment-data-immutable.https.html: FAIL
/css/css-layout-api/fragment-data-sab-failure.https.html: FAIL
/css/css-layout-api/fragment-data.https.html: FAIL
/css/css-layout-api/perform-child-layout-available-inline-size-htb-htb.https.html: FAIL
/css/css-layout-api/perform-child-layout-available-inline-size-htb-vrl.https.html: FAIL
/css/css-layout-api/perform-child-layout-available-inline-size-vrl-htb.https.html: FAIL
/css/css-layout-api/perform-child-layout-available-inline-size-vrl-vrl.https.html: FAIL
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f22694f50ea6
[wpt PR 11166] - [css-layout-api] Allow passing of serialized data between parent<->child., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/22fb23cdbd67
[wpt PR 11166] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/f22694f50ea6
https://hg.mozilla.org/mozilla-central/rev/22fb23cdbd67
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.