Commit Graph
889 Commits
Author SHA1 Message Date
Jan Henning b2df20983e Bug 1363321 - Part 2 - Reset crash loop counter after a presumably succesful startup. r=jchen
At the moment, our crash loop counter that turns off session restoring when multiple crashes happen in a row is reset only after a successful background-foreground cycle.

Since its purpose is to break out of startup crash loops caused by the currently loaded tab that is automatically loaded after starting the app, it makes sense to also reset it if we didn't crash soon after starting up. Otherwise, if the user remains within Firefox, another crash long after starting would still count towards the crash loop counter.

Desktop already employs a similar logic for deciding whether to automatically enable safe mode or not after a crash. Therefore, we use the same amount of time (30 s) after starting Gecko for resetting the counter.

We also take the opportunity to make our logic a bit more conservative and only turn off session restoring after two successive crashes in a row (desktop uses 3 by default).

MozReview-Commit-ID: CQDutkDgmfc
2017-05-09 23:12:54 +02:00
Paolo Amadini c1e217d674 Bug 1254558 - Remove about:config preferences only used by the legacy nsIDownloadManager code. r=mak
MozReview-Commit-ID: 7XSnNdirh8s
2017-05-05 11:51:09 +01:00
Nick Alexander 5ad0a8dcfa Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian,bustage-fix
This is pretty straight-forward.

Sadly, this will require local developers to add a "skin" product
flavor to their invocations, like:

./mach gradle app:assembleLocalAustralisDebug

In addition, this shows how many different variants of the Gradle
product flavor are embedded into our automation configurations.  I
can't solve that at this time.

Since I was here, I took the time to rename "automation" to
"official", which makes "localAustralis" the default in Android
Studio, avoiding a common issue with new builders producing an APK
that doesn't include omni.ja in the IDE.

MozReview-Commit-ID: CtU7zFpNCob
2017-05-03 19:20:58 +02:00
Sebastian Hengst cf59f706b3 Backed out changeset 289c6a3f7886 (bug 1361545) for busting Android gradle builds. r=backout 2017-05-03 19:19:52 +02:00
Nick Alexander a1cde6300f Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian
This is pretty straight-forward.

Sadly, this will require local developers to add a "skin" product
flavor to their invocations, like:

./mach gradle app:assembleLocalAustralisDebug

In addition, this shows how many different variants of the Gradle
product flavor are embedded into our automation configurations.  I
can't solve that at this time.

Since I was here, I took the time to rename "automation" to
"official", which makes "localAustralis" the default in Android
Studio, avoiding a common issue with new builders producing an APK
that doesn't include omni.ja in the IDE.

MozReview-Commit-ID: CtU7zFpNCob
2017-05-02 15:27:37 -07:00
Nick Alexander 169f28cd80 Bug 1361418 - Remove Java Addons from Firefox for Android. r=sebastian
The Java Addons mechanism never got traction and is not Web Extensions
compatible.  Removing it simplifies the product and the build system.

MozReview-Commit-ID: ABUxkqqMISa
2017-05-02 11:49:16 -07:00
Jim Chen 36e282f537 Bug 1357874 - Disable RegExp JIT for AArch64; r=snorp
I encountered crashes in jitted regexp code in my AArch64 Fennec build.
This patch disables that for now, but obviously we want to look into the
crashes and eventually turn this back on.
2017-05-01 14:46:00 -04:00
Michael Kaply 585666de15 Bug 1359223 - Add geckoview to checkstyle and correct style issues. r=snorp
MozReview-Commit-ID: AM0bdF8dZQW
2017-04-24 16:06:43 -05:00
Andrzej Hunt 1436f2f787 Bug 1358338 - findbugs: Ignore generated R.*/Manifest* r=sebastian
MozReview-Commit-ID: AwBdVmK6Hc
2017-04-20 19:46:15 -07:00
Randall Barker c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Nick Alexander 459cd85965 Bug 1320310 - Post-process Gradle-produced Android manifest. r=sebastian
Layer on the hacks!  This:

1) Reinstates the <activity-alias android:name=".App"> that we have in
   the moz.build produced Android manifest.  I found no way to do this
   using placeholders or the manifest merger.

2) Culls manifest entries provided by
   com.google.android.gms.measurement.  We know they're not necessary,
   since they're not present in the existing Fennec Android manifest.

These are strictly workarounds to avoid doing the real work of fixing
the issues.  To fix 1), we'd need to migrate all existing users with
homescreen shortcuts to .App.  This could be difficult, especially if
partners have deployed packages out of our update control.  To fix 2),
we'll need to upgrade our Google Play Services to at least version
9.0.0 and then use the finer-grained AAR dependencies to not build
with the measurement split at all.

MozReview-Commit-ID: 21CaZ2KMeIa
2017-04-11 20:49:05 -07:00
Sebastian Hengst 489e6d7fa9 Backed out changeset 364265dfdf2c (bug 1320310) for gradle related failures. r=backout 2017-04-12 18:22:14 +02:00
Nick Alexander d5bd8e232a Bug 1320310 - Post-process Gradle-produced Android manifest. r=sebastian
Layer on the hacks!  This:

1) Reinstates the <activity-alias android:name=".App"> that we have in
   the moz.build produced Android manifest.  I found no way to do this
   using placeholders or the manifest merger.

2) Culls manifest entries provided by
   com.google.android.gms.measurement.  We know they're not necessary,
   since they're not present in the existing Fennec Android manifest.

These are strictly workarounds to avoid doing the real work of fixing
the issues.  To fix 1), we'd need to migrate all existing users with
homescreen shortcuts to .App.  This could be difficult, especially if
partners have deployed packages out of our update control.  To fix 2),
we'll need to upgrade our Google Play Services to at least version
9.0.0 and then use the finer-grained AAR dependencies to not build
with the measurement split at all.

MozReview-Commit-ID: 21CaZ2KMeIa
2017-04-11 20:49:05 -07:00
Joel Maher 1217666e25 Bug 1350473 - add BUG_COMPONENT to mobile/* files. r=snorp
MozReview-Commit-ID: HkWLIVAaciF
2017-04-11 09:47:28 -04:00
Valentin Gosu 8587a631ab Bug 1325341 - Racing cache with network should be disabled by default r=michal
MozReview-Commit-ID: CjidldaaJvQ
2017-04-10 14:22:21 +03:00
Nick Alexander d98dbfec90 Bug 1353055 - Strip 'vars' debugging information when building Fennec --with-gradle. r=ahunt
To observe the difference, use `javap -l`.  For example, for
automationRelease and automationDebug built with `./mach gradle clean
app:assembleAutomationRelease app:assembleAutomationDebug`, I see
locally:

$ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/release/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class
Compiled from "ActivityStreamContextMenu.java"
class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> {
  final android.view.MenuItem val$bookmarkItem;

  final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0;

  org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem);
    LineNumberTable:
      line 103: 0

  <snip>
}

$ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/debug/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class
Compiled from "ActivityStreamContextMenu.java"
class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> {
  final android.view.MenuItem val$bookmarkItem;

  final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0;

  org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem);
    LineNumberTable:
      line 103: 0
    LocalVariableTable:
      Start  Length  Slot  Name   Signature
          0      16     0  this   Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu$1;
          0      16     1 this$0   Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu;
          0      16     2    x0   Landroid/os/Handler;

  <snip>
}

MozReview-Commit-ID: 3HmiGkHhowQ
2017-04-03 13:41:11 -07:00
15c392346f Bug 1348675 - Remove the separate prefs for the pipelining on the android version of firefox. r=mcmanus 2017-03-19 09:38:00 +01:00
Jan Henning f7fb4a61aa Bug 743662 - Restore session once when addons require a restart. r=sebastian
MozReview-Commit-ID: C5Q9cYnxnhj
2017-03-03 19:05:49 +01:00
Ben Kelly ad9a6fd8ed Bug 1343895 Tune dom.timeout.max_consecutive_callbacks on fennec. r=smaug 2017-03-02 11:33:12 -05:00
Carsten "Tomcat" Book dc21916166 merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Nevin Chen 3defd2cba9 Bug 1342354 - Add pref pref on/off switch for new bookmark features. r=ahunt
MozReview-Commit-ID: 1Rz7rAao5Is
2017-02-24 18:05:10 +08:00
Jim Chen 791a65ebd1 Bug 1137567 - Make nsWindow for Android use TextEventDispatcher; r=esawin r=rbarker r=masayuki r=snorp
Bug 1137567 - 1. Allow dispatching key events during composition; r=esawin

We potentially dispatch key events during composition to provide
compatibility for pages that only listen to key events.

Bug 1137567 - 2. Allow keyboard events in DispatchInputEvent when not on APZ thread; r=rbarker

We use nsIWidget::DispatchInputEvent to dispatch our keyboard events on
the Gecko thread, which on Android is not the APZ controller thread. We
should allow these events to pass instead of crashing.

Bug 1137567 - 3. Add GeckoEditableSupport class to support TextEventDispatcher; r=masayuki

Add a separate GeckoEditableSupport class, which implements
TextEventDispatcherListener and uses TextEventDispatcher for IME
operations. The new class is entirely separate from nsWindow to allow it
to be independently used in content processes as well.

Most of the code is copied from nsWindow::GeckoViewSupport, and adapted
to use TextEventDispatcher.

Bug 1137567 - 4. Make nsWindow::WindowPtr available for outside classes; r=snorp

Make nsWindow::WindowPtr available not just for classes inside nsWindow
but for outside classes as well. Also, add support for RefPtr native
objects to nsWindow::NativePtr.

Bug 1137567 - 5. Use GeckoEditableSupport in nsWindow; r=esawin

Use the new GeckoEditableSupport class in nsWindow to replace the
previous code in nsWindow::GeckoViewSupport. GeckoEditable native
methods now go to GeckoEditableSupport instead of GeckoViewSupport.

Several native methods in GeckoEditable are changed from
dispatchTo="proxy" to dispatchTo="gecko", because we no longer need the
special nsWindow::WindowEvent wrapper for our native calls.

Bug 1137567 - 6. Use pushPrefEnv in test_assign_event_data.html; r=masayuki

setAndObserveCompositionPref in test_assign_event_data.html does not
invoke the callback if the pref is already set. This patch changes it to
use SpecialPowers.pushPrefEnv so the callback is always invoked.
2017-03-01 15:29:30 -05:00
Carsten "Tomcat" Book 7db36cdbb8 merge mozilla-inbound to mozilla-central a=merge 2017-02-22 14:33:38 +01:00
James Cheng 3a94c8b2a9 Bug 1340172 - Disable EME on Fennec(Only pref on for Nightly). r=cpearce
MozReview-Commit-ID: 66YOK9r1yb0
2017-02-17 11:10:05 +08:00
George Wright 060544953d Bug 1335145 - Only limit accelerated canvases for mobile r=milan 2017-02-21 13:42:32 -05:00
Jean-Yves Avenard edd006e6d6 Bug 1340096: Remove MediaCodecDataDecoder. r=bwu,jolin
We prefer the RemoteDataDecoder instead.

MozReview-Commit-ID: SK0D3hycRh
2017-02-16 12:26:53 +01:00
Kartikaya Gupta d3273144dd Bug 1339831 - Disable scrollbar-dragging in Fennec. r=botond
MozReview-Commit-ID: BCm9dMr1Zdu
2017-02-15 10:51:22 -05:00
Kartikaya Gupta 755db33920 Bug 1339831 - Alphabetically sort APZ prefs in mobile.js. r=botond
MozReview-Commit-ID: 1lICBEAgYrn
2017-02-15 10:50:34 -05:00
Jean-Yves Avenard 272de47b65 Bug 1336358: P1. Revert "Bug 1319987: P12. Disable RemoteDataDecoder.". r=jolin
This reverts commit ff9f57defc040b9a41a7b96361b5b286d2acff90

MozReview-Commit-ID: 1ta2wmzwcNo
2017-02-07 21:31:49 +01:00
Mike Taylor ee34910bfd Bug 1338260. Add Fennec-only UA override for directv.com. r=mconnor
They use an older version of Sencha Touch (v2.1.0) which is known
to not be compatibile with Firefox. However, pretending to be Chrome
fixes the issue of not being able to scroll and various paint bugs.

MozReview-Commit-ID: K35ll42Xxlt
2017-02-09 13:55:11 -06:00
Wes Kocher 4ef37edcd5 Backed out 2 changesets (bug 1336358) for android failures in video-replay-after-audio-end.html a=backout
Backed out changeset c474e07f9ad8 (bug 1336358)
Backed out changeset 1ffc124c5fc1 (bug 1336358)

MozReview-Commit-ID: 3IS2QDRTQkN
2017-02-08 12:34:48 -08:00
Jean-Yves Avenard 45c6d8fb4c Bug 1336358: P1. Revert "Bug 1319987: P12. Disable RemoteDataDecoder.". r=jolin
This reverts commit ff9f57defc040b9a41a7b96361b5b286d2acff90

MozReview-Commit-ID: 1ta2wmzwcNo
2017-02-07 21:31:49 +01:00
Matthew Noorenberghe 595105ed4f Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-07 11:15:35 +08:00
Carsten "Tomcat" Book 4ee0fb6b85 Backed out changeset 6b7069ed30e0 (bug 1330111) for causing frequent timeouts in browser_autocomplete_insecure_warning.js 2017-02-07 14:03:42 +01:00
Matthew Noorenberghe cdf7ab4697 Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-07 11:15:35 +08:00
Wes Kocher b2c1cc5f1d Backed out 9 changesets (bug 1330111) for bc bustage in various tests a=backout
Backed out changeset e87c86970a29 (bug 1330111)
Backed out changeset 9e2e44a7a159 (bug 1330111)
Backed out changeset 7abc377ef809 (bug 1330111)
Backed out changeset f1e782d1c944 (bug 1330111)
Backed out changeset d94d72846952 (bug 1330111)
Backed out changeset 23180cae4a46 (bug 1330111)
Backed out changeset 09c59f5c572a (bug 1330111)
Backed out changeset e208e0b51349 (bug 1330111)
Backed out changeset 271035a2bc64 (bug 1330111)

MozReview-Commit-ID: 6mfKgu07dow
2017-02-06 17:54:14 -08:00
Matthew Noorenberghe 2f92a5df80 Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-03 17:19:02 -08:00
Jean-Yves Avenard 7614e3f0ec Bug 1319987: P12. Disable RemoteDataDecoder. ?jhlin r=jya
There appears to be a race occurring where InputExhausted callback isn't always called.
The issue could be reproduced prior all those changes, albeit rarely.

The tracking of re-enabling this feature will be done in bug 1336358

MozReview-Commit-ID: 5rPpcCcgNIq
2017-02-03 09:40:28 +01:00
Chris Peterson 3f80404f8a Bug 1242321 - Remove obsolete "media.eme.apiVisible" pref. r=cpearce sr=bz
MozReview-Commit-ID: D31Yg1LHI5u
2017-02-01 22:10:06 -08:00
srivatsav a179e1ff9c Bug 1199752 - Removing all tab mirroring UI code. r=sebastian
MozReview-Commit-ID: GKcqpknJSAD
2017-02-02 11:27:28 +05:30
James Cheng 7c59e57390 Bug 1332981 - [EME][Fennec] Pref on EME API not only for Nightly build. r=cpearce
MozReview-Commit-ID: 77MrnKZRtoN
2017-01-23 12:31:34 +08:00
John Lin 621b7399c4 Bug 1333323 - remove nightly flag to enable OOP decoding for all versions. r=snorp
MozReview-Commit-ID: AjOsDiSmuz2
2017-01-24 14:28:55 +08:00
Sebastian Hengst c51e7d7efa Backed out changeset d8c85b0ed424 (bug 1311555) 2017-01-19 19:46:40 +01:00
Andrzej Hunt 1e887e9ed1 Bug 1311555 - Use filled bookmark star in ActivityStream context menu r=sebastian
Unfortunately tinting the bookmark star is highly complicated due to the tinting
that NavigationView performs (i.e. we'd likely have to disable NavigationView
tinting, and do manual tinting on every icon - alternatively we could hack
the tint-list to use blue for "checked" items, and set the bookmark item
as checked). Since it's unclear if we even want the star to be blue,
we'll leave it grey (but filled) for now.

MozReview-Commit-ID: DekRZJayKIz
2017-01-18 12:20:50 +01:00
Sebastian Kaspari 5c50d870eb Bug 1315982 - findbugs: Ignore DE_MIGHT_IGNORE warning in FennecTabsRepositorySession.releaseProviders(). r=walkingice
MozReview-Commit-ID: 6jG2QDQ62l8
2017-01-05 18:45:39 +01:00
Sebastian Kaspari 16fdab9f98 Bug 1316011 - findbugs: Enable VO_VOLATILE_INCREMENT check and ignore false positive in SerialRecordConsumer. r=walkingice
MozReview-Commit-ID: 5HGkERPyhUU
2017-01-05 18:33:18 +01:00
James Cheng 7d312f1c7d Bug 1325332 - [EME][Fennec] Pref on EME API and only support it for M+ android version. r=cpearce
MozReview-Commit-ID: Bi5pRhIFsxB
2016-12-23 15:50:13 +08:00
Phil Ringnalda 7257a6b17e Backed out changeset c273666082fa (bug 1325332) for Android test_interfaces.html failures 2017-01-08 21:17:41 -08:00
James Cheng 6a3e0f562a Bug 1325332 - [EME][Fennec] Pref on EME API and only support it for M+ android version. r=cpearce
MozReview-Commit-ID: Bi5pRhIFsxB
2016-12-23 15:50:13 +08:00
James Cheng 619151a16a Bug 1325005 - Preference on media.decoder.recycle.enabled not only for Nightly build. r=jolin
MozReview-Commit-ID: Ivsy0Y6ot13
2016-12-21 15:50:04 +08:00