Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enter incumbent script to ensure it has incumbent global
  • Loading branch information
CYBAI committed Jun 13, 2020
1 parent 5ee555f commit 9798373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/script/dom/readablestream.rs
Expand Up @@ -6,7 +6,7 @@ use crate::dom::bindings::conversions::{ConversionBehavior, ConversionResult};
use crate::dom::bindings::error::Error;
use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector};
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::settings_stack::AutoEntryScript;
use crate::dom::bindings::settings_stack::{AutoEntryScript, AutoIncumbentScript};
use crate::dom::bindings::utils::get_dictionary_property;
use crate::dom::globalscope::GlobalScope;
use crate::dom::promise::Promise;
Expand Down Expand Up @@ -118,6 +118,7 @@ impl ReadableStream {
source: ExternalUnderlyingSource,
) -> DomRoot<ReadableStream> {
let _ar = enter_realm(global);
let _ais = AutoIncumbentScript::new(global);
let cx = global.get_cx();

let source = Rc::new(ExternalUnderlyingSourceController::new(source));
Expand Down

0 comments on commit 9798373

Please sign in to comment.