Bug 1653649 - Add window size sanity check at the API level. r=kvark
Bug 1653649 - Add window size sanity check at the API level. r=kvark

Better to catch these in the API than later on some other thread.

Differential Revision: https://phabricator.services.mozilla.com/D84192

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/d72fa7f1c347320deb74b2aefd6342f53c615b1b

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender