···11--- original
22+++ modified
33-@@ -203,6 +203,11 @@
44- focus_initiator: FocusInitiator,
33+@@ -297,6 +297,11 @@
44+ new_focus_target: &FocusableArea,
55 can_gc: CanGc,
66 ) {
77+ // Ignore focus changes for "hide focus" embedded webviews.
···99+ return;
1010+ }
1111+
1212- let (new_focused, new_focus_state) = match focus_operation {
1313- FocusOperation::Focus(focusable_area) => (focusable_area, true),
1414- FocusOperation::Unfocus => (FocusableArea::Viewport, false),
1212+ let new_focus_chain_was_empty = new_focus_chain.is_empty();
1313+1414+ // Step 1: If the last entry in old chain and the last entry in new chain are the same,
+6-6
patches/components/script/dom/window.rs.patch
···105105 // Step 6: Let userPromptHandler be WebDriver BiDi user prompt opened with this,
106106 // "prompt", and message.
107107 // TODO: Add support for WebDriver BiDi.
108108-@@ -1730,6 +1759,26 @@
108108+@@ -1728,6 +1757,26 @@
109109 // https://html.spec.whatwg.org/multipage/#windoweventhandlers
110110 window_event_handlers!();
111111···132132 /// <https://developer.mozilla.org/en-US/docs/Web/API/Window/screen>
133133 fn Screen(&self, can_gc: CanGc) -> DomRoot<Screen> {
134134 self.screen.or_init(|| Screen::new(self, can_gc))
135135-@@ -3113,9 +3162,33 @@
135135+@@ -3111,9 +3160,33 @@
136136 &self,
137137 input_event: &ConstellationInputEvent,
138138 ) -> Option<HitTestResult> {
···169169 }
170170171171 #[expect(unsafe_code)]
172172-@@ -3134,8 +3207,25 @@
172172+@@ -3132,8 +3205,25 @@
173173 // SAFETY: This is safe because `Window::query_elements_from_point` has ensured that
174174 // layout has run and any OpaqueNodes that no longer refer to real nodes are gone.
175175 let address = UntrustedNodeAddress(result.node.0 as *const c_void);
···196196 cursor: result.cursor,
197197 point_in_node: result.point_in_target,
198198 point_in_frame,
199199-@@ -3678,6 +3768,8 @@
199199+@@ -3676,6 +3766,8 @@
200200 player_context: WindowGLContext,
201201 #[cfg(feature = "webgpu")] gpu_id_hub: Arc<IdentityHub>,
202202 inherited_secure_context: Option<bool>,
···205205 theme: Theme,
206206 weak_script_thread: Weak<ScriptThread>,
207207 ) -> DomRoot<Self> {
208208-@@ -3704,6 +3796,8 @@
208208+@@ -3702,6 +3794,8 @@
209209 gpu_id_hub,
210210 inherited_secure_context,
211211 unminify_js,
···214214 Some(font_context),
215215 ),
216216 ongoing_navigation: Default::default(),
217217-@@ -3989,3 +4083,115 @@
217217+@@ -3987,3 +4081,115 @@
218218 Self::create_named_properties_object(cx, proto, object)
219219 }
220220 }