···11+--- original
22++++ modified
33+@@ -131,6 +131,10 @@
44+ /// In non-production builds, this will automatically read and parse the
55+ /// SERVO_DIAGNOSTICS environment variable if it is set.
66+ pub fn new() -> Self {
77++ #[cfg(not(debug_assertions))]
88++ let config: DiagnosticsLogging = Default::default();
99++
1010++ #[cfg(debug_assertions)]
1111+ let mut config: DiagnosticsLogging = Default::default();
1212+1313+ // Disabled for production builds
···11---- original
22-+++ modified
33-@@ -8,13 +8,14 @@
44- use std::thread::Builder;
55-66- use byte_slice_cast::*;
77-+use gstreamer;
88- use gstreamer::prelude::*;
99- use gstreamer_app::{AppSrc, AppSrcCallbacks};
1010-+use gstreamer_audio;
1111- use servo_media_audio::block::{Chunk, FRAMES_PER_BLOCK};
1212- use servo_media_audio::render_thread::AudioRenderThreadMsg;
1313- use servo_media_audio::sink::{AudioSink, AudioSinkError};
1414- use servo_media_streams::MediaSocket;
1515--use {gstreamer, gstreamer_audio};
1616-1717- use crate::media_stream::GstreamerMediaSocket;
1818-
···11---- original
22-+++ modified
33-@@ -7,8 +7,12 @@
44- use std::sync::{Arc, Mutex};
55- use std::{cmp, mem};
66-77-+use glib;
88- use glib::prelude::*;
99-+use gstreamer;
1010- use gstreamer::prelude::*;
1111-+use gstreamer_sdp;
1212-+use gstreamer_webrtc;
1313- use log::warn;
1414- use servo_media_streams::MediaStreamType;
1515- use servo_media_streams::registry::{MediaStreamId, get_stream};
1616-@@ -15,7 +19,6 @@
1717- use servo_media_webrtc::datachannel::DataChannelId;
1818- use servo_media_webrtc::thread::InternalEvent;
1919- use servo_media_webrtc::{WebRtcController as WebRtcThread, *};
2020--use {glib, gstreamer, gstreamer_sdp, gstreamer_webrtc};
2121-2222- use super::BACKEND_BASE_TIME;
2323- use crate::datachannel::GStreamerWebRtcDataChannel;
+1-1
patches/components/net/resource_thread.rs.patch
···6464 };
65656666 (Arc::new(http_state), Arc::new(private_http_state))
6767-@@ -661,9 +672,16 @@
6767+@@ -665,9 +676,16 @@
6868 return false;
6969 },
7070 // Ignore these messages as they are only sent on very specific channels.
···199199 /// Indicates whether this pipeline is currently running animations.
200200 ChangeRunningAnimationsState(AnimationState),
201201 /// Requests that a new 2D canvas thread be created. (This is done in the constellation because
202202-@@ -697,6 +825,10 @@
202202+@@ -701,6 +829,10 @@
203203 ScriptNewIFrame(IFrameLoadInfoWithData),
204204 /// Script has opened a new auxiliary browsing context.
205205 CreateAuxiliaryWebView(AuxiliaryWebViewCreationRequest),
···210210 /// Mark a new document as active
211211 ActivateDocument,
212212 /// Set the document state for a pipeline (used by screenshot / reftests)
213213-@@ -754,6 +886,131 @@
213213+@@ -758,6 +890,131 @@
214214 /// aggregate lock count and notify the provider only when the count transitions from N to 0.
215215 /// <https://w3c.github.io/screen-wake-lock/#dfn-release-wake-lock>
216216 ReleaseWakeLock(WakeLockType),
···99 };
1010 use euclid::{Scale, Size2D};
1111 use fonts_traits::SystemFontServiceProxySender;
1212-@@ -42,8 +42,9 @@
1212+@@ -42,9 +42,9 @@
1313 use servo_canvas_traits::webgl::WebGLPipeline;
1414 use servo_config::prefs::PrefValue;
1515 use servo_constellation_traits::{
1616-- KeyboardScroll, LoadData, NavigationHistoryBehavior, ScriptToConstellationSender,
1717-- ScrollStateUpdate, StructuredSerializedData, TargetSnapshotParams, WindowSizeType,
1616+- KeyboardScroll, LoadData, NavigationHistoryBehavior, RemoteFocusOperation,
1717+- ScriptToConstellationSender, ScrollStateUpdate, StructuredSerializedData, TargetSnapshotParams,
1818+- WindowSizeType,
1819+ EmbeddedWebViewEventType, KeyboardScroll, LoadData, NavigationHistoryBehavior, PairingEvent,
1919-+ ScriptToConstellationSender, ScrollStateUpdate, StructuredSerializedData, TargetSnapshotParams,
2020-+ WindowSizeType,
2020++ RemoteFocusOperation, ScriptToConstellationSender, ScrollStateUpdate, StructuredSerializedData,
2121++ TargetSnapshotParams, WindowSizeType,
2122 };
2223 use servo_url::{ImmutableOrigin, ServoUrl};
2324 use storage_traits::StorageThreads;
2424-@@ -80,6 +81,14 @@
2525+@@ -81,6 +81,14 @@
2526 pub theme: Theme,
2627 /// A snapshot of the navigation parameters of the target of this navigation.
2728 pub target_snapshot_params: TargetSnapshotParams,
···3637 }
37383839 /// When a pipeline is closed, should its browsing context be discarded too?
3939-@@ -292,6 +301,15 @@
4040+@@ -295,6 +303,15 @@
4041 SendImageKeysBatch(PipelineId, Vec<ImageKey>),
4142 /// Preferences were updated in the parent process.
4243 PreferencesUpdated(Vec<(String, PrefValue)>),
···5253 /// Notify the `ScriptThread` that the Servo renderer is no longer waiting on
5354 /// asynchronous image uploads for the given `Pipeline`. These are mainly used
5455 /// by canvas to perform uploads while the display list is being built.
5555-@@ -326,6 +344,26 @@
5656+@@ -329,6 +346,26 @@
5657 SetAccessibilityActive(PipelineId, bool, Epoch),
5758 /// Force a garbage collection in this script thread.
5859 TriggerGarbageCollection,
-13
patches/components/webgpu/lib.rs.patch
···11---- original
22-+++ modified
33-@@ -7,8 +7,9 @@
44- use log::warn;
55- use servo_base::generic_channel::{self, GenericReceiver};
66- use webgpu_traits::{WebGPU, WebGPUMsg};
77-+pub use wgpu_core as wgc;
88- use wgpu_thread::WGPU;
99--pub use {wgpu_core as wgc, wgpu_types as wgt};
1010-+pub use wgpu_types as wgt;
1111-1212- mod poll_thread;
1313- mod wgpu_thread;
-18
patches/components/webgpu/wgpu_thread.rs.patch
···11---- original
22-+++ modified
33-@@ -26,13 +26,14 @@
44- use wgc::id::DeviceId;
55- use wgc::pipeline::ShaderModuleDescriptor;
66- use wgc::resource::BufferMapOperation;
77-+pub use wgpu_core as wgc;
88- use wgpu_core::command::RenderPassDescriptor;
99- use wgpu_core::device::DeviceError;
1010- use wgpu_core::pipeline::{CreateComputePipelineError, CreateRenderPipelineError};
1111- use wgpu_core::resource::BufferAccessResult;
1212-+pub use wgpu_types as wgt;
1313- use wgpu_types::MemoryHints;
1414- use wgt::InstanceDescriptor;
1515--pub use {wgpu_core as wgc, wgpu_types as wgt};
1616-1717- use crate::canvas_context::WebGpuExternalImageMap;
1818- use crate::poll_thread::Poller;