servo/components/script
bors-servo 293ccd07e8
Auto merge of #24133 - paulrouget:userAction, r=jdm
Do not allow XR session on non user-activated events

This sets the thread in "user interaction mode" when the dispatched event is trusted. I also tried an approach where we would not rely on the dispatched event but just set "user interaction mode" when we get a compositor event (which, we can assume, are only user generated). That worked as well.

Fixes #23787.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24133)
<!-- Reviewable:end -->
2019-09-20 06:54:19 -04:00
..
docs
dom Auto merge of #24133 - paulrouget:userAction, r=jdm 2019-09-20 06:54:19 -04:00
task_source
body.rs Modify *::get_cx methods to return a safe JSContext instead of a raw one 2019-07-24 09:53:10 +01:00
build.rs Remove usage of various unsafe keyword 2019-08-09 00:43:28 +01:00
Cargo.toml Replace use of gleam in webgl with sparkle. 2019-09-11 11:40:04 -04:00
clipboard_provider.rs Remove not needed DummyClipboardContext 2019-06-13 20:20:25 +02:00
CMakeLists.txt Generate apis.html and css-properties.json for docs as part of crates’ build scripts 2019-07-30 08:37:33 +02:00
compartments.rs Use safe JSContext in compartments 2019-08-09 00:02:10 +01:00
devtools.rs Modify *::get_cx methods to return a safe JSContext instead of a raw one 2019-07-24 09:53:10 +01:00
document_loader.rs Remove unused code from script* crates 2019-06-02 07:12:26 +02:00
fetch.rs Create a helper API for entering a DOM object's compartment 2019-06-29 19:23:17 +02:00
image_listener.rs
layout_image.rs
lib.rs Remove uses of mem::uninitialized 2019-07-17 10:48:54 +02:00
mem.rs
microtask.rs Use safe JSContext in MicrotaskQueue 2019-08-09 00:02:10 +01:00
network_listener.rs Let resources timing entries be added to performance entry buffer. 2019-06-11 09:40:31 -07:00
script_runtime.rs Work around crash on Windows when returning JS::Value by value. 2019-08-30 17:29:10 -07:00
script_thread.rs Do not allow XR session on non user-activated events 2019-09-20 07:52:26 +02:00
serviceworker_manager.rs
serviceworkerjob.rs
stylesheet_loader.rs Prefetch img and scripts during parsing 2019-09-10 16:13:49 -05:00
stylesheet_set.rs
task.rs Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30) 2019-07-31 13:34:01 +02:00
task_manager.rs
task_queue.rs
test.rs
textinput.rs Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30) 2019-07-31 13:34:01 +02:00
timers.rs Modify *::get_cx methods to return a safe JSContext instead of a raw one 2019-07-24 09:53:10 +01:00
unpremultiplytable.rs
webdriver_handlers.rs Implement ElementClick wd command 2019-08-31 10:14:40 +03:00