Commit Graph

18546 Commits

Author SHA1 Message Date
Michael Comella
8b980a0619 Bug 1232773 - Add Adjust.onPause/onResume to record session info. r=mfinkle
I added these to BrowserApp to match the use of Adjust.onCreate in BrowserApp.

These sessions don't perfectly match the FHR sessions they replace which get
called in:
  GeckoApp.onPause (session end)
  BrowserHealthRecorder.onEnvironmentTransition (session end)
  BrowserHealthRecorder.checkForOrphanSessions (session start)
    - From BHR.initializeStorage <- BHR.handleMessage. I didn't figure out
      where this message comes from but given "initializeStorage", I assume
      this comes from a startup routine of GeckoApp.

However, the Adjust docs are explicit about adding these values to
onPause/onResume and presumably written under the assumption that those methods
are called in the appropriate places.

The docs also mention these calls should occur in all Activities but I followed
FHR where only the main Activity is logged - I don't predict any negative side
effects from this change.
2015-12-15 14:44:02 -08:00
Varun Joshi
d38a394d51 Bug 1128675 - Duplicate indexes in browser.db. r=rnewman 2015-12-16 15:02:13 -08:00
Nick Alexander
a1703fa503 Bug 1220309 - Follow-up: Add build dependencies to appcompat-v7. r=mcomella 2015-12-16 13:57:05 -08:00
Michael Comella
10b9c4ef91 Bug 1220309 - Correct all caps button text in Button from AppCompat. r=sebastian
AppCompat capitalizes all text in `Button`s so we have to override
that behavior to maintain the same UI. Ideally, we do this through
`android:buttonStyle` but the place I found the issue doesn't inherit
from that style so we can't and we change the style directly.

There may be issues with other `Button`s, but this is the only one I found.
2015-12-15 11:26:33 -08:00
Michael Comella
e8c7d4eb5c Bug 1220309 - Have GeckoApp extend AppCompatActivity. r=sebastian
We're using the Theme.AppCompat styles so we have to extend AppCompatActivity.
It is a subclass of the previous class GeckoApp extended so we shouldn't run
into an ClassCastExceptions.

I tested the home panels, tabs tray, hyperlink long-press context menus,
door hangers, the 3-dot menu, and browser search to make sure there was no
change in UI appearance.
2015-10-30 12:14:00 -07:00
Sebastian Hengst
6d2fa18f6a Backed out 2 changesets (bug 1220309) for Android build bustage. r=backout
Backed out changeset 6f96c9f06a3d (bug 1220309)
Backed out changeset 736a01329729 (bug 1220309)
2015-12-16 22:42:40 +01:00
Michael Comella
f10d038fe6 Bug 1220309 - Correct all caps button text in Button from AppCompat. r=sebastian
AppCompat capitalizes all text in `Button`s so we have to override
that behavior to maintain the same UI. Ideally, we do this through
`android:buttonStyle` but the place I found the issue doesn't inherit
from that style so we can't and we change the style directly.

There may be issues with other `Button`s, but this is the only one I found.
2015-12-15 11:26:33 -08:00
Michael Comella
32ddb1a18a Bug 1220309 - Have GeckoApp extend AppCompatActivity. r=sebastian
We're using the Theme.AppCompat styles so we have to extend AppCompatActivity.
It is a subclass of the previous class GeckoApp extended so we shouldn't run
into an ClassCastExceptions.

I tested the home panels, tabs tray, hyperlink long-press context menus,
door hangers, the 3-dot menu, and browser search to make sure there was no
change in UI appearance.
2015-10-30 12:14:00 -07:00
Chenxia Liu
109eec104c Bug 1212611 - Use system notification for website notifications in Android. r=mfinkle 2015-12-03 10:56:04 -05:00
Sebastian Kaspari
59ea8f3540 Bug 1222377 - Add option to enable blocking content in restricted profiles. r=margaret
(Feature only enabled in Nightly until we deployed an actual block list)
2015-12-15 13:34:49 +01:00
Sebastian Kaspari
4628ca63b5 Bug 1230937 - Restricted profiles: Always allow features that are not in the configuration. r=margaret 2015-12-15 13:21:45 +01:00
Andrzej Hunt
115048280c Bug 1230568 - Allowing showing search suggestion opt in multiple times r=mcomella 2015-12-14 16:28:59 -08:00
Andrzej Hunt
b1de7a9060 Bug 1145858 - Rename FirstrunPane to be less confusing. r=liuche 2015-12-14 16:01:17 -08:00
Nick Alexander
e7d014e578 Bug 1232468 - Add ch.boye dependency for Adjust SDK. r=me a=bustage
Pushing to try to address bustage on a CLOSED TREE.
2015-12-14 20:26:34 -08:00
Wes Kocher
3f182b45af Backed out changeset bbe415dff600 (bug 1230937) for testRestrictions failures in android rc3 2015-12-15 14:11:22 -08:00
Wes Kocher
08eb68bcef Backed out changeset 0ac99e7e0440 (bug 1222377) for testRestrictions bustage in android rc3 2015-12-15 14:11:10 -08:00
Nick Alexander
a2df8f3cff Bug 1230848 - Remove Gradle configuration rooted in the object directory. r=gps
DONTBUILD NPOTB

The top source directory configuration requires
mobile/android/gradle/m2repo/**, so it stays.  There's no value
changing the location; it contains an Android-specific Gradle plugin.

We note the removal of |mach gradle-install| and point to the new
documentation.
2015-12-06 15:02:11 -08:00
Sebastian Kaspari
559a4ea324 Bug 1222377 - Add option to enable blocking content in restricted profiles. r=margaret
(Feature only enabled in Nightly until we deployed an actual block list)
2015-12-15 13:34:49 +01:00
Sebastian Kaspari
81dfd88293 Bug 1230937 - Restricted profiles: Always allow features that are not in the configuration. r=margaret 2015-12-15 13:21:45 +01:00
Michael Comella
f93ef40233 Bug 1229958 - Remove android:panelBackground. r=sebastian
There is no noticeable difference in background color of the menu on my 4.* GS4
or my 2.3 Nexus S, though perhaps it affects more than the menu.

The menu_panel_bg drawable is now unused so I removed that too.
2015-12-02 15:32:42 -08:00
Carsten "Tomcat" Book
2c5f71c734 merge mozilla-inbound to mozilla-central a=merge 2015-12-15 12:16:29 +01:00
Michael Comella
ea0c94024c Bug 1209967 - test failures: Increase wait time when searching for a menu View. r=me 2015-12-01 16:48:09 -08:00
Michael Comella
46a2b1f6f5 Bug 1209967 - review: Set menu buttons visible in xml & remove dynamic visibility. r=me 2015-11-25 15:58:47 -08:00
Michael Comella
5d73cc04ea Bug 1209967 - Fix AppMenuComponent to work on GB. r=sebastian
This required us to use the menu button to open the menu and check
if the menu is open by looking at more menu items due to intermittent
issues where the menu would not always be scrolled to the top (I
think Robotium scrolled the menu before it finished appearing so
we couldn't see the first item and failed the isOpen test).
2015-11-25 15:52:39 -08:00
Michael Comella
d85bf9d6df Bug 1209967 - Remove Asserts from BrowserApp. r=me
We added some Asserts but the robocop tests fail for an unknown reason. The
error was:
  E/MessageQueue-JNI( 1972): java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

I tried a few things but in the end just decided to remove them.
2015-11-25 11:39:23 -08:00
Michael Comella
560dd56c68 Bug 1209967 - Remove android:icons from GB menu. r=sebastian
ic_menu_back was not in the v11 folder so I moved the all-API asset to the v11
folder.
2015-11-17 17:03:07 -08:00
Michael Comella
6396749d5f Bug 1209967 - Remove HardwareUtils.hasMenuButton. r=sebastian 2015-11-17 16:25:39 -08:00
Michael Comella
42fa2cbbf5 Bug 1209967 - Toolbar: Always show the overflow menu.
This required us to use the custom menu inflater and panels on GB.

One side effect of this change is that the menu button no longer
closes the menu on GB. I tried to fix this but BrowserApp.onKeyDown
is not fired when the menu is open on GB and I'm not sure why that
is. However, I don't think it's worth my time to fix since it's GB.
2015-11-17 15:04:59 -08:00
vivek
ce9f7bbce1 Bug 1220904 - Message that Old Sync accounts are deprecated and going away. r=nalexander 2015-11-20 21:58:38 +02:00
Margaret Leibovic
8c81471471 Bug 1232296 - Let tap-to-load images ride the trains. r=mcomella 2015-12-14 10:00:13 -05:00
Margaret Leibovic
e3a33130b8 Bug 1231896 - Catch exception thrown if we fail to reload session state for error page. r=bnicholson 2015-12-11 09:39:32 -05:00
Richard Newman
617977a866 Bug 1230206 - Disable upload of new FHR documents. r=mcomella, a=kwierso/android-only on a CLOSED TREE 2015-12-11 13:04:41 -08:00
Richard Newman
206bec87ef No bug - Fix logging error in SwitchBoard. 2015-12-11 12:11:42 -08:00
Sebastian Kaspari
ca1e70f7b0 Bug 1229153 - GeckoApp: Unregister from Snackbar events in onDestroy(). r=jchen 2015-12-10 11:01:59 -05:00
Phil Ringnalda
e5b40b0d54 Merge m-c to b-i 2015-12-12 17:02:02 -08:00
Reuben Morais
7ea9d816d3 No bug - Fix warning when building B2GDroid with Java 8. r=sgiles 2015-12-11 14:33:33 -05:00
Etienne Segonzac
cf95ef40b8 Bug 1230550 - Enable the real APZ on b2gdroid in a safer way. r=fabrice 2015-12-11 10:04:10 -05:00
Carsten "Tomcat" Book
237c1bea42 merge mozilla-inbound to mozilla-central a=merge 2015-12-11 11:38:17 +01:00
Mark Capella
2cb19ee6d0 Bug 1226431 - Toggling find in page match case removes focus, r=margaret 2015-12-10 18:57:02 -05:00
Mark Capella
ff3c9d518e Bug 1230613 - Long-press to trigger text selection should vibrate, r=snorp 2015-12-10 18:57:02 -05:00
Jim Chen
fc1694ecf5 Bug 1051556 - Re-flush IME changes when querying text triggers more changes; r=esawin
We send query text events when flushing IME changes, and sometimes these
events make Gecko commit more pending changes. In that case, we should
try flushing again, so we pick up the new changes.

This patch also makes the process of flushing text changes
transactional, so that if we have to bail due to more pending changes,
nothing will be committed.
2015-12-12 10:18:43 -05:00
Jim Chen
b47f5547b2 Bug 1051556 - Make GeckoEditable.onTextChange more efficient; r=esawin
This patch simplifies the onTextChange method, makes it more efficient
by avoiding unnecessary text copying, and fixes some small bugs.
2015-12-12 10:18:43 -05:00
Jim Chen
6139357521 Bug 1051556 - Add test for re-flushing changes; r=esawin
This patch adds a test for triggering re-flushing IME changes to
testInputConnection, by ending a composition followed by setting the
value of the input field.
2015-12-12 10:18:43 -05:00
Jim Chen
60526d979b Bug 1051556 - Convert testInputConnection to a JS test; r=esawin
A test for this bug requires the Robocop test call some JS functions.
This patch gives testInputConnection the ability to make calls to
content JS. It also converts the existing tests to use JS instead of
using previous workarounds (e.g. using URL hash to set the initial text,
using tab key to change input focus).
2015-12-12 10:18:43 -05:00
Kartikaya Gupta
b94adf267b Bug 1230522 - Don't send events to C++ APZ if gecko isn't up yet. r=rbarker 2015-12-10 17:23:18 -05:00
Kartikaya Gupta
9b77b6b8a3 Bug 1230522 - Make some unimplemented functions not be native. r=rbarker 2015-12-10 17:23:07 -05:00
Carsten "Tomcat" Book
1243a822e4 Merge mozilla-central to fx-team 2015-12-11 11:44:43 +01:00
Nick Alexander
b0f3f38053 Bug 1231749 - Use |mach build faster| to see changes in toolkit/ in Gradle configuration. r=me f=vivek
DONTBUILD NPOTB

This also adds toolkit/ to the Gradle omnijar project.
2015-12-09 23:48:07 -05:00
Sebastian Kaspari
ed511c83d8 Bug 1230603 - GeckoPreferences: Always process matching PrefHandlers. r=margaret 2015-12-10 09:36:08 -05:00
Carsten "Tomcat" Book
392df82c41 merge fx-team to mozilla-central a=merge 2015-12-09 11:46:15 +01:00