1243: Force-drop the token before calling fire_map_callbacks r=kvark a=kvark

**Connections**
Related to WebGPU update in Gecko

**Description**
Since the token was alive, technically, we saw an assertion firing up about concurrent access to the token root.

**Testing**
Tested in Gecko

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
This commit is contained in:
bors[bot]andDzmitry Malyshau authored and GitHub committed 2021-03-02 19:12:58 +00:00
commit c3e95273ff
1 file changed
+2
+2
View File
@@ -816,6 +816,8 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
callbacks
};
// the map callbacks should execute with nothing locked!
drop(token);
super::fire_map_callbacks(callbacks);
Ok(())