Backport uplifted NativeStack.cpp patch
After multiple iterations, our patch for legacy/trac#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 legacy/trac#20283 (moved) got uplifted into FF62. Backport what got uplifted to ESR60 so we don't have to deal with this again.