added support for Firefox OS cross-request