aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index f386d29487e..d949e9d0b8c 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -483,8 +483,8 @@ pub struct ScriptThread {
/// The unit of related similar-origin browsing contexts' list of MutationObserver objects
mutation_observers: DomRefCell<Vec<Dom<MutationObserver>>>,
- /// A handle to the webgl thread
- webgl_chan: WebGLPipeline,
+ /// A handle to the WebGL thread
+ webgl_chan: Option<WebGLPipeline>,
/// A handle to the webvr thread, if available
webvr_chan: Option<IpcSender<WebVRMsg>>,
@@ -2130,7 +2130,7 @@ impl ScriptThread {
origin,
incomplete.navigation_start,
incomplete.navigation_start_precise,
- self.webgl_chan.channel(),
+ self.webgl_chan.as_ref().map(|chan| chan.channel()),
self.webvr_chan.clone(),
self.microtask_queue.clone(),
self.webrender_document,