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

Consume user activation when creating a new top-level traversable #10547

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CanadaHonk
Copy link
Member

@CanadaHonk CanadaHonk commented Aug 5, 2024

Closes #10108.

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


/document-sequences.html ( diff )

Copy link
Member

@zcorpan zcorpan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks reasonable. It will only consume when actually creating a top-level traversable.

<span>transient activation</span>; otherwise false.</p></li>

<li><p>If <var>consume</var> is true, then <span>consume user activation</span> of
<span data-x="nav-window">active window</span>.</p></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just always consume? This seems to be against how consume is meant to be used.

@@ -96807,6 +96807,12 @@ interface <dfn interface>NotRestoredReasons</dfn> {

<dd>
<ol>
<li><p>Let <var>consume</var> be true if <span data-x="nav-window">active window</span> has
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"active window" is a property of a navigable. You need to specify which navigable.

@zcorpan zcorpan self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Should <a target="_blank"> and window.open consume the transient activation?
3 participants