gecko-dev/mobile/android
Agi Sferro db6763404e Bug 1675644 - Flush extension messages per-session and per-nativeApp. r=esawin
The extension code _tries_ to flush messages when the relevant delegate is attached.

The logic, however, is pretty flawed: we currently only flush runtime-messages
(i.e. not coming from a WebExtension Page) and we flush all messages when the
first delegate is attached, even though there could be messages for different
nativeApp values which don't have a delegate attached yet.

We also erroneusly return a rejected promise to javascript when a message is queued up.

This patch addresses the above by:

- Never rejecting a pending connection request, the connection request will be
  resolved when the delegate for the right nativeApp is attached.
- Making the pending messages queue per-nativeApp and per-session.
- Flushing pending messages when a session delegate is attached.

Differential Revision: https://phabricator.services.mozilla.com/D96645
2020-11-11 22:46:22 +00:00
..
actors Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE 2020-11-04 04:23:47 +02:00
annotations Bug 1674224: Generate Java signature hints in JNI wrappers; r=geckoview-reviewers,agi 2020-11-10 17:11:34 +00:00
app Bug 1654817: Part 2 - Bump dom.ipc.processCount pref to 3 on Nightly; r=geckoview-reviewers,agi 2020-11-04 17:26:16 +00:00
base Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
branding Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
chrome Bug 1673316 - Ensure docShellIsActive is preserved when switching process. r=snorp 2020-10-27 18:41:58 +00:00
components Bug 1649843, remove now unused legacy actor code, r=kmag 2020-11-06 15:46:11 +00:00
config Bug 1602810 - Enable Rust PGO for Android r=nalexander 2020-10-20 17:11:01 +00:00
docs Bug 1588458 - Replace dxr by searchfox in the rst doc r=ahal DONTBUILD 2020-10-08 08:13:15 +00:00
examples Bug 1553459 - Migrate to AndroidX r=geckoview-reviewers,agi 2020-09-18 22:29:04 +00:00
fonts Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
geckoview Bug 1675644 - Flush extension messages per-session and per-nativeApp. r=esawin 2020-11-11 22:46:22 +00:00
geckoview_example Bug 1500644 - Make GeckoView example toolbar dynamic at bottom by using CoordinatorLayout. r=geckoview-reviewers,snorp 2020-10-27 14:57:47 +00:00
gradle Bug 1667948 - Don't break fat .aar creation if MOZ_ANDROID_FAT_AAR_ARCHITECTURES is set r=nalexander 2020-10-06 16:13:36 +00:00
installer Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
locales Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
modules Bug 1674701 - Don't ignore duplicate page loads. r=esawin 2020-11-02 21:42:31 +00:00
themes Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
.eslintrc.js Bug 1648149 - Ignore debug and warn in eslint. r=snorp 2020-08-17 19:41:18 +00:00
LICENSE
app.mozbuild
build.mk Bug 1626336 - Remove `MOZ_GECKOVIEW_JAR`. r=agi,geckoview-reviewers 2020-08-24 18:13:49 +00:00
confvars.sh Bug 1659756 - Move `MOZ_USE_NATIVE_POPUP_WINDOWS` from `old-configure` to Python `configure` r=geckoview-reviewers,mhentges,agi,froydnj,glandium 2020-08-21 22:48:09 +00:00
gradle.configure Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
gradle.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
mach_commands.py Bug 1672023 - Remove excluded files from `black.yml` 2020-10-26 18:21:44 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
moz.configure Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00