mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script: Propagate &mut JSContext inside evaluate_js_on_global (#42846)
Since `evaluate_js_on_global` called `enter_realm` and there were already some callee that did it, I've actually passed `&mut CurrentRealm`. Also converted `Window::WebdriverException` to pass `&mut JSContext` inside `javascript_error_info_from_error_info`. Testing: A successful build is enough Part of #40600 --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
@@ -193,11 +193,11 @@ impl HTMLIFrameElement {
|
||||
let window_proxy = self.GetContentWindow();
|
||||
if let Some(window_proxy) = window_proxy {
|
||||
if !ScriptThread::navigate_to_javascript_url(
|
||||
cx,
|
||||
&document.global(),
|
||||
&window_proxy.global(),
|
||||
&mut load_data,
|
||||
Some(self.upcast()),
|
||||
CanGc::from_cx(cx),
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user