diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 743d9226302..84bf1b36918 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -3108,7 +3108,7 @@ impl ScriptThread { ) }); - let opener_browsing_context = opener.and_then(|id| ScriptThread::find_window_proxy(id)); + let opener_browsing_context = opener.and_then(ScriptThread::find_window_proxy); let creator = CreatorBrowsingContextInfo::from( parent_browsing_context.as_deref(), @@ -3164,7 +3164,7 @@ impl ScriptThread { _ => None, }; - let opener_browsing_context = opener.and_then(|id| ScriptThread::find_window_proxy(id)); + let opener_browsing_context = opener.and_then(ScriptThread::find_window_proxy); let creator = CreatorBrowsingContextInfo::from( parent_browsing_context.as_deref(), |