gecko-dev/mobile/android
Anny Gakhokidze 28243d5736 Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.

The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.

After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.

Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 18:15:36 +00:00
..
actors Bug 1632922 - use const instead of let - eslint --fix r=snorp 2020-04-24 21:53:17 +00:00
annotations Bug 1637452: Part 18 - Remove support for unified JNI headers from AnnotationProcessor and build system; r=nalexander,geckoview-reviewers,agi 2020-05-15 17:06:35 +00:00
app Bug 1618058 - [2.c.7] Implement Autocomplete API backend. r=geckoview-reviewers,MattN,aklotz 2020-05-25 18:45:25 +00:00
base Bug 1609278 - Replace bugzilla product and component assignment 'Firefox for Android :: General' with 'GeckoView :: General'. r=kbrosnan DONTBUILD 2020-03-06 17:54:58 +00:00
branding Bug 1626670 - Don't build with MOZ_UPDATER=1 for GeckoView nightlies r=geckoview-reviewers,agi 2020-04-01 18:06:14 +00:00
chrome Bug 1633459 - Marshal customUserAgent setting via nsDocShell. r=geckoview-reviewers,esawin,nika 2020-05-20 00:19:59 +00:00
components Bug 1629113 - Move remaining services to components.conf. r=snorp,baku 2020-05-26 07:44:52 +00:00
config Bug 1626340 - Fix some mozconfigs where mozconfig.common.override is not at the end r=rstewart 2020-04-01 14:22:35 +00:00
docs Bug 1640743 - Update WebExtension example links. r=snorp 2020-05-26 19:31:01 +00:00
examples Bug 1637324 - Update examples to use installBuiltIn. r=snorp 2020-05-13 15:14:37 +00:00
fonts Bug 1609278 - Replace bugzilla product and component assignment 'Firefox for Android :: General' with 'GeckoView :: General'. r=kbrosnan DONTBUILD 2020-03-06 17:54:58 +00:00
geckoview Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp 2020-05-27 18:15:36 +00:00
geckoview_example Bug 1629113 - Implement nsIPromptCollection on GeckoView. r=snorp,droeh 2020-05-22 23:22:41 +00:00
gradle
installer Bug 1629113 - Move remaining services to components.conf. r=snorp,baku 2020-05-26 07:44:52 +00:00
locales Bug 1630413 don't prompt for unlimitedStorage extension permission r=rpl 2020-04-22 20:51:52 +00:00
modules Bug 1629113 - Move remaining services to components.conf. r=snorp,baku 2020-05-26 07:44:52 +00:00
themes
.eslintrc.js Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr 2020-03-19 13:47:51 +00:00
app.mozbuild
build.mk
confvars.sh
debug_sign_tool.py
gradle.configure Bug 1627163 - Use generator expressions instead of itertools.imap. r=firefox-build-system-reviewers,rstewart 2020-04-05 08:51:20 +00:00
gradle.py Bug 1626932 - delete LD_LIBRARY_PATH before invoking gradle; r=firefox-build-system-reviewers,rstewart 2020-04-02 17:32:21 +00:00
LICENSE
mach_commands.py Bug 1639180 - Port docs to Sphinx and reST and stop copying to GitHub. r=geckoview-reviewers,snorp 2020-05-20 15:22:32 +00:00
moz.build Bug 1632922 - Remove unused mobile/android/tests. r=snorp 2020-04-24 21:53:10 +00:00
moz.configure