+16
−29
Loading
My delegating to the main thread, waiting for the last DOM resize event to fire, and requesting an animation frame from the ChromeWindow, we can ensure the window is (more) synchronously resized. This ensures better reliability when setting a window's dimensions. All this means we can get rid of the heuristics we use for "waiting for a window resize" to occur by checking if the outerWidth/outerHeight has changed. These were obviously bug ridden. Depends on D8417 Differential Revision: https://phabricator.services.mozilla.com/D8418 --HG-- extra : moz-landing-system : lando