From 55267560ca20b8e1ae1bb9173050611779673061 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Fri, 8 Jul 2016 09:00:43 -0600 Subject: [PATCH] Change ignore async events ordering to SeqCst --- components/script/dom/window.rs | 2 +- components/script/script_thread.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 34ac683e233..ad90cc73b31 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -948,7 +948,7 @@ impl Window { self.current_state.set(WindowState::Zombie); *self.js_runtime.borrow_mut() = None; self.browsing_context.set(None); - self.ignore_further_async_events.store(true, Ordering::Relaxed); + self.ignore_further_async_events.store(true, Ordering::SeqCst); } /// https://drafts.csswg.org/cssom-view/#dom-window-scroll diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index e115d086956..e116ace1be4 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -190,7 +190,7 @@ pub struct CancellableRunnable { impl Runnable for CancellableRunnable { fn is_cancelled(&self) -> bool { - self.cancelled.load(Ordering::Relaxed) + self.cancelled.load(Ordering::SeqCst) } fn handler(self: Box>) {