I know what's going on. We used the screenlayoutchange event to do some UI updates instead of resize event because there is multiple resize events in firefox nightly when we rotate the simulator. After APZ is enabled by default, the sequence of screenlayoutchange is different than before. At first, we don't have screenlayoutchange event at the app start-up. So, we may add some code to check if it is under start-up procedure to prevent that or to use resize event but need to check the rotation issue of simulator.
The screenlayoutchange event is built from the change event of MediaQueryListListener. I should mention it in comment 1.
Created attachment 8362400 [details] Pointer to Pull Request.html Hi John, I added the check condition as per our discussion in IRC. Please review and let me know the review comments. Thanks, Sireesha.
Attachment #8362400 - Flags: review?(johu)
Comment on attachment 8362400 [details] Pointer to Pull Request.html Thanks for this patch. I had filed a bug 961636 to address the additional resize events while app starts up. That's the root cause of this bug. But I would like to land the this workaround patch to get rid of ugly error log.
Attachment #8362400 - Flags: review?(johu) → review+
merged to master: https://github.com/mozilla-b2g/gaia/commit/7bd157d797cca114c51401170ca1c8d366be9551
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.