Commit Graph
2909 Commits
Author SHA1 Message Date
Nevin Chen b1d083c523 Bug 1295675 - Allow app level preferences. r=sebastian
MozReview-Commit-ID: yv97PSkL5n
2017-03-23 10:57:20 +08:00
Iris Hsiao fed2287322 Backed out changeset 565c6c66205d (bug 1295675) for android-checkstyle failure 2017-03-24 11:31:35 +08:00
Julian_Chu 85d399af7f Bug 1336373 - CustomTabsActivity supports tint in Action Button r=sebastian
If 3-rd party app specify to use tint for Action Button, use primary
text color as the tint color for Action Button.

MozReview-Commit-ID: 3sX0MH8P0dM
2017-03-20 13:59:43 +08:00
Nevin Chen d051c2d11b Bug 1295675 - Allow app level preferences. r=sebastian
MozReview-Commit-ID: yv97PSkL5n
2017-03-23 10:57:20 +08:00
Wes Kocher 4c6460b14a Backed out 3 changesets (bug 1348820) for testANRReporter failures on Android rc1 a=backout
Backed out changeset 2fffcd4ce3e4 (bug 1348820)
Backed out changeset 387d0326e3a0 (bug 1348820)
Backed out changeset 4775bb6e6b61 (bug 1348820)

MozReview-Commit-ID: 7e1oQSPE7kX
2017-03-23 14:45:57 -07:00
Sebastian Kaspari 1d3c02a9d8 Bug 1348820 - Setup A/B experiment for enabling Activity Stream in Nightly. r=Grisha
This is a bit complicated. But most of that code should go away again as soon as
we can stop shipping the opt-out preference.

With this patch we have three flags that can be controlled via Switchboard:

* activity-stream: This is our global kill switch and allows us to pull the feature
  if needed. A user has to be in this experiment to ever see activity stream. The
  goal is to enable this experiment for 100% of the Nightly audience.

* activity-stream-opt-out: This is experiment will enable the Activity Stream by
  default. The goal is to enable this experiment for 50% of the Nightly audience.

* activity-stream-settings: This experiment controls the visibility of a setting
  to enable/disable activity stream (settings -> advanced -> experimental features).
  This allows us to control whether users can opt-in or opt-out of the activity
  experiment. The goal is to enable this for 100% of the Nightly audience.

MozReview-Commit-ID: BwEoTK6QMQx
2017-03-20 19:46:39 +01:00
Sebastian Kaspari 26272be13d Bug 1348820 - Remove MOZ_ANDROID_ACTIVITY_STREAM build flag. r=Grisha
This flag wasn't used in the build system anyways. It was used to hide early builds of the
new Activity Stream UI. However this is now going to be controlled by Switchboard experiments.

MozReview-Commit-ID: Dfzw9YGgHkN
2017-03-20 14:31:33 +01:00
Carsten "Tomcat" Book 0947398f26 merge autoland to mozilla-central a=merge 2017-03-23 13:42:40 +01:00
Dylan Roeh 6e71d8147d Bug 1349200 - Ensure mozglue is loaded before checking NEON compatibility in GeckoApp.onCreate(). r=jchen 2017-03-21 08:49:15 -05:00
Carsten "Tomcat" Book 6610746b51 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Nevin Chen 5da21ba557 Bug 1329155 - Send telemetry when custom tab is used. r=sebastian data-r?bsmedberg
MozReview-Commit-ID: 2ulEeO4DPc4
2017-02-22 14:33:22 +08:00
Gabriele Svelto 30d88a559a Bug 1322611 - After a crash compute the SHA256 hash of a minidump and attach it to the crash ping; r=Ted, nchen
This patch changes the crashreporter client code as well as the crash service
code to compute a SHA256 hash of a crash' minidump file and add it to the
crash ping. The crash service code computes the hash on the fly before handing
over the crash to the crash manager; the crash manager will then add it to the
crash ping. The crashreporter client on the other hand sends the hash via the
ping it generates but it also adds it to the event file so that the crash
manager can pick it up and send it along with its own crash ping. On Fennec
the crashreporter activity takes care of computing the hash.

SHA256 hash computation uses nsICryptoHash in the crash service, the
java.security.MessageDigest class in Fennec, the bundled NSS library in the
crashreporter when running on Windows and Mac and the system-provided NSS
library under Linux. The latter is required because the crashreporter client
uses the system curl library which is linked to NSS and which would thus clash
with the bundled one if used together.

This patch introduces two new methods for the nsICrashService interface:
|getMinidumpForID()| and |getExtraFileForID()|, these reliably retrieve the
.dmp and .extra files associated with a crash and ensure the files exist
before returning. These new methods are used in the CrashService for
processing and will become the only way to reliably retrieve those files
from a crash ID.

MozReview-Commit-ID: 8BKvqj6URcO
2017-02-16 07:36:57 +01:00
maliu b9c8268930 Bug 1337440 - [RTL] Get drawing offset relatively when rtl and horizontal, r=sebastian
MozReview-Commit-ID: JZAnNJwxCyI
2017-03-22 14:55:31 +08:00
Phil Ringnalda a98ddb52d3 Backed out changeset 5a84ab13274a (bug 1337440) for Android build bustage 2017-03-22 21:07:39 -07:00
maliu f158451b9e Bug 1337440 - [RTL] Get drawing offset relatively when rtl and horizontal, r=sebastian
MozReview-Commit-ID: JZAnNJwxCyI
2017-03-22 14:55:31 +08:00
Jing-wei Wu 54aa2b76f3 Bug 1339884 - Adjust DateTimePicker's upper and lower bound. r=Grisha
MozReview-Commit-ID: GuefY4Sp4wF
2017-03-22 11:41:07 +08:00
Iris Hsiao 4b6b0a1c8a Bug 1329160 - follow up fix for android-checkstyle failure. r=me
commit cfdceed7ac0f3a01c0ba26e5cbad9bf00d7fc41d
Author: Nevin Chen <[email protected]>
    add space

    MozReview-Commit-ID: G12OwXykTZx
2017-03-22 14:48:44 +08:00
maliu 5804e7db7b Bug 1321981 - [RTL] ViewPager Support - part 4. Switch to RtlViewPager, r=sebastian
MozReview-Commit-ID: 2s695og8Umo
2017-03-21 14:34:08 +08:00
Nevin Chen f090f80002 Bug 1329160 - Send an event when warmup() is called. r=jchen,liuche,sebastian
MozReview-Commit-ID: LAz80Pt6KVV
2017-03-07 17:31:38 +08:00
Jan Henning c568532951 Bug 1346004 - Part 5 - Replace Gecko customtab tab attribute by a generic type attribute. r=sebastian
This'll allow customising context menu/session store/... behaviour in Gecko depending on the tab type, since in the future we might not only have special behaviour for custom tabs, but for web app tabs etc. as well.

MozReview-Commit-ID: LS6oGfO4KpR
2017-03-12 16:13:10 +01:00
Jan Henning 1090530dd0 Bug 1346004 - Part 4 - Filter non-browsing tabs from the TabsLayout/TabStrip. r=sebastian
Custom tabs etc. shouldn't show up in the main browser activity.

MozReview-Commit-ID: 1yrLZP6HJ3e
2017-03-11 20:48:54 +01:00
Jan Henning 5469ee9fae Bug 1346004 - Part 3 - getNextTab() should fall back to browsing-type tabs if no tabs of the same type are available. r=sebastian
We always want at least one browsing type tab open to match current behaviour and assumptions built into the app, but the same doesn't hold true for other tab types. A CustomTabActivity instance e.g. only holds a single tab, so the lifetime of the tab is tied to the lifetime of the CustomTabActivity. If we're exiting the activity, we just want to close the corresponding tab without opening a new replacement for it.

Since we have to select some other tab instead in that case (so the selected tab in the tab list and the selected tab in Gecko remain in sync and so we always have a selected tab), getNextTab() therefore has to fall back to browsing-type tabs as a default if no other tabs of the same type are available.

MozReview-Commit-ID: IpvINlu5Qq9
2017-03-11 20:57:54 +01:00
Jan Henning 12ae52a4e4 Bug 1346004 - Part 2 - Tabs helper functions for searching next/previous tab should take the Tab type into account. r=sebastian
MozReview-Commit-ID: DRBjBrndDWW
2017-03-11 20:29:17 +01:00
Jan Henning bec7a01acb Bug 1346004 - Part 1 - Keep track of a tab type on the Java tab object. r=sebastian
As long as the tabs are opened in the same Gecko browser window, splitting the Java UI tabs list into multiple parts breaks too many assumptions, so the easier solution is to allow setting a type attribute on each tab object, which will allow filtering of them later on.

MozReview-Commit-ID: 1PbxMkWTK47
2017-03-11 20:04:07 +01:00
Jan Henning f07b123d03 Bug 1346004 - Part 0 - Remove unneeded imports. r=sebastian
MozReview-Commit-ID: GsXHhrvNRSy
2017-03-12 16:18:48 +01:00
maliu 32f8d87f85 Bug 1347476 - [RTL] Update TouchDelegate Rect for tab close button relatively, r=sebastian
MozReview-Commit-ID: 2ptzHWBVvUq
2017-03-16 11:11:13 +08:00
Julian_Chu 1f9713c65e Bug 1337238 - Involve ProgressBar to CustomTabsActivity for page loading r=sebastian
To add a progressbar to CustomTabsActivity then user knows page loading
progress.

MozReview-Commit-ID: L1Qc7Oj81bZ
2017-03-10 15:29:35 +08:00
Julian_Chu 2af17ff9a8 Bug 1337238 - Reuse some id resources in layout xml file r=sebastian
No need to create id resources for common widgets in each activities, e.g.
toolbar. Reuse id resources to make less ambiguous when invoking `findViewById`

In BrowserApp and CustomTabsActivity, both of them have ActionBar and
Progress-Bar. Let them use the same id resource.

MozReview-Commit-ID: 2jq18dwlBlm
2017-03-10 12:39:27 +08:00
Wes Kocher 29c38a6108 Merge inbound to central, a=merge
MozReview-Commit-ID: 2omKclRg40c
2017-03-20 18:19:52 -07:00
Dylan Roeh 7da7139ee3 Bug 1338055 - Store a reference to the instance EventDispatcher in PromptService. r=jchen 2017-03-20 14:32:44 -05:00
John Lin a1d93fee83 Bug 1346235 - part 4: recycle unpopulated input samples. r=jchen
MozReview-Commit-ID: Lr0aSQ0OfRg
2017-03-17 15:06:39 +08:00
John Lin bfc9f9cceb Bug 1346235 - part 3: forward shared memory allocation error to peer process. r=jchen
MozReview-Commit-ID: KDIMylv9tVt
2017-03-17 15:17:16 +08:00
John Lin a272687888 Bug 1346235 - part 2: translate memory error to I/O failure. r=jchen
MozReview-Commit-ID: F2ca0q2JQp
2017-03-17 15:04:26 +08:00
John Lin 1d77babe38 Bug 1346235 - part 1: translate native error to Java exception. r=jchen
MozReview-Commit-ID: BcpfJLSzTvk
2017-03-17 14:21:27 +08:00
Sebastian Hengst 6978d4ed55 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8nsStTZt40O
2017-03-18 16:24:53 +01:00
Dylan Roeh 0568758ce4 Bug 1345267 - Check NEON compatibility in BrowserApp/GeckoApp.onCreate() and fail with an appropriate error message if necessary. r=jchen 2017-03-17 18:38:54 -05:00
Julian_Chu babd97fd1b Bug 1332546 - Add SiteIdentityPopup to CustomTabsActivity r=sebastian
Similiar to GeckoApp, once user click icon in ActionBar, it displays
a popup menu for site identity.

MozReview-Commit-ID: LpvhFjx2BSk
2017-03-10 13:08:19 +08:00
Julian_Chu fb4d6baee2 Bug 1332546 - add initialization checking to SiteIdentityPopup r=sebastian
If there are multiple SiteIdentityPopup instances.(ie. in GeckoApp and
in CustomTabsActivity), each instances will start receiving events once
attached to window. However it might have not call init() yet.

MozReview-Commit-ID: 1dIAUOTeTLg
2017-03-10 12:54:09 +08:00
Julian_Chu a6c27eaea6 Bug 1332546 - Add CustomView to ActionBar of CustomTabsActivity r=sebastian
The CustomView has three components

  * Icon - for site info to indicate whether the visited site is security
  * Title
  * Url

Icon is for site info to indicate whether the visited site is security.
Its icon type is decided by SecurityModeUtil. All of the components' color
are the same as TextView color.

When onTabChanged happens, it updates CustView of ActionBar to reflect
current site security status. Sometimes the callback will be invoked rapidly
several times in very short time. To avoid icon twinkle, to add a delay when
updating CustomView.

MozReview-Commit-ID: KCu3XLObmmV
2017-03-09 15:17:36 +08:00
Julian_Chu 82e44d45a9 Bug 1332546 - Apply default actionbar color r=sebastian
Designer provides a color code as default background color for
ActionBar.

Also get rid of `NO_COLOR`: -1 equals 0xFFFFFFFF, so it always ignores
white color.

MozReview-Commit-ID: 6YJDxsSOhkZ
2017-03-08 11:43:24 +08:00
Julian_Chu 801b281d11 Bug 1332546 - ensure ActionBar color is not translucent r=sebastian
Translucent color cause some rendering problem in Toolbar. For example,
if we set translucent color to toolbar and changes title, we will see
new title convers the old-translucent title.

Since ActionBar is usually on the top and nothing behind it, it does not
make sense use translucent color as its background.

MozReview-Commit-ID: LdZyuYZ7IgX
2017-03-08 11:13:48 +08:00
Julian_Chu 47ac2b52ae Bug 1332546 - Refactory ActionBar by extracting methods to another class r=sebastian
ActionBar of CustomTabsActivity is getting complicated. There will be
more components in ActionBar, such as Site-identity-icon.

Move some action-bar related view code to another class.

MozReview-Commit-ID: I5sOSCQKnlv
2017-03-03 13:02:16 +08:00
Carsten "Tomcat" Book dfd22b262a Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Jim Chen 163cde5903 Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue. GeckoThread.waitOnGecko is changed to wait on
both the widget queue and the XPCOM queue. nsAppShell::SyncRunEvent is
changed to avoid a possible deadlock condition involving locking
sAppShellLock twice.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative. As a rule, disposeNative is dispatched to the queue with
the least priority among the queues that other native members of the
same class dispatch to (i.e. "gecko_priority" if all other native
members dispatch to "gecko_priority", or "gecko" if any native members
dispatch to "gecko").

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-16 23:30:54 -04:00
Jim Chen 05c5e0b0bb Bug 1345967 - Use global EventDispatcher for update messaging; r=sebastian
Use the global EventDispatcher for signaling update results. The event
listener in about.js must be unregistered after every event to prevent
memory leaks, so expectUpdateResult() is added and called whenever we
are expecting update results.
2017-03-16 12:37:41 -04:00
Wes Kocher f45df6b016 Bug 1036764 - Checkstyle followup a=bustage
MozReview-Commit-ID: DCTaCnF9SEi
2017-03-16 17:00:09 -07:00
nechen cca24cfa64 Bug 1036764 - Add telemetry for flash. r=bsmedberg,snorp data-r?bsmedberg
MozReview-Commit-ID: 1tsNZlEmx6s
2017-03-14 14:12:26 +08:00
John Lin b95053fc3c Bug 1345599 - part 2: queue empty buffer when fail to copy input data. r=snorp
MozReview-Commit-ID: 3XkxZDOk6PQ
2017-03-14 14:53:36 +08:00
John Lin 6855159ada Bug 1345599 - part 1: reduce InputExhausted() calls to avoid input queue flood. r=snorp
MozReview-Commit-ID: Kgl77k9Cx7w
2017-03-14 14:51:52 +08:00
Michael Kaply 575bff3479 Bug 1300201 - Switch Fennec to use list.json. r=sebastian,r=flod
MozReview-Commit-ID: JNtFSCOQhJ
2017-03-09 14:58:57 -06:00