Fixes for update area calculation with viewport source
Some overlooks (from me), see commits.
Found while working on https://bugzilla.mozilla.org/show_bug.cgi?id=1695500
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1699754
Edited by Robert Mader