Skip to content

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

Merged
domenic merged 1 commit intomainfrom
no-fully-active-popover
Oct 30, 2024
Merged

Guard showModal() and showPopover() with fully active checks#10705
domenic merged 1 commit intomainfrom
no-fully-active-popover

Conversation

@domenic
Copy link
Copy Markdown
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
Copy Markdown

maraisr commented Oct 25, 2024

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

@annevk
Copy link
Copy Markdown
Member

annevk commented Oct 25, 2024

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

@maraisr
Copy link
Copy Markdown

maraisr commented Oct 25, 2024

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

@annevk
Copy link
Copy Markdown
Member

annevk commented Oct 25, 2024

Nice, and yes.

@maraisr
Copy link
Copy Markdown

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
@domenic domenic deleted the no-fully-active-popover branch October 30, 2024 05:36
@maraisr
Copy link
Copy Markdown

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 <domenic@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
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 <domenic@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
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.)
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 <domenic@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
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
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 <domenic@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
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 00e613c)
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 00e613c)
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 00e613c)
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…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 <domenic@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1375681}

--

wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760
wpt-pr: 48854
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