Commit Graph

19107 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
3e9ea9b4fc Backed out changeset bc3e37b63def (bug 1246918) for fix frequent android c1 test failures 2016-02-17 14:35:10 +01:00
Carsten "Tomcat" Book
05fbdd5951 merge fx-team to mozilla-central a=merge 2016-02-17 12:07:39 +01:00
Ting-Yu Lin
0cded77e54 Bug 1246918 - Fix carets missing after scrolling down in selection mode on Fennec. r=roc
Fennec enables sCaretsExtendedVisibility which uses
Appearance::NormalNotShown instead of Appearance::None to keep actionbar
shown during scrolling. This breaks selection mode update when the
positions of the carets are not changed after scrolling.

To fix this, we need to implement appearance recovering for selection
mode scrolling like we did for cursor mode in bug 1212732, and make
UpdateCaretsForSelectionMode() respects UpdateCaretsHint.

MozReview-Commit-ID: LkfUIGKHL0h
2016-02-11 16:22:57 +08:00
Xidorn Quan
7cada478d1 Bug 743198 part 8 - Use unprefixed Fullscreen API in chrome code. r=smaug 2016-02-17 08:47:11 +08:00
Jim Chen
4b45341431 Bug 1248459 - Get more logs for debugging crash; r=snorp
This patch turns on logging for GeckoEditable and GeckoInputConnection,
and makes us fetch more lines of logcat when submitting crash reports.
2016-02-16 16:57:49 -05:00
Jim Chen
1e590abbf2 Bug 1248033 - Support GAME_ROTATION_VECTOR sensor events with no W parameter; r=snorp 2016-02-16 16:57:49 -05:00
Jim Chen
c1b0c71624 Bug 1248047 - Switch back to UI thread when using physical keyboards; r=esawin
When using physical keyboards, we get key events on the UI thread. To
improve performance, and to support key listeners better, we should
switch the IC thread to the UI thread in that case.
2016-02-16 16:02:39 -05:00
Jim Chen
21ab07e123 Bug 1248047 - Simplify GeckoInputConnection.processKey; r=esawin
Right now, processKey uses a IC-thread proxy in order to handle key
events on the UI thread. This patch makes it post the key event to the
IC thread and avoid the proxy entirely.
2016-02-16 16:02:39 -05:00
Jim Chen
4d6ac799f6 Bug 1248047 - Make GeckoInputConnection.sendKeyEvent more efficient; r=esawin
Right now, sendKeyEvent does a round trip from the IC thread to the UI
thread back to the IC thread. This patch makes it stay on the IC thread.
2016-02-16 16:02:38 -05:00
Carsten "Tomcat" Book
c0a8e566e1 merge mozilla-inbound to mozilla-central a=merge 2016-02-16 11:51:26 +01:00
ISHIKAWA, Chiaki
72d38a6835 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Margaret Leibovic
939092e62b Bug 1225842 - Properly send message to update open search state. r=liuche
MozReview-Commit-ID: 77s1zWo9vrr
2016-02-05 12:56:23 -05:00
Margaret Leibovic
ca89cf07bb Bug 1245930 - Disable zoomed view on non-Nightly builds. r=mcomella
MozReview-Commit-ID: 3RfprujEO1h
2016-02-12 12:54:50 -05:00
Nick Alexander
c386e3e379 Bug 1248092 - Replace preprocessor -I with CONFIGURE_SUBST_FILES. r=glandium
MozReview-Commit-ID: IT4cHsAOMwd
2016-02-12 16:27:24 -08:00
David Rajchenbach-Teller
a4d88c56a6 Bug 1243706 - Release PerformanceStats/PerformanceWatcher;r=Felipe
MozReview-Commit-ID: 4XT21bfBSa9
2016-01-28 13:41:14 +01:00
Mark Finkle
e34e500a85 Bug 1046859 - Add telemetry flag for search suggestion opt-in r=liuche 2016-02-14 21:20:37 -05:00
Phil Ringnalda
e67329a593 Merge m-i to m-c, a=merge 2016-02-13 19:18:53 -08:00
Mark Finkle
6bbc62012c Bug 1246973 - Support clearing UI Telemetry when creating pings r=gfritzsche 2016-02-12 18:02:03 -05:00
Nick Alexander
f7269cd80a Bug 1119520 - Add opt-in Gradle build mode for mobile/android. r=gps
Opt-in by adding --enable-gradle-mobile-android-builds.

Gradle dependencies (including the Android-Gradle plugin) are assumed
to be present.  Local developers will fetch them from the jcentral
repository.

Android-specific Maven dependencies are shipped as "extras" with the
Android SDK, and should be found automatically by the Android-Gradle
plugin.

MozReview-Commit-ID: 966XgddWgEu
2016-02-12 10:06:40 -08:00
Nick Alexander
4777f0cd86 Bug 1248005 - Use com.stanfy.spoon:spoon-gradle-plugin:1.0.4. r=me
MozReview-Commit-ID: 8hSOCq8XpZ7
2016-02-11 12:44:53 -08:00
Andrzej Hunt
33bea3e9a1 Bug 1245580 - Post: document that OnFaviconLoadedListener runs on the UI thread r=liuche
MozReview-Commit-ID: HcsTHl8ttUQ
2016-02-04 19:22:59 -08:00
Andrzej Hunt
aaf005f02c Bug 1245580 - Part 2: assert GeckoAppShell.createShortcut is run on background thread r=liuche
MozReview-Commit-ID: 4KsxfvQ5mOd
2016-02-04 19:24:20 -08:00
Andrzej Hunt
d74032c6f7 Bug 1245580: Part 1 - doCreateShortcut no longer needs to be on the Background thread r=liuche
When doCreateShortcut was first created, it also handled webapp intents. This required additional
work, meaning doCreateShortcut had to be run on the background thread. We now only
create an Android Intent, with no additional work, hence we can run directly on the UI thread.

MozReview-Commit-ID: BFrAuNfDiFj
2016-02-04 19:22:16 -08:00
Carsten "Tomcat" Book
cc458bb98e Merge mozilla-central to fx-team 2016-02-12 15:21:12 +01:00
Carsten "Tomcat" Book
ab1e5f44dc merge mozilla-inbound to mozilla-central a=merge 2016-02-12 15:15:17 +01:00
Carsten "Tomcat" Book
73e08a4e77 Backed out changeset 306cf0271d3e (bug 1119520) for causing merge conflicts with m-i to m-c merge 2016-02-12 15:14:36 +01:00
Mihai Pop
a5c87276df Bug 1247294 - Add "Full-screen browsing" settings, in Settings -> General menu for tablets. r=sebastian 2016-02-11 15:57:36 +02:00
Andrzej Hunt
d755ef8861 Bug 1246704 - Either create URLMetadataTable, or upgrade it, don't do both r=liuche
MozReview-Commit-ID: HyYPbIwqMGc
2016-02-08 10:55:44 -08:00
Andrzej Hunt
fcf3b8657a Bug 1239823 - Part 2: sanitise input dates for DatePicker r=margaret
MozReview-Commit-ID: GiXgQwscGPT
2016-02-03 15:23:09 -08:00
Andrzej Hunt
c87e0ede58 Bug 1239823 - Part 1: Parse min/max date before use r=margaret
MozReview-Commit-ID: 4th3CJwwcDg
2016-02-03 15:17:38 -08:00
Nick Alexander
500e6635c8 Bug 1119520 - Add opt-in Gradle build mode for mobile/android. r=gps
Opt-in by adding --enable-gradle-mobile-android-builds.

Gradle dependencies (including the Android-Gradle plugin) are assumed
to be present.  Local developers will fetch them from the jcentral
repository.

Android-specific Maven dependencies are shipped as "extras" with the
Android SDK, and should be found automatically by the Android-Gradle
plugin.

MozReview-Commit-ID: 966XgddWgEu
2016-02-03 11:18:38 -08:00
Nick Alexander
94bd918d8c Bug 1247637 - Remove browser_intent_*; use ActivityUtils to open FxA links. r=sebastian
This fixes a crash, since Bug 1242213 removed the .App
<activity-alias> that browser_intent_class references.

I debated just updating the strings, and decided that it was best to
remove a pattern that is used only once in our codebase, even though
it moves more functionality to code.

MozReview-Commit-ID: 4Wgw0oITgue
2016-02-11 10:07:20 -08:00
malayaleecoder
2b698981bb Bug 1243821 - Remove unused Old Sync strings. r=nalexander
MozReview-Commit-ID: 48Nm8SxZEbG
2016-02-03 02:02:25 +05:30
Carsten "Tomcat" Book
0a555533a6 merge mozilla-inbound to mozilla-central a=merge 2016-02-11 11:52:01 +01:00
Ting-Yu Lin
7ea335f8e8 Bug 1246572 - Remove the two blue bars of the text selection for Fennec. r=snorp 2016-02-09 23:19:43 +08:00
Randall Barker
e57e8c417c Bug 1247095 - Disable re-targeting mouse event in Fennec r=snorp 2016-02-10 08:20:01 -08:00
Carsten "Tomcat" Book
24a4428cfe Merge mozilla-central to mozilla-inbound 2016-02-10 14:29:05 +01:00
Carsten "Tomcat" Book
3847eaf3bd merge mozilla-inbound to mozilla-central a=merge 2016-02-10 11:47:34 +01:00
Jim Chen
0c9549bd87 Bug 1241558 - Re-enable testInputConnection on 4.3; r=gbrown 2016-02-09 23:36:41 -05:00
Jim Chen
906cd783ea Bug 1241558 - Add test to testInputConnection; r=esawin 2016-02-09 23:36:41 -05:00
Jim Chen
45c8ed0b53 Bug 1241558 - Don't ignore Gecko selection when Gecko commits composition; r=esawin
When Java is changing the composition, we should ignore the Gecko
selection. However, when Gecko is committing its composition, we should
not be ignoring the corresponding Gecko selection change. In other
words, we should only ignore selection changes when we know the change
is from Java.
2016-02-09 23:36:41 -05:00
Nick Alexander
406dc13a1d Bug 1173229 - Apply Google-recommended PRNG fixes before generating DSA keys. r=rnewman
See
https://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html
for a thorough discussion.

It's very expensive (at least 200ms on modern devices) to do this in
Application.onCreate, so we'll do this just before generating DSA keys.
In exchange, we accept some risk that we'll introduce the same issue
again.  As we lint more aggressively in automation, this risk will
decrease.

Google licenses the fixes file very permissively.  I have added some
serialization IDs to prevent certain compile warnings.
2016-02-03 15:39:16 -08:00
Michael Comella
b71a17e843 Bug 1246839 - Close Reader in ApkResources. r=rnewman
MozReview-Commit-ID: Ks2AkrPDF3Q
2016-02-08 17:58:03 -08:00
Michael Comella
31ec0db69f Bug 1246839 - Close FileOutputStream in BrowserApp. r=rnewman
MozReview-Commit-ID: C2tWuetVrqp
2016-02-08 17:55:48 -08:00
Michael Comella
09035ff65f Bug 1246209 - Add profile creation date to core ping. r=mfinkle
This patch adds 2 workarounds for the fact that getProfileCreationDate
returns -1 when it can't find a creation date. Returning -1 turned
out to be not particularly robust but I did it this way to avoid
adding too many additional versions of methods in order to have
optional parameters such as profileCreationDate. The workarounds
are added as TODOs w/ bug #'s in the code and mentioned in the
comments of bug 1246816 itself.

A future implementation should probably add a Builder to pass a
single Object as the argument to TelemetryPingGenerator.createCorePing
to prevent the argument list from growing unreasonably large and
to properly operate on optional parameters. I didn't do this in
this patch in order to simplify the uplifted code.
2016-02-08 17:17:14 -08:00
Michael Comella
59539bf626 Bug 1246209 - Add getProfileCreationDate, implement from filestystem, & add stencil code. r=mfinkle
Retrieving the profile creation date from the filesystem is not strictly
necessary to upload this data and returns -1 until it is implemented. If the
decision is r+'d here, it will be implemented in bug 1246816.
2016-02-08 17:10:26 -08:00
Michael Comella
85c3cb6030 Bug 1246209 - Extract readJSONObjectFromFile out of getClientId. r=mfinkle 2016-02-08 15:03:21 -08:00
Michael Comella
e96bcf3add Bug 1233238 - Compile with play-services-{ads,analytics,appindexing} to support Adjust SDK. r=nalexander
On a CLOSED TREE because this is Android only.

When we switched to fine-grained Google Play Services bundling (Bug
1115004), we stopped shipping com.google.android.gms.analytics.  That
silently breaks Adjust, which queries the Google Ad ID using
reflection: now the package isn't present!  This patch restores the
Play Services libraries that Adjust relies on.  (Sadly, this bloats
our APK tremendously.)

There is some hijinkery, however: the Play Services libraries
reference a library (org.apache.http) that is deprecated in Android
23!  However, the library is still present on Android 23 devices,
which buys Google time to replace the offending code.  This compiles
just fine, breaks the Proguard global optimization pass.  To give
Proguard the information, we add the library as a Proguard "library
JAR".  This is equivalent to the Google-provided Gradle `useLibrary`
directive.
2016-02-04 16:10:29 -08:00
Mark Finkle
ec6fe8647c Bug 1244966 - Re-enable testBookmarklets using a simpler test r=margaret 2016-02-09 11:24:36 -05:00
Shatur
a182a1d524 Bug 1228170 - Remove legacy menu code from AppMenuComponent. r=sebastian 2016-02-02 23:46:58 +05:30