Repository navigation
tests: bump the pinned WPT revision to ed5a113c - #247
ruifigueira wants to merge 32 commits into
Conversation
1decb8c to
d3fe1fb
Compare
BernardoPe
left a comment
There was a problem hiding this comment.
Two blocking issues: the pin moves without the rebaseline the gate needs, and the generated IDL bindings still describe the old corpus.
One non-blocking note: three renamed tests and two live variants left the allow-list instead of being re-enrolled.
The rest checks out. All 125 added paths exist in the corpus at ed5a113c, the 117 moved expectations are unchanged, MODULE.bazel.lock matches MODULE.bazel for every profile, and no expectation key sits outside the test list.
d3fe1fb to
a37b534
Compare
d387523 to
39e2360
Compare
|
beep-boop-bernardo-agent-🤖 All three items from the earlier review are addressed at this revision. The pin move now carries its rebaseline, and the WPT gate ran green against the ed5a113c corpus at this head. The generated bindings and NOTICE name the new revision. The renamed fit-tolerance tests and both render-corner-shape variants are enrolled with the expectations they had before the rename. No new blocking issues found. Agent review: APPROVE sha=39e2360bfa0f75857609748d7b8c99a5de01411a |
fd0b2b5 to
64fa8b5
Compare
626a1ab to
2f2b383
Compare
The pin had stayed at 6efb1b12 (2026-08-29) for three months. Move it to upstream master at ed5a113c (2026-11-26), so the gate measures current tests. Upstream moved, renamed or removed 139 enrolled tests. Enrol the 130 that still exist at their new paths and keep their expectations: the WebCryptoAPI tentative tests now live under modern-algos/ and secure-curves/, the border tests moved from css-backgrounds/ to css-borders/, flow-tolerance became fit-tolerance, and two corner-shape variants lost their border-width parameter. Drop the 9 that upstream deleted. The wpt executor pool now names the wpt-ed5a113c image, which bakes the new corpus. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
webidl-ts-types.mjs omits every redeclared member from the parent, so a type gap on an override left the interface with no such member at all. At WPT ed5a113c, HTMLScriptElement redeclares innerText and textContent to also take a TrustedScript, and HTMLScriptElement then no longer extended HTMLElement. Keep the parent's declaration for such a member. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
The gate at the new pin reported 143 deviations. Rebaseline the 131 whose test file, or a file in its directory, changed upstream between 6efb1b12 and ed5a113c: 94 PASS to FAIL, 32 FAIL to PASS and the five WebMCP tests that now time out. - Most new failures are tests that upstream extended: css-align and css-color parsing, the css-values math functions, the WebMCP tests for executeTool and getTools, and new IDNA and encoding cases. - The new passes include the vendored editing runs, the css-lists counter tests and color-computed-rgb. - A test that now passes loses its old failure reason. The other twelve deviations went through one more gate run, where the gate retried each of them three times. Three failed every draw and are rebaselined: document-without-browsing-context and po-disconnect time out, and utf8-invalid-encoding fails 6 of 371 subtests. The other nine matched their old expectation, so they stay as they were. svg-intersection-with-fractional-bounds-2 passed on that run after one FAIL, so it keeps its PASS. Main moved from Stylo 0.22 to 0.24 during review. At ed5a113c that made six more tests pass (the env() parsing tests, revert-rule in font-family-invalid, hwb() normalization, attr-all-types and update-subpixel-rem-unit). Two css-align tests now fail: justify-items-computed and place-items-computed check the new flow-start, flow-end and safe normal values, which Stylo does not parse. These moves carry no reclassified marker: the marker names the commit that changed the outcome, and the bump commit can still change before it merges. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
WebMCP spec PR #245 moved ontoolactivated and ontoolcancel from window to ModelContext, and the pinned IDL now has the ToolActivatedEvent and ToolCancelEvent interfaces. The shim still sent plain Events to window, so the WPT abort tests waited for events that never came. Fire trusted ToolActivatedEvent and ToolCancelEvent at the tool's ModelContext, and add the three event handler attributes. ModelContext now uses the shared EventTarget, so listener options such as once and signal work and the event's target is the context. A WebMCP.invokeTool call fires the same events, and toolactivated fires even when execute() throws synchronously, as WebIDL turns the throw into a rejection. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
The pinned WebMCP IDL (spec PRs #241, #246, #251, #253, #254, #348) changed what getTools() returns and what executeTool() and registerTool() accept. getTools() still returned RegisteredTool dictionaries, and executeTool() found a tool by name, parsed a JSON string and rejected every failure with UnknownError. getTools() now returns instances of the exposed Tool interface, with source instead of window, and null inputSchema, outputSchema and annotations when the tool has none. Each Tool keeps the ID of the registration it came from, and executeTool() runs only that registration, so a same-named tool registered later is a NotFoundError. A plain object is not a Tool and rejects with TypeError. A Tool is a Proxy over its instance, so structuredClone() throws DataCloneError and JSON.stringify() gives {}. executeTool() takes an optional object, not a JSON string. A primitive, or input that JSON cannot serialize, rejects with TypeError. A failed tool or an unserializable result rejects with OperationError, as the spec's tool execution errors say. registerTool() converts its dictionary as WebIDL does, validates and stores outputSchema like inputSchema, and keeps the debugging annotation. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
ToolAnnotations gained consequentialHint (Chrome WebMCP update of 4 September) and debugging (spec PR #253), and Chrome's WebMCP domain reports them as Annotation.consequential and Annotation.debugging. The page side kept both hints but WebMCP.toolsAdded dropped them. Send both with readOnly and untrustedContent. The pinned devtools-protocol predates the two fields, so protocol-extensions.ts declares them. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
A declarative tool without toolautosubmit waits for the user to submit its form. When the form was removed or lost its tool attributes in that wait, the execution stayed pending and :tool-form-active stayed set, so WPT's unregister-during-executeTool timed out. The rescan that unregisters the form now cancels such an execution: it clears the pseudo-classes, rejects executeTool() with AbortError and fires toolcancel, as Chrome does (crbug.com/565332588). Once the form was submitted, the execution still settles with the respondWith() result. WebMCP.invokeTool reports the cancel as status Canceled. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Each rescan registered every form whose name was free, so removing the form that held a name registered a duplicate refused earlier at once. Chrome keeps a refused form unregistered until the form itself changes, and WPT's duplicate-tool-name now tests that. Keep the markup of a form refused for a taken name, and retry it only when that markup differs or the form comes back after it left the document. A form that holds a name also keeps it against a duplicate inserted before it in document order. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Spec PR #373 added waitForToolsUntil(promise), which Chrome 160 ships, so a page can say that it still registers tools. WPT ed5a113c tests it, although its webmcp.idl predates the method. Add the method with the spec's checks: it needs an argument, throws InvalidStateError in a document that is not fully active, and reacts to the promise, so a rejection counts as handled. Kitesurf has no tool consumer that waits: CDP announces each tool as it registers, so the method keeps no readiness state. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Eleven WebMCP tests now pass: the IDL harness, the imperative and declarative abort tests, the annotation, schema and argument tests, the error-type tests and the duplicate declarative tool test. getTools-imperative-schema loses its stale-test reason, as the test now checks the Tool's null schemas. declarative/unregister-during-executeTool still times out, now only in its iframe subtest, so it gets a reason. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
createProcessingInstruction checks its target against XML's Name production, but the NameStartChar ranges stopped at U+FFFD. XML 1.0 also allows U+10000 to U+EFFFF, and WPT at ed5a113c now creates PIs with the targets U+10000, U+1F600 and U+EFFFF. Add the range, so these targets work and U+F0000 and up still throw InvalidCharacterError. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Inserting a node from another document did not adopt it. A div made by a createHTMLDocument() document and appended to the page body still reported that document as its ownerDocument. Attrs never moved at all: their ownerDocument fell back to the page document, so an Attr of an element in a created document reported the wrong document, and adoptNode did not change it. The adoptNode ownership walk of both document classes moves into one adoptSubtree helper. appendChild, insertBefore and replaceChild now run it for each inserted node (a fragment's children) when the parent's node document differs, as the DOM insert and replace steps require. DetachedDocument's own insertions use it too, so a subtree inserted at its top level is stamped, not only its root. An Attr's ownerDocument is now its element's while it has one, so an adopted or inserted element moves its Attrs with it. An Attr that leaves its element keeps the element's document, and createAttribute, createAttributeNS and importNode stamp the creating document. This fixes the two new subtests of Document-adoptNode.html and makes Node-mutation-adoptNode.html and attributes-namednodemap-cross-document pass. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
importNode cloned elements, text, comments, Attrs and fragments, and returned null for every other node type. WPT at ed5a113c imports a created doctype and a document's own doctype, and read nodeType and name from the null. Clone the doctype and adopt the clone into the importing document, leaving the source in its tree. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
A button in the Auto state is a submit button only when it has no command or commandfor attribute and its parent is not a select element (https://html.spec.whatwg.org/#dom-button-type). The type getter checked the attributes but not the parent, so a button inside a select reported "submit" and would submit its form. The other new button-type.html subtest stays failing: it sets button.commandfor, an expando that adds no attribute, and Chrome fails it too. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
HTML adds a boolean switch IDL attribute to HTMLInputElement that reflects the switch content attribute. The shim had no such member, so input.switch was undefined, and the 38 input.switch subtests that reflection-forms.html gained at ed5a113c failed. Reflect it as a boolean, drop its gap from the idl-conformance ledger and regenerate the bindings, which now type the member. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
The fixes before this commit make seven tests pass: Document-adoptNode, Document-importNode, both Document-createProcessingInstruction tests, Node-mutation-adoptNode, attributes-namednodemap-cross-document and reflection-forms. They lose their FAIL pin and any old reason. Three tests that the bump moved stay pinned, now with a reason: - button-type.html fails its commandfor subtest, which sets an expando instead of an attribute. Chrome fails it too. - sanitize-regular.html needs the tentative template.sanitize attribute and <template for> patching. - document-without-browsing-context.html times out because a link moved from a DOMParser document never fires load. Each entry was re-run with --update-expectations against WPT ed5a113c. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
CSSNumericValue.parse() went through Stylo's NumericDeclaration, which accepts a math function only when it resolves to a <length-percentage>. So calc(1 + 4), a <number>, threw SyntaxError, and WPT ed5a113c added a subtest for it in numeric-objects/parse.tentative.html. When NumericDeclaration rejects the input, parse the math function with Stylo's CalcNode and accept any valid calc type. A node with no Typed OM form, such as an unresolved sign(), still fails to reify and throws SyntaxError. Stylo itself is unchanged. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
append() joined all values with commas and validated only the joined
list. So a CSS-wide keyword ("inherit", or a CSSKeywordValue "initial")
passed as a list item, and fragments that are valid only once joined,
such as "cubic-bezier(0", "0", "1", "1)", were accepted. append() with
no values also threw instead of doing nothing.
Reject CSS-wide keywords, parse each string value as its own list item,
and return early when there is nothing to append, as the Typed OM spec
says. WPT ed5a113c added these subtests to the declared and inline
append.tentative.html tests.
beep-boop-🤖
Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Fetch's main fetch clears the URL's CORS-preflight cache entries when a request that needed a preflight ends in a network error. The gateway kept the grant, so after a CORS-check failure the next request reused it and sent no new OPTIONS request. WPT ed5a113c tests this in cors-preflight-cache.any.html. Clear both credentials modes' entries for the partition, origin and current URL when the preflight or the actual request fails: preflight failure, egress error or timeout, CORP block, CORS check failure and a redirect to a URL with credentials. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
PerformanceObserver was a stub: observe() did nothing and the callback never ran. Tests that expect no callback passed, but every test that waits for one timed out, including the subtest WPT ed5a113c added to po-disconnect.any.html. Implement the Performance Timeline observer over the page's mark and measure buffer: entryTypes and type observation with the observer type rules, buffered replay, disconnect() and takeRecords(), one queued task that delivers a startTime-sorted PerformanceObserverEntryList, and droppedEntriesCount on the first callback. Like Chrome, a buffered flag next to entryTypes is ignored instead of throwing. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Re-run with --update-expectations over /css/css-typed-om/, /fetch/api/cors/, /performance-timeline/ and /user-timing/. 20 tests now pass and lose their old reason. performance-timeline/idlharness moves from TIMEOUT to FAIL; its remaining failures are PerformanceEntry and Performance interface gaps. request-bad-port.any.html stays FAIL with a reason: its non-bad-port subtest needs the META: pac proxy that wptrunner configures, and the Kitesurf runner sets no proxy, so bad-port.wpt does not resolve. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
css-values-4 makes NaN infectious in math functions and gives pow() and log() their own special cases, but Stylo used Rust's IEEE powf and log. pow(1, infinity) and pow(NaN, 0) were 1, log(2, 1) was infinity, log(1, 0.5) was -0 and round(infinity, NaN) was infinity. The first new stylo patch handles these cases at parse time and at used-value time. clamp(50%, NaN * 1px, 100px) must be NaN, which censors the width to 0px. Stylo cannot compare a percentage with a length at parse time, so it kept the clamp(), and computing the length leaf then turned NaN into 0px: the width came out as 50% or 100px. The second patch folds clamp() to its NaN argument first, as min() and max() already do. hypot-pow-sqrt-computed, exp-log-compute, round-function and calc-infinity-nan-computed now pass. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
A non-finite <hue> is 0deg, but Stylo's hue normalization made it NaN: lch(50 10 calc(infinity)) computed to lch(50 10 calc(NaN)) instead of lch(50 10 0), and its specified value read back as calc(NaN) instead of calc(infinity). The new stylo patch keeps the hue as written at parse time and sets it to 0 when the color is computed. color-computed-lab now passes, and color-valid-lab passes its calc(±infinity) hue subtests for lch() and oklch(). The legacy hsl() and hwb() conversion now uses the 0deg hue too. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
WPT at ed5a113c expects what Chrome does: a legacy rgb(), hsl() or hwb() color with a none component serializes its specified value like its computed value. rgb(none none none) is color(srgb none none none), not rgb(0, 0, 0), and hsl() and hwb() always write percentages, so hsl(120 30 none) is hsl(120 30% none). Relative-color origins and color-mix() items follow the same rules. The new stylo patch removes the parts of our earlier none-preservation patch that matched the older WPT rows. The unit tests move to the new forms. color-valid-rgb, color-valid-hsl, color-valid-hwb and color-valid-relative-color now pass, and color-computed-relative-color and the color-mix tests pass more subtests. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Nine css-values and css-color tests now pass. color-valid-lab still fails 32 of its 158 subtests, all of them statically resolvable calc() values that must serialize unclamped as written. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
WPT rewrote css-borders/corner-shape/resources/render-corner-shape.js after 6efb1b12. Our contour port followed the old file, so four enrolled render-corner-shape variants with concave corners and thick borders (superellipse(-2), superellipse(-7), notch and scoop) failed against the new reference. The new blitz-paint patch ports the rewritten corner_clip_out_path, including its spread adjustment for small radii, and clips corner points to the moved rect where each segment crosses an edge. Its unit test compares three corners with points computed by the reference script. NOTICE now cites the revision the port follows. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
css-grid-2 §12.5.1 now distributes the space left once the affected tracks reach their limits into the item's non-affected tracks before it grows any track past its growth limit (w3c/csswg-drafts#3648). Taffy skipped that step, so `min-content minmax(max-content, 30px)` sized to 20px 70px instead of 60px 30px. WPT ed5a113c rebaselined css-grid/parsing/grid-content-sized-columns-resolution.html for it. The new taffy patch adds the step; upstream Taffy lacks it too. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
css-grid-2 §12.5 step 2 sets an intrinsic track's growth limit to the largest contribution of its span-1 items, even when that is zero. Taffy ignored zero contributions, so a track holding only an empty item stayed unlimited and took the spanning items' extra space that should go to the other tracks. This fixes subtests 7 and 8 of css-grid/grid-model/grid-gutters-and-flex-content-001.html at WPT ed5a113c. Upstream Taffy has the same `> 0.0` check. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
css-align-3 §4.4.1.2 treats `safe` on an absolutely positioned box like the default overflow alignment. A box that overflows its inset-modified containing block stays aligned as specified, as far as the bounding rect of that block and the original containing block allows. Taffy instead moved it to the start of the grid area as soon as it overflowed. The default rule also used the grid area as the limit, not the grid's padding box. This makes the first two boxes of css-grid/abspos/grid-abspos-staticpos-align-self-safe-001.html match the reference that WPT ed5a113c changed. Upstream Taffy has the same fallback. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Four render-corner-shape variants and grid-gutters-and-flex-content-001 now pass. grid-content-sized-columns-resolution keeps one failing subtest and grid-abspos-staticpos-align-self-safe-001 two boxes; their reasons say why. grid-template-columns-fit-content-001 now fails. Its reference predates the "distribute space to non-affected tracks" step: the spec gives a fit-content(40px) column 40px of a spanning item's extra space where the reference gives it none. No engine runs fit-content tracks through the new step yet (WebKit keeps them off its new grid code). beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
The gate printed only how many tests matched their expectations, so a pin bump or a fix could not say how many subtests pass in total. It now also prints how many tests pass and how many of their subtests pass, both in the job log and in the step summary. Reftests and crashtests count as tests but contribute no subtests. Bazel shows the gate's output only when the gate fails, so wpt-ci.sh logs both totals lines from the summary on every run. beep-boop-🤖 Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
653f8f6 to
3a94c82
Compare
Summary
The WPT pin stayed at
6efb1b12(2026-08-29) for three months. This pull request moves the pin to upstream master ated5a113c(2026-11-26), rebaselines the gate, and fixes the regressions that the new tests found in WebMCP, the DOM, the typed OM, CORS,PerformanceObserver, Stylo math and colors, corner-shape painting and grid layout.Behavior and API impact
getTools()returnsToolobjects withsourceinstead ofwindow, andnullschemas and annotations when not given.executeTool()runs exactly the registration of theToolit gets, and takes an input object only (no JSON strings).toolactivatedandtoolcancelfire atdocument.modelContext, not atwindow.registerTool()accepts and checksoutputSchema, and annotations includeconsequentialHintanddebugging. The CDP tool list reports both hints.document.modelContext.waitForToolsUntil().importNode()clones a doctype instead of returning null.<select>with notypereports"button".input.switchis reflected.StylePropertyMap.append()rejects CSS-wide keywords and checks each value on its own.CSSNumericValue.parse()accepts math functions of any numeric type.PerformanceObserverdelivers mark and measure entries; before, it never called its callback.pow(),log(),round()andclamp()give NaN where CSS requires it, and NaN then computes to 0.noneserializes in its modern form:rgb(none none none)becomescolor(srgb none none none), andhsl()/hwb()keep their%.render-corner-shape.jsreference ated5a113c.safealignment of an absolutely positioned box limits overflow to the grid container's padding box.Implementation
tests: bump the pinned WPT revision: the new pin, the enrolled tests that upstream moved (130 moved, 9 deleted), and thewpt-ed5a113cexecutor image.scripts: keep the parent's type …anddom-shim: regenerate the WebIDL bindings: the WebIDL bindings, the IDL gap list andNOTICEat the new pin. A type gap on an override now keeps the parent's declaration. The larger bindings slow one unit test's imports, so itsbeforeAllgets a 30 s timeout.tests: rebaseline the WPT tests that upstream changed: the outcome changes, measured on CI. Each of the 99 PASS-to-FAIL or PASS-to-TIMEOUT changes passes at6efb1b12and fails ated5a113cwith the same engine build, so upstream test changes caused them. This commit also covers what main's move to Stylo 0.24 changed at the new pin: six tests pass and two css-align tests fail.NOTICEcitesed5a113cfor the corner-shape port.scripts: print the passing test and subtest totals in the WPT gate: the gate prints how many tests and subtests pass, in the job log and in the step summary.Validation
653f8f67e: passes (run 46050558596). 9,048 of 11,867 tests pass (76.2%), and 1,573,504 of 1,738,072 subtests pass (90.5%). The ci, e2e, Playwright and Puppeteer jobs pass too.getTools-imperative-schema.PerformanceObserver: 4 regressed tests pass, plus 16 performance-timeline and user-timing tests./css/css-values/and/css/css-color/show no subtest that went from pass to fail.grid-gutters-and-flex-content-001pass. 5 of 6 failing subtests ingrid-content-sized-columns-resolutionpass./css/css-grid/,/css/css-flexbox/,/css/css-position/and/css/css-align/have no other changes.pnpm run check,pnpm run lint:jsandnode scripts/generate-webidl-bindings.mjs --check: pass.I did not run the full WPT suite locally. The outcomes come from the CI gate on bazelflare.
Risks and follow-ups
Still pinned, with known causes:
flow-start,flow-endandsafe normalvalues (only Chrome supports them).nonechannel keywords in relative colors fromlch()/oklch()/color(), mixes betweenhsl()andhwb(), and unclamped calc() values inlab().grid-abspos-staticpos-align-self-safe-001: boxes 3 and 4 conflict with an existing Taffy patch that matches Chrome.grid-content-sized-columns-resolutionkeeps one failing subtest (gridAutoMaxContentUnsorted), which looks like a WPT bug: it expects the old values while its constrained twin expects the new ones.Blob.text()andTextDecoderBOM handling, and IDNA.New failure:
grid-template-columns-fit-content-001passed before and fails now. Its reference predates the css-grid-2 step that the Taffy fix implements. Chrome, Firefox and Safari still pass it, because none of them applies that step tofit-contenttracks yet. This pull request follows the spec and pins the test.A WebMCP
Toolis aProxywith no traps, so thatstructuredClone(tool)throws as the spec requires.executeTool()no longer accepts JSON strings. Code that relied on Chrome's temporary string fallback breaks.The rebaselined outcome changes carry no
reclassifiedmarker.Checklist
Signed-off-byline (git commit -s); see CONTRIBUTING.md.beep-boop-🤖