diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-05-10 23:51:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 23:51:12 -0400 |
commit | d9559499b22bb4724f9b6108919f8d24bdbc83d9 (patch) | |
tree | 692e26002cd8afe36e8ab6679d929be11e58a0af /components/script/script_thread.rs | |
parent | 887f43b65bacad5490365f14d54bf25af4d3234b (diff) | |
parent | 7c1c1d9af4735ae86968d65d78b981b7c14585f3 (diff) | |
download | servo-d9559499b22bb4724f9b6108919f8d24bdbc83d9.tar.gz servo-d9559499b22bb4724f9b6108919f8d24bdbc83d9.zip |
Auto merge of #23163 - jdm:smup66, r=asajeffrey
Upgrade to SpiderMonkey 66
<!-- 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/23163)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 4fbaec2b465..cc0500805aa 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -99,7 +99,7 @@ use hyper_serde::Serde; use ipc_channel::ipc::{self, IpcSender}; use ipc_channel::router::ROUTER; use js::glue::GetWindowProxyClass; -use js::jsapi::{JSAutoCompartment, JSContext, JS_SetWrapObjectCallbacks}; +use js::jsapi::{JSAutoRealm, JSContext, JS_SetWrapObjectCallbacks}; use js::jsapi::{JSTracer, SetWindowProxyClass}; use js::jsval::UndefinedValue; use js::rust::ParentRuntime; @@ -1971,7 +1971,7 @@ impl ScriptThread { fn handle_exit_fullscreen(&self, id: PipelineId) { let document = self.documents.borrow().find_document(id); if let Some(document) = document { - let _ac = JSAutoCompartment::new( + let _ac = JSAutoRealm::new( document.global().get_cx(), document.reflector().get_jsobject().get(), ); @@ -3278,7 +3278,7 @@ impl ScriptThread { let script_source = percent_decode(encoded.as_bytes()).decode_utf8_lossy(); // Script source is ready to be evaluated (11.) - let _ac = JSAutoCompartment::new( + let _ac = JSAutoRealm::new( global_scope.get_cx(), global_scope.reflector().get_jsobject().get(), ); |