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

Fix up the focused area restrictions. #403

Closed
wants to merge 1 commit into from

Conversation

jyasskin
Copy link
Member

@jyasskin jyasskin commented Jan 13, 2020

I think this is what you meant. The old text in Mitigations, "the currently focused area document", doesn't have a meaning. The text in "mandatory conditions" was better, but isn't clear about which currently focused area to use, since every top-level browsing context has one.


Preview | Diff

document.
[=Sensor readings=] are only available for [=active documents=] whose origin is
[=same origin-domain=] with the document of the [=currently focused area=] of
the [=top-level browsing context=] of the specified [=active document=].
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure which document the "of the specified active document" clause refers to.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that the idea is that, to determine whether sensor readings are available within a particular document, you look at that document's top-level browsing context, find the focused document inside it, and check whether the two documents are same-origin-domain. ... How about:

Suggested change
the [=top-level browsing context=] of the specified [=active document=].
the same [=top-level browsing context=].

?

Base automatically changed from master to main February 23, 2021 03:22
@rakuco
Copy link
Member

rakuco commented Feb 17, 2024

I ended up fixing this in #483: there's an algorithm that takes a Document, gets its navigable, the navigable's top-level traversable's focusable area's DOM anchor's node document (what a mouthful) and compares each one's relevant settings object's origin.

@rakuco rakuco closed this Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants