-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support non-"fully active" documents #415
Comments
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 24, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 25, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 25, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Commit-Position: refs/heads/main@{#962930}
aarongable
pushed a commit
to chromium/chromium
that referenced
this issue
Jan 25, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Commit-Position: refs/heads/main@{#962930}
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 25, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Commit-Position: refs/heads/main@{#962930}
For the record: I've recently landed a patch in Chromium that makes |
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Feb 5, 2022
…en the document is not fully active., a=testonly Automatic update from web-platform-tests sensors: Do nothing in Sensor.start() when the document is not fully active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Commit-Position: refs/heads/main@{#962930} -- wpt-commits: 57fbbb2179141a672ee861ba53d9afb705bdb7f8 wpt-pr: 32514
jamienicol
pushed a commit
to jamienicol/gecko
that referenced
this issue
Feb 7, 2022
…en the document is not fully active., a=testonly Automatic update from web-platform-tests sensors: Do nothing in Sensor.start() when the document is not fully active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Commit-Position: refs/heads/main@{#962930} -- wpt-commits: 57fbbb2179141a672ee861ba53d9afb705bdb7f8 wpt-pr: 32514
GrumpyOldTroll
pushed a commit
to GrumpyOldTroll/chromium
that referenced
this issue
Mar 3, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. (cherry picked from commit b93b733) Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Original-Commit-Position: refs/heads/main@{#962930} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3423905 Auto-Submit: Raphael Kubo Da Costa <[email protected]> Commit-Queue: Rubber Stamper <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Cr-Commit-Position: refs/branch-heads/4844@{chromium#104} Cr-Branched-From: 007241c-refs/heads/main@{#961656}
mjfroman
pushed a commit
to mjfroman/moz-libwebrtc-third-party
that referenced
this issue
Oct 14, 2022
…active. When a sensor is created on e.g. an iframe that is later removed from its parent via removeChild(), we end up in a situation where a sensor instance did get created but which does not have a valid ExecutionContext by the time start() is invoked. Check for a valid ExecutionContext when start() is called and bail out early if it is null. w3c/sensors#415 tracks handling non-fully active documents from a spec perspective; once that one is fixed we should probably throw an error in this case rather than silently doing nothing. Bug: 1289924 Change-Id: I2b033252d93347ba7c91385bdb510b69b8298aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412476 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Raphael Kubo Da Costa <[email protected]> Cr-Commit-Position: refs/heads/main@{#962930} NOKEYCHECK=True GitOrigin-RevId: b93b733b928610c36c328a4685c2129ed8a80e7b
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should check that the spec complies with https://w3ctag.github.io/design-principles/#support-non-fully-active
Given https://w3c.github.io/sensors/#can-expose-sensor-readings is conditional to https://html.spec.whatwg.org/multipage/interaction.html#currently-focused-area-of-a-top-level-browsing-context (among other checks) we may be good.
@marcoscaceres is probably interested in this design discussion.
The text was updated successfully, but these errors were encountered: