mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
CanGc fixes in errorevent.rs
(#33960)
* CanGc fixes in errorevent.rs Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Allow too_many_arguments to avoid lint error Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
575e885529
commit
7015e0fb5f
21 changed files with 79 additions and 51 deletions
|
@ -289,6 +289,7 @@ pub fn handle_execute_script(
|
|||
window: Option<DomRoot<Window>>,
|
||||
eval: String,
|
||||
reply: IpcSender<WebDriverJSResult>,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
match window {
|
||||
Some(window) => {
|
||||
|
@ -301,6 +302,7 @@ pub fn handle_execute_script(
|
|||
rval.handle_mut(),
|
||||
ScriptFetchOptions::default_classic_script(global),
|
||||
global.api_base_url(),
|
||||
can_gc,
|
||||
);
|
||||
jsval_to_webdriver(*cx, window.upcast::<GlobalScope>(), rval.handle())
|
||||
};
|
||||
|
@ -319,6 +321,7 @@ pub fn handle_execute_async_script(
|
|||
window: Option<DomRoot<Window>>,
|
||||
eval: String,
|
||||
reply: IpcSender<WebDriverJSResult>,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
match window {
|
||||
Some(window) => {
|
||||
|
@ -331,6 +334,7 @@ pub fn handle_execute_async_script(
|
|||
rval.handle_mut(),
|
||||
ScriptFetchOptions::default_classic_script(global),
|
||||
global.api_base_url(),
|
||||
can_gc,
|
||||
);
|
||||
},
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue