-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closes #10659. This effectively only impacts dialogs and popovers "synthetic" documents, such as those created via document.implementation.createHTMLDocument().
domenic
added
normative change
topic: dialog
The <dialog> element
topic: popover
The popover attribute and friends
labels
Oct 16, 2024
annevk
approved these changes
Oct 22, 2024
domenic
added
the
needs tests
Moving the issue forward requires someone to write tests
label
Oct 23, 2024
@annevk Can I take a stab at the WebKit change for this? |
Please and thank you! 😊 Perhaps you're also interested in writing the tests? |
I've never done that before, but I can try. On wpt yeah? |
Nice, and yes. |
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
removed
the
needs tests
Moving the issue forward requires someone to write tests
label
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 )