Remove unneeded comments about suppressed errors. (#33612)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-10-02 00:19:04 -04:00 committed by GitHub
parent c76524e63b
commit d7da0563d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -754,10 +754,7 @@ impl Document {
);
let event = event.upcast::<Event>();
event.set_trusted(true);
// FIXME(nox): Why are errors silenced here?
let _ = window.dispatch_event_with_target_override(
event,
);
window.dispatch_event_with_target_override(event);
}),
self.window.upcast(),
)
@ -2388,10 +2385,7 @@ impl Document {
update_with_current_instant(&document.load_event_start);
debug!("About to dispatch load for {:?}", document.url());
// FIXME(nox): Why are errors silenced here?
let _ = window.dispatch_event_with_target_override(
&event,
);
window.dispatch_event_with_target_override(&event);
// http://w3c.github.io/navigation-timing/#widl-PerformanceNavigationTiming-loadEventEnd
update_with_current_instant(&document.load_event_end);
@ -2430,10 +2424,7 @@ impl Document {
let event = event.upcast::<Event>();
event.set_trusted(true);
// FIXME(nox): Why are errors silenced here?
let _ = window.dispatch_event_with_target_override(
event,
);
window.dispatch_event_with_target_override(event);
}),
self.window.upcast(),
)