Commit Graph
108 Commits
Author SHA1 Message Date
Petru Lingurar 1b10daacc1 Bug 1505685 - Part 3 - Register HeadSetStateReceiver on the main thread; r=JanH
Summary:
Speculative fix.

initialize() is called by Gecko on it's background thread after it started.
The value for the "dom.audiochannel.mediaControl" preference also comes on a
background thread.
This both can end up registering the HeadSetStateReceiver while unregistering it
happens only on the main thread.
The patch tries to avoid the race condition by making sure Receiver's
registering and unregistering is done serially on the main thread.

Depends on D12032

Reviewers: JanH

Reviewed By: JanH

Subscribers: jya

Bug #: 1505685

Differential Revision: https://phabricator.services.mozilla.com/D12033
2018-11-21 12:16:34 +02:00
Cosmin Sabou 53d63a70cf Backed out 3 changesets (bug 1505685) for android checkstyle failures on GeckoMediaControlAgent.
Backed out changeset 6e2a67a9a9c9 (bug 1505685)
Backed out changeset a46710b7723f (bug 1505685)
Backed out changeset 9344087c8d8e (bug 1505685)
2018-11-21 11:45:59 +02:00
Petru Lingurar b9ec0f7597 Bug 1505685 - Part 3 - Register HeadSetStateReceiver on the main thread; r=JanH
Summary:
Speculative fix.

initialize() is called by Gecko on it's background thread after it started.
The value for the "dom.audiochannel.mediaControl" preference also comes on a
background thread.
This both can end up registering the HeadSetStateReceiver while unregistering it
happens only on the main thread.
The patch tries to avoid the race condition by making sure Receiver's
registering and unregistering is done serially on the main thread.

Depends on D12032

Reviewers: JanH

Reviewed By: JanH

Subscribers: jya

Bug #: 1505685

Differential Revision: https://phabricator.services.mozilla.com/D12033
2018-11-21 11:21:52 +02:00
Nick Alexander 486572fa16 Bug 1501053 - Drop minApi flavor dimension. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D9428
2018-10-25 20:29:49 +00:00
Ciure Andrei e282caf47d Backed out 2 changesets (bug 1501053, bug 1391551) for causing lint build bustages CLOSED TREE
Backed out changeset 91ab8acb16b2 (bug 1501053)
Backed out changeset 9397caac8090 (bug 1391551)
2018-10-25 22:34:21 +03:00
Nick Alexander 657fe25781 Bug 1501053 - Drop minApi flavor dimension. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D9428
2018-10-24 19:50:55 +00:00
James Willcox e51205a521 Bug 1490664 - Fix Fennec build sans MOZ_CRASHREPORTER r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D5694
2018-09-12 19:03:18 +00:00
James Willcox ff6825c688 Bug 1483329 - Hook Fennec up to new crash handling API r=jchen 2018-09-11 12:04:08 -05:00
James Willcox a9cfc15889 Bug 1483329 - Remove job id methods from GeckoRuntimeSettings r=jchen 2018-09-11 12:04:08 -05:00
James Willcox cefd1a2e44 Bug 1483329 - Remove existing crash-related methods in GeckoRuntimeSettings r=jchen 2018-09-11 12:04:07 -05:00
Jan Henning d213aaca38 Bug 1414084 - Part 9 - Move add-on menu item cache out of BrowserApp. r=Grisha
Bug 832990 solved the issue of us losing the menu item cache if BrowserApp was
destroyed, however the issue remains that we'll miss any Menu:... messages that
are sent while BrowserApp doesn't exist, e.g. if Gecko is initially loaded
through a GeckoView-based activity.

Therefore we now move the menu item cache and the listener for those messages
into a separate class, whose lifetime better matches that of Gecko.

Apart from any necessary changes, we move the existing code as is. The only
additional change is that we make addAddonMenuItemToMenu() static, because we
can.

MozReview-Commit-ID: BJleonLnjmo
2018-02-25 22:22:37 +01:00
Petru Lingurar 41391818dc Bug 1474859 - Enable Multidex for all builds; r=nalexander
Multidex will now be enabled for all builds, not just for the _local_ ones.
Also added the 'ads-identifier' library needed for the builds with the
MOZ_INSTALL_TRACKING flag case in which the dex limit would be reached.

MozReview-Commit-ID: FRTXBD9Kc6T
2018-08-06 18:38:48 +03:00
Vlad Baicu 2d5fd76584 Bug 1476720 - Set MLS notification action. r=jchen
Moved notification channels to NotificationHelper and created
new utility methods to retrieve them when needed. Cleaned unused
imports.

MozReview-Commit-ID: L3HnV3nD7Og
2018-07-26 17:42:19 +03:00
Vlad Baicu 699efd1afc Bug 1476720 - Set MLS notification action. r=jchen
Added a content action which will open the privacy settings when
tapping the mozilla location services notification.

MozReview-Commit-ID: 9h85amcoF0T
2018-07-25 14:32:02 +03:00
Andrei Lazar baef92682c Bug 1450447 - Start using notification channels. r=jchen
Made all the notifications within the app to use notification channel for devices with API26 and higher.

MozReview-Commit-ID: CVmpitNsS66
2018-07-06 17:57:22 +03:00
Petru Lingurar d596d053b7 Bug 1467461 - Migrate CrashReportingService to JobIntentService. r=snorp
Use the fact that a JobIntentService is still a Service to keep most of the
previous implementation and method of starting CrashReportingService.
On 26+ devices it will be called with "start-foreground-service".
This ensures it can be started even from background and the crash reporting
process would work as before but ActivityManager will post an ANR error to
logcat after 5 seconds because we aren't calling Service.startForeground()
(which would mean a user visible notification).

Will use different Job Ids depending on if the app is Firefox Release or
Firefox Beta.
The Job Id will be passed to GeckoThread when first initializing and then be
made available to CrashHandler and nsExceptionHandler.cpp to be sent in the
Intent that starts the CrashReporterService.

MozReview-Commit-ID: GATl6Waa9St
2018-07-02 17:32:10 +03:00
Rob Wu 985b95efb2 Bug 1448305 - Fall back to the memory cache when a shortcut is created. r=JanH 2018-07-16 12:19:18 +02:00
Petru Lingurar 63df8acae1 Bug 1468487 - Enable multidex for local builds; r=nalexander
MozReview-Commit-ID: BEQmkKajTxF
2018-06-15 13:25:00 +03:00
James Willcox 0f2b94166e Bug 1433968 - Use GeckoRuntime to launch Gecko in Fennec r=jchen
MozReview-Commit-ID: AUrvsFWDuhY
2018-05-10 16:42:23 -05:00
Tiberius Oros 8b87c0b363 Backed out 6 changesets (bug 1433968) for Android failures on GeckoRuntimeSettings on a CLOSED TREE
Backed out changeset bba1deb626b5 (bug 1433968)
Backed out changeset 7a8616427aea (bug 1433968)
Backed out changeset c94c48d76350 (bug 1433968)
Backed out changeset 64cccb490a2a (bug 1433968)
Backed out changeset 62f865eed952 (bug 1433968)
Backed out changeset 5ed1e3af37ba (bug 1433968)
2018-05-10 18:11:55 +03:00
James Willcox 707d9b7e5a Bug 1433968 - Use GeckoRuntime to launch Gecko in Fennec r=jchen
MozReview-Commit-ID: AUrvsFWDuhY
2018-05-10 08:34:07 -05:00
Eitan Isaacson 392de1f884 Bug 1449364 - Create SessionAccessibility for GeckoSession. r=jchen r=yzen 2018-04-12 13:46:47 -07:00
Margareta Eliza Balazs dacc6fec21 Backed out 2 changesets (bug 1449364, bug 1453278) for rc4 and 42 perma failures in layout/base/tests/test_bug332655-2.html and testInputConnection on a CLOSED TREE
Backed out changeset 7149139c60d9 (bug 1449364)
Backed out changeset bcfee006ebaa (bug 1453278)
2018-04-12 15:30:20 +03:00
Eitan Isaacson 2302d1e7dd Bug 1449364 - Create SessionAccessibility for GeckoSession. r=jchen r=yzen 2018-04-11 15:21:00 +03:00
Jim Chen 6d247cef2c Bug 1442255 - 4. Use extras bundle to initialize Gecko in Fennec; r=esawin
Use extras bundle (e.g. from an Intent) to initialize Gecko in GeckoApp
and GeckoService.

MozReview-Commit-ID: AmLZ8Uir8f4
2018-03-06 13:52:50 -05:00
Gurzau Raul 8e6714051b Backed out 7 changesets (bug 1442255) for failing c1 tests on mochitest/test_browserElement_inproc_PurgeHistory.html
Backed out changeset 208c4c42f641 (bug 1442255)
Backed out changeset 6a794e14fceb (bug 1442255)
Backed out changeset 62d1c57c37b4 (bug 1442255)
Backed out changeset 5d0f72867f53 (bug 1442255)
Backed out changeset c3305648ad30 (bug 1442255)
Backed out changeset 08f906f3a0c8 (bug 1442255)
Backed out changeset d7a43e59a1b4 (bug 1442255)
2018-03-06 17:08:57 +02:00
Jim Chen 7680140a1e Bug 1442255 - 4. Use extras bundle to initialize Gecko in Fennec; r=esawin
Use extras bundle (e.g. from an Intent) to initialize Gecko in GeckoApp
and GeckoService.

MozReview-Commit-ID: AmLZ8Uir8f4
2018-03-06 00:04:56 -05:00
Jan Henning 812e538e19 Bug 1437382 - Part 3 - Flush session store tab data separately from application-background. r=jchen
We need to block onSaveInstanceState until we're sure that our private browsing
data is up to date, however we can't block on the whole of our application-
background handling (GeckoThread.onPause), as that will take too much time.

In addition, we need to update the stored tab data not just when the application
goes into the background, but every time we're leaving GeckoApp and onSave-
InstanceState is called, e.g. when visiting our settings activity.

MozReview-Commit-ID: DgtUvatD6h3
2018-02-22 19:55:13 +01:00
Jim Chen feae16a4e5 Bug 1432160 - Initialize PushService for custom tabs / PWA; r=snorp
We currently initialize PushService on delayed startup, which only
happens when Fennec is launched. This patch makes us also initialize
PushService if needed by web content from custom tabs / PWA, by
listening for the push initialization event in GeckoApplication.

MozReview-Commit-ID: 9CTOEZmOqls
2018-02-08 18:33:19 -05:00
Nevin Chen b16d015b07 Bug 1424179 - Hide PWA badge when site identity updates to mix content. r=walkingice
https://m.aliexpress.com is a good target to test. But it sometimes show mixed content, sometimes not.
I also chnage the check when adding a PWA shortcut. Only fail fast in nightly and local build.

MozReview-Commit-ID: 4sLoNERIYuW
2017-12-08 15:07:42 +08:00
Jim Chen 2a860b0cf1 Bug 1423010 - 2. Fix other code that use BitmapUtils; r=rbarker
Use o.m.g.util.BitmapUtils in code that use BitmapUtils.

MozReview-Commit-ID: KPM05Aqf1kW
2017-12-05 11:40:10 -05:00
Nevin Chen 01c35325dc Bug 1419245 - A2HS badge is shown on site with broken HTTPS. r=walkingice
MozReview-Commit-ID: BFWdqTcxOi9
2017-11-23 17:07:59 +08:00
James Cheng 92b77a6b82 Bug 1416089 - Remove MEDIA_DECODING_PROCESS_CRASH telemetry. r=jolin
MozReview-Commit-ID: Dqqmk6yUXPo
2017-11-10 14:01:56 +08:00
Jim Chen 4aa67e17c3 Bug 1412872 - 7. Move background events to GeckoApplication; r=nechen
Move the "Bookmark:Insert" and "Image:SetAs" events from GeckoApp to
GeckoApplication. These events are global to the application, and they
operate on the background thread, which will no longer be an option for
the GeckoView event dispatcher.

MozReview-Commit-ID: 8kesv8sJ8At
2017-11-01 14:54:04 -04:00
Jim Chen 9df57ef34f Bug 1406168 - 1. Remove JNI.jsm; r=sebastian
Remove JNI.jsm. Convert code that used JNI.jsm to the equivalent using
EventDispatcher.

MozReview-Commit-ID: JQdCubcTBAR
2017-11-01 14:48:48 -04:00
Jing-wei Wu 3aa7e62b87 Bug 1395841 - Part 2: Support creating a shortcut from page option in menu. r=snorp
When page option 'add page shortcut' is clicked, creating a shortcut(not PWA) on launcher.
Also make sure that heavy tasks are executed in background thread.

MozReview-Commit-ID: 8KtwdXENtEd
2017-09-28 10:57:48 +08:00
Nevin Chen(:nechen) 5c5d83d134 Bug 1393672 - Add a badge (at the same position of Page Actio) for PWA. r=jwu
This bug is for the front end work to make users more engaged with PWA.

Requirements
1. When the user goes to a web page that has manifest.json, we show a badge(in the same position of page action).
2. If the user switch to another normal page or other Java UI, the page action should be gone.
3. When the user see the PWA website for the first time, we  will display a onboarding prompt to teach him how to add PWA to home screen. This prompt only shows once.

MozReview-Commit-ID: AcyjHPVKg2b
2017-09-26 13:48:09 +08:00
Jim Chen 567edb5a69 Bug 1401737 - 6. Handle GeckoApplication recreation; r=esawin
Handle rare cases where GeckoApplication is recreated when Fennec is
alive. In such cases, we need to unregister certain event listeners from
the old GeckoApplication so we can register again under the new one.
Also make GeckoActivityMonitor and TelemetryBackgroundReceiver better
handle GeckoApplication instance changes.

MozReview-Commit-ID: CrV8R9CyCRm
2017-10-10 15:13:46 -04:00
Jim Chen a52d79155f Bug 1401737 - 5. Revert diagnostic crash; r=me
MozReview-Commit-ID: 6wZvzHgUH7Z
2017-10-10 15:13:46 -04:00
Jim Chen e5494e9ef1 Bug 1401737 - 4. Moar diagnostic crash; r=me
Back out the part 1 diagnostic crash and introduce another diagnostic
crash that will hopefully include more details. r=me for trivial patch.

MozReview-Commit-ID: Ki8BTdTRHlM
2017-10-05 14:59:32 -04:00
Jim Chen 0f8d5c20ac Bug 1401737 - 3. Consolidate GeckoAppShell initialization; r=me
Consolidate GeckoAppShell initialization to GeckoApplication.onCreate
instead of spreading it out over different Activities. r=me for trivial
patch.

MozReview-Commit-ID: J0iv3qePlci
2017-10-05 14:59:32 -04:00
James Willcox 85ddcd8eb0 Back out bug 1395841 - Part 2 for breaking PWA shortcut installation r=me
This reverts commit eadc939a6ecf5eaff2a233f7015e814cc76a33ed.

MozReview-Commit-ID: 2V2oF1PC5cf
2017-10-02 14:14:52 -05:00
Wes Kocher 4253ce7dce Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Jing-wei Wu 053565febb Bug 1395841 - Part 2: Support creating a shortcut from page option in menu. r=nechen
When page option 'add page shortcut' is clicked, creating a shortcut(not PWA) on launcher.
Also make sure that heavy tasks are executed in background thread.

MozReview-Commit-ID: 8KtwdXENtEd
2017-09-28 10:57:48 +08:00
James Willcox e11804e177 Bug 1372926 - Support new shortcut API in Android O r=nechen
MozReview-Commit-ID: ICRoMR2wSPq
2017-09-28 09:09:52 -05:00
Jim Chen 6cb1d852a2 Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF
2017-09-22 14:35:22 -04:00
Sebastian Hengst 8b34bd4818 Backed out changeset 5e5ce5633017 (bug 1396951) for frequently failing robocop's testSettingsPages. r=backout a=backout
MozReview-Commit-ID: AGZMQKL3eft
2017-09-22 11:49:14 +02:00
Jim Chen b7adf526fc Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF
2017-09-21 17:36:02 -04:00
Jim Chen 948efaa0b5 Bug 1367079 - 2. Move Share:Text listener to GeckoApplication; r=snorp
Move the "Share:Text" event listener from GeckoApp to GeckoApplication,
so ActionBarHandler.js can use it for the Share action from any window.

MozReview-Commit-ID: 8w1llJy4pwy
2017-09-14 17:50:58 -04:00
Sebastian Hengst 4f8a616715 merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00