···11--- original
22+++ modified
33-@@ -1055,9 +1055,10 @@
33+@@ -1056,9 +1056,10 @@
44 // Return the result of loading an XML document given navigationParams and type.
55 MediaType::Xml => self.load_xml_document(parser),
66 // Return the result of loading a text document given navigationParams and type.
···1212 // Return the result of loading a media document given navigationParams and type.
1313 MediaType::Image | MediaType::AudioVideo => {
1414 self.load_media_document(parser, media_type, &mime_type, cx);
1515-@@ -1125,6 +1126,17 @@
1515+@@ -1126,6 +1127,17 @@
1616 self.process_link_headers_in_media_phase_with_task(&parser.document);
1717 }
1818
+9-9
patches/components/script/dom/window.rs.patch
···99 };
1010 use euclid::default::Rect as UntypedRect;
1111 use euclid::{Point2D, Rect, Scale, Size2D, Vector2D};
1212-@@ -1149,12 +1149,22 @@
1212+@@ -1148,12 +1148,22 @@
13131414 let (sender, receiver) =
1515 ProfiledGenericChannel::channel(self.global().time_profiler_chan().clone()).unwrap();
···3333 receiver.recv().unwrap_or_else(|_| {
3434 // If the receiver is closed, we assume the dialog was cancelled.
3535 debug!("Alert dialog was cancelled or failed to show.");
3636-@@ -1182,13 +1192,22 @@
3636+@@ -1181,13 +1191,22 @@
3737 // the user to respond with a positive or negative response.
3838 let (sender, receiver) =
3939 ProfiledGenericChannel::channel(self.global().time_profiler_chan().clone()).unwrap();
···5757 // Step 5: Let userPromptHandler be WebDriver BiDi user prompt opened with this,
5858 // "confirm", and message.
5959 //
6060-@@ -1233,6 +1252,7 @@
6060+@@ -1232,6 +1251,7 @@
6161 // defaulted to the value given by default.
6262 let (sender, receiver) =
6363 ProfiledGenericChannel::channel(self.global().time_profiler_chan().clone()).unwrap();
···6565 let dialog = SimpleDialogRequest::Prompt {
6666 id: self.Document().embedder_controls().next_control_id(),
6767 message: message.to_string(),
6868-@@ -1239,8 +1259,16 @@
6868+@@ -1238,8 +1258,16 @@
6969 default: default.to_string(),
7070 response_sender: sender,
7171 };
···8383 // Step 6: Let userPromptHandler be WebDriver BiDi user prompt opened with this,
8484 // "prompt", and message.
8585 // TODO: Add support for WebDriver BiDi.
8686-@@ -1673,6 +1701,9 @@
8686+@@ -1672,6 +1700,9 @@
8787 // https://html.spec.whatwg.org/multipage/#windoweventhandlers
8888 window_event_handlers!();
8989···9393 /// <https://developer.mozilla.org/en-US/docs/Web/API/Window/screen>
9494 fn Screen(&self, can_gc: CanGc) -> DomRoot<Screen> {
9595 self.screen.or_init(|| Screen::new(self, can_gc))
9696-@@ -3044,9 +3075,33 @@
9696+@@ -3043,9 +3074,33 @@
9797 &self,
9898 input_event: &ConstellationInputEvent,
9999 ) -> Option<HitTestResult> {
···130130 }
131131132132 #[expect(unsafe_code)]
133133-@@ -3065,8 +3120,25 @@
133133+@@ -3064,8 +3119,25 @@
134134 // SAFETY: This is safe because `Window::query_elements_from_point` has ensured that
135135 // layout has run and any OpaqueNodes that no longer refer to real nodes are gone.
136136 let address = UntrustedNodeAddress(result.node.0 as *const c_void);
···157157 cursor: result.cursor,
158158 point_in_node: result.point_in_target,
159159 point_in_frame,
160160-@@ -3663,6 +3735,8 @@
160160+@@ -3612,6 +3684,8 @@
161161 player_context: WindowGLContext,
162162 #[cfg(feature = "webgpu")] gpu_id_hub: Arc<IdentityHub>,
163163 inherited_secure_context: Option<bool>,
···166166 theme: Theme,
167167 weak_script_thread: Weak<ScriptThread>,
168168 ) -> DomRoot<Self> {
169169-@@ -3689,6 +3763,8 @@
169169+@@ -3638,6 +3712,8 @@
170170 gpu_id_hub,
171171 inherited_secure_context,
172172 unminify_js,
···198198 /// Indicates whether this pipeline is currently running animations.
199199 ChangeRunningAnimationsState(AnimationState),
200200 /// Requests that a new 2D canvas thread be created. (This is done in the constellation because
201201-@@ -671,6 +800,10 @@
201201+@@ -673,6 +802,10 @@
202202 ScriptNewIFrame(IFrameLoadInfoWithData),
203203 /// Script has opened a new auxiliary browsing context.
204204 CreateAuxiliaryWebView(AuxiliaryWebViewCreationRequest),
···209209 /// Mark a new document as active
210210 ActivateDocument,
211211 /// Set the document state for a pipeline (used by screenshot / reftests)
212212-@@ -720,6 +853,79 @@
212212+@@ -722,6 +855,79 @@
213213 RespondToScreenshotReadinessRequest(ScreenshotReadinessResponse),
214214 /// Request the constellation to force garbage collection in all `ScriptThread`'s.
215215 TriggerGarbageCollection,
+1-1
patches/components/shared/script/lib.rs.patch
···3535 }
36363737 /// When a pipeline is closed, should its browsing context be discarded too?
3838-@@ -319,6 +327,24 @@
3838+@@ -322,6 +330,24 @@
3939 SetAccessibilityActive(PipelineId, bool),
4040 /// Force a garbage collection in this script thread.
4141 TriggerGarbageCollection,