Promisify scroll: element.idl changes behind a flag. [chromium/src : main]

0 views
Skip to first unread message

Mustaq Ahmed (Gerrit)

unread,
Jun 17, 2025, 11:19:34 AMJun 17
to Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
Attention needed from Mustaq Ahmed

Message from Mustaq Ahmed

Set Ready For Review

Open in Gerrit

Related details

Attention is currently required from:
  • Mustaq Ahmed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
Gerrit-Change-Number: 6318459
Gerrit-PatchSet: 10
Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
Gerrit-CC: Alex Keng <shi...@microsoft.com>
Gerrit-Attention: Mustaq Ahmed <mus...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Jun 2025 15:19:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mustaq Ahmed (Gerrit)

unread,
Jun 17, 2025, 11:21:48 AMJun 17
to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
Attention needed from Vladimir Levin

Mustaq Ahmed added 1 comment

Patchset-level comments
File-level comment, Patchset 10 (Latest):
Mustaq Ahmed . resolved

ptal (the predecessor CL would be a no-change after the spec pr lands).

Open in Gerrit

Related details

Attention is currently required from:
  • Vladimir Levin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
Gerrit-Change-Number: 6318459
Gerrit-PatchSet: 10
Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Jun 2025 15:21:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Vladimir Levin (Gerrit)

unread,
Jun 18, 2025, 10:30:48 AMJun 18
to Mustaq Ahmed, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
Attention needed from Mustaq Ahmed

Vladimir Levin added 7 comments

File third_party/blink/renderer/core/dom/element.h
Line 534, Patchset 14 (Latest): void scrollIntoView(const V8UnionBooleanOrScrollIntoViewOptions* arg);
Vladimir Levin . unresolved

It might be worthwhile to rename these to ScrollIntoViewForTesting and similar if they are only for tests (can be a follow-up)

File third_party/blink/renderer/core/dom/element.cc
Line 1860, Patchset 14 (Latest):ScriptPromise<IDLUndefined> AdHocPromiseResolvedImmediately(
Vladimir Levin . unresolved

nit: CreateScrollResolvedPromise

Line 1874, Patchset 14 (Latest):ScriptPromise<IDLUndefined> PromiseRejectedWithDocumentError(
Vladimir Levin . unresolved

similarly CreateScrollRejectedPromise

Line 1883, Patchset 14 (Latest): resolver->RejectWithDOMException(DOMExceptionCode::kWrongDocumentError,
Vladimir Levin . unresolved

What happens when scroll functions are called on the wrong document today?

Line 1915, Patchset 14 (Latest): return AdHocPromiseResolvedImmediately(script_state);
Vladimir Levin . unresolved

I assume there's follow-up to actually implement the timing correctly? If so, can you add a TODO here

Line 2630, Patchset 14 (Latest): if (!InActiveDocument()) {
Vladimir Levin . unresolved

I don't think this is a "wrong document" but rather not an active document, so the error can likely be better. I'm also not convinced that we should error, rather than just resolving silently

File third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
Line 78, Patchset 14 (Latest):[FAIL] Element interface: operation scrollIntoView(optional (boolean or ScrollIntoViewOptions))
Vladimir Levin . unresolved

If we resolve the promise, do these go away?

Open in Gerrit

Related details

Attention is currently required from:
  • Mustaq Ahmed
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
    Gerrit-Change-Number: 6318459
    Gerrit-PatchSet: 14
    Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
    Gerrit-CC: Alex Keng <shi...@microsoft.com>
    Gerrit-Attention: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Comment-Date: Wed, 18 Jun 2025 14:30:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mustaq Ahmed (Gerrit)

    unread,
    Jun 20, 2025, 10:08:45 AMJun 20
    to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
    Attention needed from Vladimir Levin

    Mustaq Ahmed added 7 comments

    File third_party/blink/renderer/core/dom/element.h
    Line 534, Patchset 14: void scrollIntoView(const V8UnionBooleanOrScrollIntoViewOptions* arg);
    Vladimir Levin . resolved

    It might be worthwhile to rename these to ScrollIntoViewForTesting and similar if they are only for tests (can be a follow-up)

    Mustaq Ahmed

    Added a TODO for now.

    File third_party/blink/renderer/core/dom/element.cc
    Line 1860, Patchset 14:ScriptPromise<IDLUndefined> AdHocPromiseResolvedImmediately(
    Vladimir Levin . resolved

    nit: CreateScrollResolvedPromise

    Mustaq Ahmed

    Done

    Line 1874, Patchset 14:ScriptPromise<IDLUndefined> PromiseRejectedWithDocumentError(
    Vladimir Levin . resolved

    similarly CreateScrollRejectedPromise

    Mustaq Ahmed

    Done

    Line 1883, Patchset 14: resolver->RejectWithDOMException(DOMExceptionCode::kWrongDocumentError,
    Vladimir Levin . resolved

    What happens when scroll functions are called on the wrong document today?

    Mustaq Ahmed

    As you pointed out below, it is about "disconnected element" and not "wrong document". A call on a disconnected element is silently ignored.

    Line 1915, Patchset 14: return AdHocPromiseResolvedImmediately(script_state);
    Vladimir Levin . resolved

    I assume there's follow-up to actually implement the timing correctly? If so, can you add a TODO here

    Mustaq Ahmed

    I added a TODO in the function def above, instead of repeating the same comment at all callers.

    Line 2630, Patchset 14: if (!InActiveDocument()) {
    Vladimir Levin . resolved

    I don't think this is a "wrong document" but rather not an active document, so the error can likely be better. I'm also not convinced that we should error, rather than just resolving silently

    Mustaq Ahmed

    Yeah, that would match [our spec PR](https://github.com/w3c/csswg-drafts/pull/12355) too. Removed the rejection code.

    File third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
    Line 78, Patchset 14:[FAIL] Element interface: operation scrollIntoView(optional (boolean or ScrollIntoViewOptions))
    Vladimir Levin . resolved

    If we resolve the promise, do these go away?

    Mustaq Ahmed

    The error remains the same with "always resolve". Even the first diff above ("unhandled rejection") remains.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vladimir Levin
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
    Gerrit-Change-Number: 6318459
    Gerrit-PatchSet: 15
    Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
    Gerrit-CC: Alex Keng <shi...@microsoft.com>
    Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Jun 2025 14:08:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Vladimir Levin <vmp...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mustaq Ahmed (Gerrit)

    unread,
    Jun 20, 2025, 11:08:45 AMJun 20
    to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
    Attention needed from Vladimir Levin

    Mustaq Ahmed added 1 comment

    File third_party/blink/renderer/core/dom/element.h
    Line 534, Patchset 14: void scrollIntoView(const V8UnionBooleanOrScrollIntoViewOptions* arg);
    Vladimir Levin . resolved

    It might be worthwhile to rename these to ScrollIntoViewForTesting and similar if they are only for tests (can be a follow-up)

    Mustaq Ahmed

    Added a TODO for now.

    Mustaq Ahmed
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vladimir Levin
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
    Gerrit-Change-Number: 6318459
    Gerrit-PatchSet: 15
    Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
    Gerrit-CC: Alex Keng <shi...@microsoft.com>
    Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Jun 2025 15:08:40 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Vladimir Levin <vmp...@chromium.org>
    Comment-In-Reply-To: Mustaq Ahmed <mus...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vladimir Levin (Gerrit)

    unread,
    Jun 23, 2025, 12:30:12 PMJun 23
    to Mustaq Ahmed, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
    Attention needed from Mustaq Ahmed

    Vladimir Levin added 1 comment

    File third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
    Line 78, Patchset 14:[FAIL] Element interface: operation scrollIntoView(optional (boolean or ScrollIntoViewOptions))
    Vladimir Levin . unresolved

    If we resolve the promise, do these go away?

    Mustaq Ahmed

    The error remains the same with "always resolve". Even the first diff above ("unhandled rejection") remains.

    Vladimir Levin

    Why is this error happening?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mustaq Ahmed
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
    Gerrit-Change-Number: 6318459
    Gerrit-PatchSet: 15
    Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
    Gerrit-CC: Alex Keng <shi...@microsoft.com>
    Gerrit-Attention: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Comment-Date: Mon, 23 Jun 2025 16:30:06 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mustaq Ahmed (Gerrit)

    unread,
    Jun 23, 2025, 1:13:26 PMJun 23
    to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
    Attention needed from Vladimir Levin

    Mustaq Ahmed added 1 comment

    File third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
    Line 78, Patchset 14:[FAIL] Element interface: operation scrollIntoView(optional (boolean or ScrollIntoViewOptions))
    Vladimir Levin . resolved

    If we resolve the promise, do these go away?

    Mustaq Ahmed

    The error remains the same with "always resolve". Even the first diff above ("unhandled rejection") remains.

    Vladimir Levin

    Why is this error happening?

    Mustaq Ahmed

    The idlharness test confirms that the exposed `element.scroll*` methods match the *external* spec-ed idl definitions in `external/wpt/interfaces/cssom-view.idl`. The external one would change only after my [PR](https://github.com/w3c/csswg-drafts/pull/12355) lands.

    Here is a [DNS CL](https://chromium-review.googlesource.com/c/chromium/src/+/6652887) that modifies the external file and locally passes the idlharness test w/o these diffs.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vladimir Levin
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
    Gerrit-Change-Number: 6318459
    Gerrit-PatchSet: 15
    Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
    Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
    Gerrit-CC: Alex Keng <shi...@microsoft.com>
    Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
    Gerrit-Comment-Date: Mon, 23 Jun 2025 17:13:21 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mustaq Ahmed (Gerrit)

    unread,
    Jun 23, 2025, 1:34:02 PMJun 23
    to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
    Attention needed from Vladimir Levin

    Mustaq Ahmed added 1 comment

    Commit Message
    Line 14, Patchset 17 (Latest):We know about one exposed regression here which seems too contrived to
    cause any compat concerns: an `eval()` on a malformed
    `element.scroll*()` call no longer throws synchronously; instead it now
    returns a Promise synchronously which throws asynchronously.
    Mustaq Ahmed . unresolved

    FYI vmpstr@.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vladimir Levin
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 17
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
      Gerrit-Comment-Date: Mon, 23 Jun 2025 17:33:57 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Vladimir Levin (Gerrit)

      unread,
      Jun 23, 2025, 4:23:34 PMJun 23
      to Mustaq Ahmed, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
      Attention needed from Mustaq Ahmed

      Vladimir Levin added 2 comments

      Commit Message
      Line 14, Patchset 17 (Latest):We know about one exposed regression here which seems too contrived to
      cause any compat concerns: an `eval()` on a malformed
      `element.scroll*()` call no longer throws synchronously; instead it now
      returns a Promise synchronously which throws asynchronously.
      Mustaq Ahmed . unresolved

      FYI vmpstr@.

      Vladimir Levin

      File a CSSWG issue for this explaining that it's a consequence of the resolution and proposing that we accept this change

      File third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
      Line 78, Patchset 14:[FAIL] Element interface: operation scrollIntoView(optional (boolean or ScrollIntoViewOptions))
      Vladimir Levin . resolved

      If we resolve the promise, do these go away?

      Mustaq Ahmed

      The error remains the same with "always resolve". Even the first diff above ("unhandled rejection") remains.

      Vladimir Levin

      Why is this error happening?

      Mustaq Ahmed

      The idlharness test confirms that the exposed `element.scroll*` methods match the *external* spec-ed idl definitions in `external/wpt/interfaces/cssom-view.idl`. The external one would change only after my [PR](https://github.com/w3c/csswg-drafts/pull/12355) lands.

      Here is a [DNS CL](https://chromium-review.googlesource.com/c/chromium/src/+/6652887) that modifies the external file and locally passes the idlharness test w/o these diffs.

      Vladimir Levin

      Should we wait for your spec change to land?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Mustaq Ahmed
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 17
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      Gerrit-Attention: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Comment-Date: Mon, 23 Jun 2025 20:23:29 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mustaq Ahmed (Gerrit)

      unread,
      Jun 23, 2025, 5:26:02 PMJun 23
      to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
      Attention needed from Vladimir Levin

      Mustaq Ahmed added 1 comment

      Commit Message
      Line 14, Patchset 17:We know about one exposed regression here which seems too contrived to

      cause any compat concerns: an `eval()` on a malformed
      `element.scroll*()` call no longer throws synchronously; instead it now
      returns a Promise synchronously which throws asynchronously.
      Mustaq Ahmed . resolved

      FYI vmpstr@.

      Vladimir Levin

      File a CSSWG issue for this explaining that it's a consequence of the resolution and proposing that we accept this change

      Mustaq Ahmed

      I highlighted the case [here](https://github.com/w3c/csswg-drafts/issues/1562#issuecomment-2997993316), in the existing issue.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Vladimir Levin
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 18
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
      Gerrit-Comment-Date: Mon, 23 Jun 2025 21:25:59 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Vladimir Levin (Gerrit)

      unread,
      Jun 24, 2025, 11:23:59 AMJun 24
      to Mustaq Ahmed, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org
      Attention needed from Mustaq Ahmed

      Vladimir Levin voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Mustaq Ahmed
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 18
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      Gerrit-Attention: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 15:23:46 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Mustaq Ahmed (Gerrit)

      unread,
      Jun 24, 2025, 11:53:45 AMJun 24
      to Vladimir Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org

      Mustaq Ahmed voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 19
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 15:53:39 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jun 24, 2025, 12:50:47 PMJun 24
      to Mustaq Ahmed, Vladimir Levin, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      18 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
      Insertions: 1, Deletions: 2.

      The diff is too large to show. Please review the diff.
      ```

      Change information

      Commit message:
      Promisify scroll: element.idl changes behind a flag.

      While the IDL change here cannot be gated directly by the RTE flag
      `ProgrammaticScrollPromise` due to Blink IDL limitations, the return
      values exposed to JS remains `undefined` through the use of
      `EmptyPromise`.


      We know about one exposed regression here which seems too contrived to
      cause any compat concerns: a malformed `element.scroll*()` call no

      longer throws synchronously; instead it now returns a Promise
      synchronously which throws asynchronously.
      Bug: 41406914, 399876609
      Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Commit-Queue: Mustaq Ahmed <mus...@chromium.org>
      Reviewed-by: Vladimir Levin <vmp...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1477994}
      Files:
      • M third_party/blink/renderer/core/dom/element.cc
      • M third_party/blink/renderer/core/dom/element.h
      • M third_party/blink/renderer/core/dom/element.idl
      • M third_party/blink/renderer/core/paint/cull_rect_updater_test.cc
      • M third_party/blink/renderer/platform/runtime_enabled_features.json5
      • M third_party/blink/web_tests/external/wpt/css/cssom-view/idlharness-expected.txt
      Change size: M
      Delta: 6 files changed, 121 insertions(+), 28 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Vladimir Levin
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 20
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      open
      diffy
      satisfied_requirement

      luci-bisection@appspot.gserviceaccount.com (Gerrit)

      unread,
      Jun 24, 2025, 3:38:28 PMJun 24
      to Mustaq Ahmed, Chromium LUCI CQ, Vladimir Levin, AyeAye, chromium...@chromium.org, Alex Keng, blink-revie...@chromium.org, blink-rev...@chromium.org, kinuko...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, jmedle...@chromium.org, steimel+watch...@chromium.org

      Message from luci-bi...@appspot.gserviceaccount.com

      LUCI Bisection has identified this change as the cause of a test failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/test-analysis/b/5162228857700352

      Sample build with failed test: https://ci.chromium.org/b/8711159289011790049
      Affected test(s):
      [ninja://:headless_shell_wpt/virtual/threaded-prefer-compositing/external/wpt/css/cssom-view/idlharness.html](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2F:headless_shell_wpt%2Fvirtual%2Fthreaded-prefer-compositing%2Fexternal%2Fwpt%2Fcss%2Fcssom-view%2Fidlharness.html?q=VHash%3A7a1dc22ad11924b1)
      A revert for this change was not created because there are merged changes depending on it.

      If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Ftest-analysis%2Fb%2F5162228857700352&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F6318459&type=BUG

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ief59aad3ba24212ecb5080261e71e843eb44e446
      Gerrit-Change-Number: 6318459
      Gerrit-PatchSet: 20
      Gerrit-Owner: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Mustaq Ahmed <mus...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Alex Keng <shi...@microsoft.com>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 19:38:13 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages