mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578)
This commit is contained in:
parent
351b5036bf
commit
66258bfbbd
9 changed files with 53 additions and 16 deletions
|
@ -3168,10 +3168,11 @@ where
|
|||
// https://github.com/rust-lang/rust/issues/59159
|
||||
let browsing_context_size = browsing_context.size;
|
||||
let browsing_context_is_visible = browsing_context.is_visible;
|
||||
debug_assert_eq!(
|
||||
browsing_context_size,
|
||||
load_info.window_size.initial_viewport
|
||||
);
|
||||
// TODO(servo#30571) revert to debug_assert_eq!() once underlying bug is fixed
|
||||
#[cfg(debug_assertions)]
|
||||
if !(browsing_context_size == load_info.window_size.initial_viewport) {
|
||||
log::warn!("debug assertion failed! browsing_context_size == load_info.window_size.initial_viewport");
|
||||
}
|
||||
|
||||
// Create the new pipeline, attached to the parent and push to pending changes
|
||||
self.new_pipeline(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue