diff --git a/components/script/dom/servoparser/async_html.rs b/components/script/dom/servoparser/async_html.rs index ed405c9ca61..551692af1f8 100644 --- a/components/script/dom/servoparser/async_html.rs +++ b/components/script/dom/servoparser/async_html.rs @@ -318,7 +318,7 @@ impl Tokenizer { let script = self.get_node(&script.id); return TokenizerResult::Script(DomRoot::from_ref(script.downcast().unwrap())); }, - ToTokenizerMsg::End => unreachable!(), + _ => unreachable!(), }; } } @@ -334,8 +334,12 @@ impl Tokenizer { .expect("Unexpected channel panic in main thread.") { ToTokenizerMsg::ProcessOperation(parse_op) => self.process_operation(parse_op), + ToTokenizerMsg::TokenizerResultDone { updated_input: _ } | + ToTokenizerMsg::TokenizerResultScript { + script: _, + updated_input: _, + } => continue, ToTokenizerMsg::End => return, - _ => unreachable!(), }; } } diff --git a/tests/wpt/mozilla/meta/mozilla/parser-reentrancy-customelement.window.js.ini b/tests/wpt/mozilla/meta/mozilla/parser-reentrancy-customelement.window.js.ini deleted file mode 100644 index 68996501463..00000000000 --- a/tests/wpt/mozilla/meta/mozilla/parser-reentrancy-customelement.window.js.ini +++ /dev/null @@ -1,6 +0,0 @@ -[parser-reentrancy-customelement.window.html?default] - prefs: ["dom.servoparser.async_html_tokenizer.enabled:false"] - -[parser-reentrancy-customelement.window.html?async] - expected: CRASH - prefs: ["dom.servoparser.async_html_tokenizer.enabled:true"] \ No newline at end of file