Commit Graph
2302 Commits
Author SHA1 Message Date
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
Dale Harvey 09dba93fdd Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Iris Hsiao 87d8f82bc0 Backed out changeset 4f5a93b89b2b (bug 1344892) for Mochitest rc4 failures in Android 2017-03-15 17:37:39 +08:00
Jim Chen 22f9885110 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.

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.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-14 17:47:16 -04:00
Carsten "Tomcat" Book 811b1bab9a merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Julian_Chu ad635dc1d7 Bug 1315937 - Add share item to menu if necessary r=sebastian
3rd-party app could ask to add default share item to menu, and share
the data url to other activities if user click the share-menu-item.

MozReview-Commit-ID: HkDyENJtFn9
2017-03-02 17:05:28 +08:00
Julian_Chu a06f500f39 Bug 1315937 - Add custom items to menu of CustomTabsActivity r=sebastian
If 3rd-party app provides any custom menu items, add them to PopupMenu
and handle corresponding pending intent.

MozReview-Commit-ID: 5STg49hsCWF
2017-03-02 16:44:56 +08:00
Julian_Chu 1fa7906a3e Bug 1315937 - Add basic custom menu to CustomTabsActivity r=sebastian
Besides custom-menu-items from 3-rd party apps, we designed a custom
menu which always has
  * buttons for Forward, Reload
  * One menu item for 'Open by Firefox'
  * a footer 'Powered by Firefox'

This patch adds a button as an anchor to standard menu. Once user click
it, to show a custom menu (GeckoPopupMenu) base on the anchor.

In current design, there is only one style for menu, regardless of Dark
or Light theme.

MozReview-Commit-ID: 5RMiGDlxLTU
2017-03-01 13:42:10 +08:00