port fixes for Mozilla security advisory mfsa2022-09 to Android

context

changes

  • here we cherry-pick the same patches into geckoview so that we can ship them with next android alpha (11.5a7) and desktop/android stable (11.0.8) release
Edited by aguestuser