Corrected the bridgeApi for Firefox, apparently window is not shared