Backport uplifted NativeStack.cpp patch
After multiple iterations, our patch for #20283 (moved) got uplifted into FF62. Backport what got uplifted to ESR60 so we don't have to deal with this again.
After multiple iterations, our patch for #20283 (moved) got uplifted into FF62. Backport what got uplifted to ESR60 so we don't have to deal with this again.