Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard showModal() and showPopover() with fully active checks #10705

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

domenic
Copy link
Member

@domenic domenic commented Oct 16, 2024

Closes #10659. This effectively only impacts dialogs and popovers "synthetic" documents, such as those created via document.implementation.createHTMLDocument().

(See WHATWG Working Mode: Changes for more details.)


/interactive-elements.html ( diff )
/popover.html ( diff )

Closes #10659. This effectively only impacts dialogs and popovers "synthetic" documents, such as those created via document.implementation.createHTMLDocument().
@domenic domenic added normative change topic: dialog The <dialog> element topic: popover The popover attribute and friends labels Oct 16, 2024
@domenic domenic added the needs tests Moving the issue forward requires someone to write tests label Oct 23, 2024
@maraisr
Copy link

maraisr commented Oct 25, 2024

@annevk Can I take a stab at the WebKit change for this?

@annevk
Copy link
Member

annevk commented Oct 25, 2024

Please and thank you! 😊 Perhaps you're also interested in writing the tests?

@maraisr
Copy link

maraisr commented Oct 25, 2024

I've never done that before, but I can try. On wpt yeah?

@annevk
Copy link
Member

annevk commented Oct 25, 2024

Nice, and yes.

@maraisr
Copy link

maraisr commented Oct 28, 2024

@annevk I gave writing tests a go here please do point me in a direction if that is wrongly done, or what-have-you. Given that is all good, I will start with the WebKit change (and import of the tests).

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 29, 2024
See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
@domenic domenic removed the needs tests Moving the issue forward requires someone to write tests label Oct 30, 2024
@domenic domenic merged commit 70f2b06 into main Oct 30, 2024
2 checks passed
@domenic domenic deleted the no-fully-active-popover branch October 30, 2024 05:36
@maraisr
Copy link

maraisr commented Oct 30, 2024

Thanks @domenic I'll close my wpt pr's then... Though must say, do not appreciate being led on like this. But all be good!

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 30, 2024
See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Domenic Denicola <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375681}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 30, 2024
See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Domenic Denicola <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375681}
AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request Oct 31, 2024
This corresponds to this spec change:
whatwg/html#10705

(We don't implement showPopover() yet.)
kalenikaliaksandr pushed a commit to LadybirdBrowser/ladybird that referenced this pull request Oct 31, 2024
This corresponds to this spec change:
whatwg/html#10705

(We don't implement showPopover() yet.)
maraisr added a commit to maraisr/WebKit that referenced this pull request Oct 31, 2024
…ve checks

https://bugs.webkit.org/show_bug.cgi?id=281550

Reviewed by NOBODY (OOPS!).

There was a WHATWG/html spec change to now guard showModal() and popover
validity with fully active documents. I also ported the relevent wpt
tests for this change.

Spec change: <whatwg/html#10705>

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document-expected.txt: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document.html: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-showModal-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-showModal.html:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-active-document-expected.txt: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-active-document.html: Rebaseline.
* Source/WebCore/html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::showModal):
* Source/WebCore/html/HTMLElement.cpp:
(WebCore::checkPopoverValidity):
maraisr added a commit to maraisr/WebKit that referenced this pull request Oct 31, 2024
…ve checks

https://bugs.webkit.org/show_bug.cgi?id=281550

Reviewed by NOBODY (OOPS!).

There was a WHATWG/html spec change to now guard showModal() and popover
validity with fully active documents. I also ported the relevent wpt
tests for this change.

Spec change: <whatwg/html#10705>

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document-expected.txt: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document.html: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-showModal-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-showModal.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-active-document-expected.txt: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-active-document.html: Rebaseline.
* Source/WebCore/html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::showModal):
* Source/WebCore/html/HTMLElement.cpp:
(WebCore::checkPopoverValidity):
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 31, 2024
…non-active documents, a=testonly

Automatic update from web-platform-tests
Throw exception for popovers/dialogs in non-active documents

See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Domenic Denicola <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 1, 2024
…non-active documents, a=testonly

Automatic update from web-platform-tests
Throw exception for popovers/dialogs in non-active documents

See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <domenicchromium.org>
Auto-Submit: Mason Freed <masonfchromium.org>
Commit-Queue: Domenic Denicola <domenicchromium.org>
Cr-Commit-Position: refs/heads/main{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854

UltraBlame original commit: ac6cc55b745eb0d675d453266bde353b7d335402
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 1, 2024
…non-active documents, a=testonly

Automatic update from web-platform-tests
Throw exception for popovers/dialogs in non-active documents

See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <domenicchromium.org>
Auto-Submit: Mason Freed <masonfchromium.org>
Commit-Queue: Domenic Denicola <domenicchromium.org>
Cr-Commit-Position: refs/heads/main{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854

UltraBlame original commit: ac6cc55b745eb0d675d453266bde353b7d335402
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 1, 2024
…non-active documents, a=testonly

Automatic update from web-platform-tests
Throw exception for popovers/dialogs in non-active documents

See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <domenicchromium.org>
Auto-Submit: Mason Freed <masonfchromium.org>
Commit-Queue: Domenic Denicola <domenicchromium.org>
Cr-Commit-Position: refs/heads/main{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854

UltraBlame original commit: ac6cc55b745eb0d675d453266bde353b7d335402
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Nov 1, 2024
…non-active documents, a=testonly

Automatic update from web-platform-tests
Throw exception for popovers/dialogs in non-active documents

See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Domenic Denicola <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854
webkit-commit-queue pushed a commit to maraisr/WebKit that referenced this pull request Nov 1, 2024
…ve checks

https://bugs.webkit.org/show_bug.cgi?id=281550

Reviewed by Darin Adler.

There was a WHATWG/html spec change to now guard showModal() and popover
validity with fully active documents. I also ported the relevent wpt
tests for this change.

Spec change: <whatwg/html#10705>

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document-expected.txt: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document.html: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-showModal-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-showModal.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-active-document-expected.txt: Rebaseline.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-active-document.html: Rebaseline.
* Source/WebCore/html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::showModal):
* Source/WebCore/html/HTMLElement.cpp:
(WebCore::checkPopoverValidity):

Canonical link: https://commits.webkit.org/286020@main
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Nov 5, 2024
…non-active documents, a=testonly

Automatic update from web-platform-tests
Throw exception for popovers/dialogs in non-active documents

See discussion at:
  whatwg/html#10659

and spec PR at:
  whatwg/html#10705

Web-facing change PSA:
https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ

Fixed: 373684393
Change-Id: I50e400ee526775f915f006865301fff2f04016b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740
Reviewed-by: Domenic Denicola <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Domenic Denicola <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854
nico pushed a commit to nico/serenity that referenced this pull request Nov 12, 2024
This corresponds to this spec change:
whatwg/html#10705

(We don't implement showPopover() yet.)

(cherry picked from commit 00e613c7df7ac26ba28e11d172207c045d35a542)
nico pushed a commit to nico/serenity that referenced this pull request Nov 12, 2024
This corresponds to this spec change:
whatwg/html#10705

(We don't implement showPopover() yet.)

(cherry picked from commit 00e613c7df7ac26ba28e11d172207c045d35a542)
nico pushed a commit to SerenityOS/serenity that referenced this pull request Nov 12, 2024
This corresponds to this spec change:
whatwg/html#10705

(We don't implement showPopover() yet.)

(cherry picked from commit 00e613c7df7ac26ba28e11d172207c045d35a542)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
normative change topic: dialog The <dialog> element topic: popover The popover attribute and friends
Development

Successfully merging this pull request may close these issues.

Consider throwing for showModal() and showPopover() in non-fully-active documents
3 participants