Commit Graph
2909 Commits
Author SHA1 Message Date
Jim Chen e58d307fbe Bug 1286663 - Add request thumbnail native method to ThumbnailHelper; r=snorp
Add and use a request thumbnail native method call in ThumbnailHelper,
instead of using the THUMBNAIL event in GeckoEvent.
2016-07-21 00:41:13 -04:00
Jim Chen b53f227487 Bug 1286925 - Remove screen orientation event from GeckoEvent; r=snorp
Remove the now-obsolete SCREENORIENTATION_CHANGED event from GeckoEvent.
2016-07-20 21:44:48 -04:00
Jim Chen ddaa038b1c Bug 1286925 - Add orientation change method in GeckoScreenOrientation; r=snorp
Add and use the onOrientationChanged native method in
GeckoScreenOrientation in place of the screen orientation event in
GeckoEvent.
2016-07-20 21:44:48 -04:00
Jim Chen da993a6fe6 Bug 1286662 - Remove network events from GeckoEvent; r=snorp
Remove the now-obsolete network events from GeckoEvent.
2016-07-20 21:44:48 -04:00
Jim Chen 3ce5e25d0d Bug 1286662 - Add native methods for GeckoNetworkManager notifications; r=snorp
Add and use onConnectionChanged and onStatusChanged native methods in
GeckoNetworkManager in place of the network events in GeckoEvent.
2016-07-20 21:44:48 -04:00
Jim Chen f66eb37a0d Bug 1285572 - Remove LOAD_URI event; r=snorp
Remove the LOAD_URI event, which is now obsolete, from GeckoEvent.
2016-07-20 21:43:34 -04:00
Jim Chen 7866cd2707 Bug 1285572 - Add and use loadUri method in GeckoView; r=snorp
Add a loadUri method in GeckoView that replaces the functionality of the
current LOAD_URI event in GeckoEvent, and make GeckoApp and BrowserApp
use the new call.

The implementation for loadUri differs from the previous implementation
of LOAD_URI by directly calling nsIBrowserDOMWindow::OpenURI, instead of
going through the command-line handler. This more direct approach lets
us get rid of the Fennec command-line handler entirely.
2016-07-20 21:43:34 -04:00
Jim Chen 71996611fb Bug 1286663 - Remove THUMBNAIL event from GeckoEvent; r=snorp
Remove the now-obsolete THUMBNAIL event from GeckoEvent, as well as its
implementations in nsAppShell and AndroidBridge.
2016-07-21 13:49:04 -04:00
Jim Chen ff426cafa9 Bug 1286663 - Add request thumbnail native method to ThumbnailHelper; r=snorp
Add and use a request thumbnail native method call in ThumbnailHelper,
instead of using the THUMBNAIL event in GeckoEvent.
2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book db1afeede8 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Carsten "Tomcat" Book c93296ca04 merge autoland to mozilla-central a=merge 2016-07-20 10:59:12 +02:00
Carsten "Tomcat" Book 5b7a9a4582 merge fx-team to mozilla-central a=merge 2016-07-19 16:09:20 +02:00
Makoto Kato 66fe04ad33 Bug 1287015 - Part 1. Remove SurfaceBits and getSurfaceBits. r=snorp
MozReview-Commit-ID: 2dFvgwxavgx
2016-07-15 11:02:04 +09:00
Andrzej Hunt f059169409 Bug 1284544 - Remove redundant flag from PackageManager.queryIntentServices r=mcomella
GET_SERVICES is already implicit in this method name. Using lint running against
sdk 24 we get a warning that GET_SERVICES isn't a permitted flag. (Previous sdks
didn't yet contain a list of allowable flags.)

MozReview-Commit-ID: LINassWOTfc
2016-07-05 09:12:47 -07:00
Andrzej Hunt feaed6ce77 Bug 1284544 - lint: suppress useless override error caused by presence of 24 sdk r=mcomella
We're still building with the 23 sdk, but lint is now giving us errors based
on the 24 sdk. We therefore need to explicitly suppress the error (even though
in reality we don't want to suppress the error so that we don't miss adding the
@Override annotation when we switch to 24).

MozReview-Commit-ID: 3RqLMhiyAFh
2016-07-18 18:21:41 -07:00
Alastor Wu d44a463a7a Bug 1282391 - make MediaControlService to foreground service when we're playing media. r=sebastian
MozReview-Commit-ID: HYN3PTQVdhG
2016-07-19 23:02:35 +08:00
Tom Klein 91df063b67 Bug 1264347 - Refactor SnackbarHelper to use builder pattern. r=sebastian
MozReview-Commit-ID: 9WZBhhJIdNq
2016-07-11 09:42:01 -05:00
Andrzej Hunt ff405e11cf Bug 1284587 - Distinguish normal from reader view bookmarks in telemetry r=liuche
We want to be able to detect when we've opened a reader view item. Note: this is
independent of whether or not we're in the Reading List smartfolder: it's possible
to open reader view bookmarks from any real bookmark folder, or the smartfolder.

MozReview-Commit-ID: KhqclodWSji
2016-07-05 15:29:55 -07:00
Jan Henning aaccb76a7c Bug 1253654 - Part 2 - Don't show the item divider in the history panel after a section header. r=liuche
That way, the section headers (e.g. "Today", "Yesterday", "Last 7 days" etc.) blend better with the following item.

The correct hiding of the divider depends on the view type reported for the respective RecylerView child items. Because the view type is stored a simple number, this means that any other RecylerView wanting to use this divider decoration implementation must use the same item types as the history panel in order to remain compatible, otherwise the divider could be unexpectedly hidden. Therefore, we rename the DividerItemDecoration to underline its intended usage scope.

MozReview-Commit-ID: 8JUS6ke3RBL
2016-07-14 20:57:43 +02:00
Sebastian Kaspari cad500afe5 Bug 1283627 - Update home pager immediately after restoring tabs. r=JanH
MozReview-Commit-ID: IidO1rCmeb0
2016-07-13 16:15:19 +02:00
Nicholas Rosbrook 6c1fe66c69 Bug 1261980 - Added checks in GeckoProfileDirectories to prevent null dereferencing. r=mcomella 2016-06-17 18:22:26 -07:00
Jan Henning 555e8cf030 Bug 1284017 - Add telemetry for damaged session store files. r=sebastian
Just watching for a SessionRestoreException during startup can introduce some false positives, because that exception is triggered in any case where we can't restore tabs, not just when the session file has been damaged, e.g.:
- on first startup
- on builds affected by bug 1228593, users who are (theoretically) restoring their tabs, but clearing their history on exist end up with a deleted sessionstore.js
- should we implement bug 1275662, we'd hit that exception in that case, too.

Therefore we only send the telemetry event if we hit that exception even though a sessionstore.js file is present. We also exclude the case where the file size of sessionstore.js is 14 bytes, because that is most likely corresponding to a file containing only {"windows":[]}, which means that the session store intentionally wanted to write a file containing no tabs.

Currently this is only the case for users who are clearing their history on exit and are also *not* restoring tabs, however if bug 1275662 should get implemented, we'd probably encounter those empty files for users who have their restore setting set to "Always restore", too.

Because of bug 1261008, we can also end up with no restored tabs (and a SessionRestoreException) if the session file contains only about:home tabs with no history, because we're skipping those and not restoring them. To detect that case and exclude it from telemetry, we have to include additional logic within the SessionParser instance used during startup and pass those results back to the calling site in GeckoApp.

MozReview-Commit-ID: 6pAhDU3d8QA
2016-07-05 22:40:01 +02:00
Grigory Kruglov 9bae78659d Backed out changeset 5e2a5623088f (bug 1278301) because this feature is pending further investigation r=ahunt
MozReview-Commit-ID: ErVAafkRkqh
2016-07-11 09:17:24 -07:00
Sebastian Kaspari 3ea29d1d75 Bug 1285926 - Add preference for enabling/disabling custom tabs support. r=grisha
MozReview-Commit-ID: 8KmJo5IM7JS
2016-07-11 15:41:55 +02:00
Jonathan Almeida (:jonalmeida) ca2be062a7 Bug 1283478 - Tapping the download notification does not open the downloaded file r=mcomella
We were incorrectly retrieving the cookie from the notification intent
and passing that along which affected the invocation of the notification.

MozReview-Commit-ID: FxL8sw6lByJ
2016-07-05 15:44:17 -07:00
Sebastian Kaspari 1a4722fba3 Bug 1283025 - Add support for PartnerBookmarksProvider. r=grisha
If a distribution sets "distribution.read_partner_bookmarks_provider" (Android preference)
to 'true' then Fennec will read from Android's PartnerBookmarksProvider [1] and add them
to the bookmarks panel UI.

[1] https://android.googlesource.com/platform/packages/providers/PartnerBookmarksProvider/+/master/src/com/android/providers/partnerbookmarks/PartnerBookmarksProvider.java

MozReview-Commit-ID: Lr50X4HhoC8
2016-07-04 20:00:01 +02:00
Sebastian Kaspari a403e609aa Bug 1284372 - URL bar: Force LTR for the URL. r=grisha
MozReview-Commit-ID: 3WnPTRmk5VO
2016-07-06 13:57:19 +02:00
Carsten "Tomcat" Book 0de5ff3803 merge mozilla-inbound to mozilla-central a=merge 2016-07-12 10:58:33 +02:00
Jim Chen ac6891b4f6 Bug 1285570 - Implement VISITED event as native method; r=snorp
Convert the VISITED event in GeckoEvent to a native method call in
GeckoAppShell.
2016-07-11 18:07:35 -04:00
Jim Chen c459fcacd1 Bug 1283739 - Prevent reentrant calls to showSoftInput and hideSoftInput; r=esawin
Add a check to showSoftInput and hideSoftInput To prevent an infinite
recursive loop of showSoftInput indirectly calling
onCreateInputConnection, which calls showSoftInput again,
2016-07-11 18:07:35 -04:00
Jim Chen 69f0978052 Bug 1280446 - Follow-up to fix another possible crash; r=me 2016-07-11 17:16:57 -04:00
Grigory Kruglov d643ecb2de Bug 1245791 - Pre: Remove unnecessary AccountLoaderNative r=nalexander
MozReview-Commit-ID: J1kzldfRTjx
2016-07-07 18:15:23 -07:00
Grigory Kruglov 71a5bfccb2 Bug 1245795 - Split Stumbler BroadcastReceivers into Local, System and Safe r=nalexander
SafeReceiver is responsible for registering LocalReceiver with a LocalBroadcastManager.
SystemReceiver is responsible for handling BOOT_COMPLETE and EXTERNAL_APPLICATIONS_AVAILABLE intents.
LocalReceiver is responsible for handling passed in Stumbler preferences (enabled state, API key, user agent).

StumblerPreferences are now sent using LocalBroadcastManager, avoiding any possibility of leaking API key.

MozReview-Commit-ID: J8pRN6pbLOg
2016-07-07 19:40:11 -07:00
Sebastian Kaspari 828342266b Bug 1283881 - Read homepage from Android's "Partner Customizations" content provider if read_partner_customizations_provider is set. r=grisha
MozReview-Commit-ID: 8He4sv8MoUw
2016-07-05 14:48:23 +02:00
Grigory Kruglov be1c91d1b7 Bug 1245795 - Pre: Purge OrderedBroadcast r=nalexander
MozReview-Commit-ID: Ad1ENG0XJX1
2016-07-04 17:51:15 -07:00
Sebastian Kaspari 3cb8944184 Bug 1283881 - Add PartnerBrowserCustomizationsClient for reading customizations from Android's "partner browser customizations" content provider. r=grisha
MozReview-Commit-ID: 3qVXGHC6LfE
2016-07-04 16:14:36 +02:00
Phil Ringnalda 9f7a578e0a Merge f-t to m-c, a=merge 2016-07-09 08:53:47 -07:00
Jim Chen 528399d686 Bug 1283882 - Implement LOCATION_EVENT as native call; r=snorp
Convert LOCATION_EVENT in GeckoEvent to a native method call in
GeckoAppShell.
2016-07-08 11:39:10 -04:00
Jim Chen 35a0f090be Bug 1283882 - Move location listener to GeckoAppShell; r=snorp
Move LocationListener implementation from GeckoApp to GeckoAppShell
because the LocationListener consumer is in GeckoAppShell.
2016-07-08 11:39:09 -04:00
Jim Chen 3ee69c99e1 Bug 1283844 - Implement SENSOR_EVENT as native call; r=snorp
Remove SENSOR_EVENT from GeckoEvent and implement it as a native method
in GeckoAppShell that is invoked by the sensor event listener in
GeckoAppShell.
2016-07-08 11:39:09 -04:00
Jim Chen d7e9fe3e33 Bug 1283844 - Implement sensor event listener in GeckoAppShell; r=snorp
Implement SensorEventListener directly in GeckoAppShell instead of
indirectly through GeckoInterface and GeckoApp, because the
SensorEventListener consumer is in GeckoAppShell.
2016-07-08 11:39:09 -04:00
Sebastian Kaspari 0ac1498989 Bug 1261008 - Do not restore tabs pointing to about:home and with no history. r=janh,ahunt
If the browser is set to always restore the session (default) then we will never
start with an empty session. Even if the user closes all tabs we will re-create
a new tab pointing to about:home. So we will always at least restore this tab on
the next startup. As a consequence we will never open the 'homepage' on app start
because we will never have a non-empty session.

With this patch we won't restore tabs that point to about:home and do not contain
any other history. As a result we might restore an empty session and load the
homepage or about:home (depending on configuration) in a new tab.

In case we decide to not restore the currently selected tab, we just select the
first restored tab if there's any.

MozReview-Commit-ID: DuN03M60Gi8
2016-07-06 16:04:01 +02:00
Carsten "Tomcat" Book 07833077a6 Merge mozilla-central to fx-team 2016-07-07 11:43:24 +02:00
Gregory Szorc 974eae39e8 Merge mozilla-central to mozilla-inbound 2016-07-06 18:30:58 -07:00
Gregory Szorc 7243daa74f Merge mozilla-central to mozilla-inbound 2016-07-06 18:26:17 -07:00
Gregory Szorc 124e873c7a Merge autoland to mozilla-central; a=merge 2016-07-06 18:11:34 -07:00
Carsten "Tomcat" Book 61e5d92c03 merge fx-team to mozilla-central a=merge 2016-07-06 11:41:53 +02:00
Nick Alexander 357e508d4d Bug 1281890 - Allow setting chromeURI from Java. r=snorp
The intention is that GeckoView consumers will not use browser.xul,
but instead geckoview.xul; and that they'll provide content URLs from
their assets/ directories.  This lets them do things without modifying
the omnijar and in particular without setting Gecko's prefs *before*
Gecko startup.

MozReview-Commit-ID: 2QLQQ5RphFu
2016-06-23 12:05:17 -07:00
Jim Chen ddf3adcdeb Bug 1280446 - Create PushService if needed; r=snorp
If PushService has not been created when getInstance is called, create
the PushService instead of throwing an error. This fixes a possible race
condition between initializing PushService and receiving a push message,
where we can receive a push message first.
2016-07-05 14:34:57 -04:00
Edouard Oger 6a806ff869 Bug 1250782 - Register device on married state. r=mcomella, nalexander
MozReview-Commit-ID: CswoGEpoNl3
2016-05-18 12:48:49 -07:00