finalUrl isn't supported by Firefox so it would never set the origin URL here (cherry picked from commit 75bb10dd)
mentioned in commit d0dee558