Commit Graph
1021 Commits
Author SHA1 Message Date
SUN Haitao fdbf33dbc0 Bug 1264815 - Add a 'data' parameter to GeckoThread.createServices; r=jchen 2016-04-16 14:19:37 +08:00
Carsten "Tomcat" Book 3a9cae6c4f Merge mozilla-central to fx-team 2016-05-30 15:31:42 +02:00
Jan Henning 494b5706a1 Bug 905223 - Part 2 - Move session data parsing into a background thread. r=jchen
Parsing the session store JSON data to restore the last session's tabs is both
- computationally relatively expensive
- involving disk I/O

therefore, we shouldn't be doing it on the main thread.

To make sure the session data is actually ready, subsequent code running from a different thread that needs to access it (loading the startup tab, the Recent Tabs panel reading the "Tabs from last time") checks that session store data processing has actually finished and waits if necessary.

MozReview-Commit-ID: EYf1fdglIrA
2016-04-23 22:36:46 +02:00
Jan Henning 253608c323 Bug 905223 - Part 1 - Factor out external URL calculation. r=margaret
For session data parsing, we need to know whether we were invoked with an external URL or not. Since we want to move session data parsing forward to an earlier point in time, but also continue needing that external URL info during initialize() as well, we'll factor out those calculations into their own functions which can then be called from both places.

MozReview-Commit-ID: HFlT8uxC9yz
2016-04-23 20:08:58 +02:00
Jan Henning 436963861f Bug 905223 - Part 0 - Add target API annotations to get rid of errors in Android Studio. r=margaret
Android Studio doesn't recognise our version guards and is consequentially always showing two errors in GeckoApp, which makes it more difficult to spot when you've introduced an actual error.

MozReview-Commit-ID: LpNIwHOhEWE
2016-04-23 22:29:03 +02:00
Carsten "Tomcat" Book b05930f50e merge mozilla-inbound to mozilla-central a=merge 2016-05-25 15:04:00 +02:00
Andrzej Hunt 79db798cc7 Bug 1246159 - Add histogram probe for disk space used by reader view cache r=mcomella
MozReview-Commit-ID: 4r1yvWZ4lid
2016-05-12 13:37:58 -07:00
Andrzej Hunt d850dfc59d Bug 1246159 - Pre: implement SavedReaderViewHelper.getBytesUsed r=mcomella
MozReview-Commit-ID: EJ81q6f515q
2016-05-24 15:01:17 -07:00
Andrzej Hunt 8e6be2b490 Bug 1246159 - Pre: import cleanup r=me
MozReview-Commit-ID: 9PxTKEV2pH5
2016-05-23 08:11:42 -07:00
Andrzej Hunt e0399ffef8 Bug 1267467 - Strip about:reader when storing URIs in history r=margaret
MozReview-Commit-ID: JbUBMVNFdU9
2016-05-10 15:33:33 -07:00
James Willcox ece09bf0c8 Bug 1270522 - Guard against a null view in GeckoLayerClient.sendResizeEventIfNecessary(). r=rbarker 2016-05-23 06:41:00 -04:00
Andrzej Hunt ff688517d1 Bug 1270880 - Make first reader-view prompt independent of first reader-view-bookmark prompt r=sebastian
MozReview-Commit-ID: 34MmPdoZCzL
2016-05-10 10:50:06 -07:00
Andrzej Hunt 46856709bb Bug 1270880 - Show bookmarking helper UI first time reader view is used r=sebastian
Note: this is currently an experiment, which was previousl de-facto disabled.

MozReview-Commit-ID: 3BfyMD6E3b3
2016-05-10 10:36:47 -07:00
Andrzej Hunt 7a0b502195 Bug 1270880 - Check switchboard when showing experiment, not in onCreate r=sebastian
Switchboard might not have any data during onCreate, instead we should query
switchboard when actually deciding whether to show the prompt.

MozReview-Commit-ID: DdulFoWHiF9
2016-05-10 10:58:22 -07:00
Andrzej Hunt 872e26ba13 Bug 1270880 - Pre: import cleanup r=me
MozReview-Commit-ID: 5dcnr3WZ3Me
2016-05-10 10:37:02 -07:00
Michael Comella b397184823 Bug 1269924 - Move telemetry upload to NetworkUtils.isConnected. r=grisha
The concept of "background data" (as it exists in the Android options menu)
doesn't exist in the Android APIs - I think it should be covered under
isConnected. Thus, I removed our `isBackgroundDataEnabled` method.

One other network consideration, however: we may want to consider stopping
uploads on roaming.

In the previous implementation, we did not queue the ping for upload if
the network was not connected (in order to conserve disk space). However,
this doesn't allow us to see all of the days the user interacted with
the device (e.g. for engagement) so in this implementation, we always
queue the ping and stop in the UploadService if we're not connected.

MozReview-Commit-ID: 1mjnHq3l7Jj
2016-05-19 11:54:54 -07:00
Carsten "Tomcat" Book 95e60db9e1 Merge mozilla-central to fx-team 2016-05-24 15:15:55 +02:00
Carsten "Tomcat" Book ea6b128335 merge mozilla-inbound to mozilla-central a=merge 2016-05-24 14:52:23 +02:00
Michael Comella 0d1c722474 Bug 1274727 - Use toString method for search engine identifiers. r=bnicholson
These values are what are actually used UI telemetry (perhaps because the enums were added after the strings?). They're also a little less obnoxious than the enum names.

MozReview-Commit-ID: K5i2Hr4DR4J
2016-05-23 15:26:26 -07:00
Michael Comella 97128f7506 Bug 1274433 - Construct TelemetryDispatcher on background thread. r=ahunt
MozReview-Commit-ID: 6H5Wp4uzNQb
2016-05-20 18:00:22 -07:00
Jim Chen 58b120f4d4 Bug 1270870 - Check profile when delivering pending push message; r=nalexander
For pending push messages, we used to check for correct profile when the
message is received, but it's better to check for correct profile when
the message is delivered to Gecko.

This fixes a crash in headless mode that the previous patches
introduced.
2016-05-24 01:11:16 -04:00
Jim Chen 4808abc3f7 Bug 1270870 - Use shared prefs to keep guest mode setting; r=snorp
This patch restores the previous behavior of restoring to guest mode if
Fennec is killed during a guest session. Instead of using a separate
lock file or an Intent argument, this patch uses shared prefs to keep
the guest mode setting.

The patch also introduces the behavior that, for headless mode, the
profile must agree with the guest mode setting. For example, in guest
mode, push messages under a regular profile will not be processed; this
is necessary to avoid profile mismatches.
2016-05-24 01:11:16 -04:00
Jim Chen 51a909d479 Bug 1270870 - Simplify guest profile management; r=snorp
Treat the guest profile as a custom profile with a special profile
directory. This lets us get rid of a lot of the guest profile handling
code. This patch does not attempt to restore to guest mode if Fennec is
killed during a guest session. A later patch will fix that behavior.

Patch renames GeckoProfile.getFromArgs to GeckoProfile.initFromArgs,
because the method now has possible side-effects (i.e. deleting stale
guest profiles). The new name also differentiates the method from the
GeckoProfile.get family of methods. initFromArgs now always returns a
profile (using the default profile if necessary), to make it easier for
its callers.
2016-05-24 01:11:16 -04:00
Jim Chen f2a596ed29 Bug 1270870 - Create specified profile directory if necessary; r=snorp
When getting a profile with a specific profile directory, we used to
require the directory to already exist. This patch makes sure the
directory is created if necessary. It lets us treat the guest profile as
an ordinary custom profile at a specific location.
2016-05-24 01:11:16 -04:00
Jim Chen a08654a95c Bug 1270870 - Don't get profile in GeckoApp when launching; r=snorp
Let GeckoThread manage the active profile, and don't get the profile in
GeckoApp. This also avoids possible main-thread IO.
2016-05-24 01:11:16 -04:00
Cesar Valiente b56a793b34 Bug 1272506 - Change GeckoApp.ONE_DAY_MS to be initialized with the TimeUnit class. r=mcomella 2016-05-14 11:42:04 +02:00
guillaume bd8dd1d58d Bug 1264599 - "GeckoPreferences: Remove CheckBoxPrefSetter and TwoStatePrefSetter". r=sebastian 2016-05-23 03:41:00 +02:00
Nick Alexander 763d618feb Bug 1274956 - Pre: Make it easier to test Adjust locally. r=mcomella
This does a few things.  First, it makes non-official builds use the
Adjust sandbox.  Second, I observe that the fake sandbox key no longer
sends anything, so it's no longer valuable; this patch instead
requires an Adjust token if install tracking is enabled, since we
can't provide a default any more.  Third, it removes a spurious
default in configure.in; without this default, builders can easily
enable Adjust locally using the following in their mozconfig:

ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk.keyfile
export MOZ_INSTALL_TRACKING=1

With the default, the "export" had no impact, because it was
overwritten immediately.

MozReview-Commit-ID: Cn62fmrgwJL
2016-05-23 13:42:09 +02:00
Sebastian Kaspari 98af648867 Bug 1271352 - Update static catalog to match online version. r=margaret
MozReview-Commit-ID: 9ZKk95zHmrd
2016-05-16 10:15:18 -07:00
Sebastian Kaspari fc55c9ca79 Bug 1271352 - DLC Sync: Update kinto endpoint and CDN base domain. r=margaret
MozReview-Commit-ID: 8TbsANSzpZZ
2016-05-16 09:59:14 -07:00
Sebastian Kaspari 52c6cb3df2 Bug 1272340 - ToolbarDisplayLayout: Handle about:reader URLs. r=margaret
This patch changes two things:
* Check if the URL is http/https after stripping the about:reader URL.
* Always call updateAndColorTitleFromFullURL() as fallback for URL formatting (like in previous versions)

MozReview-Commit-ID: 1Zgf12FsOQe
2016-05-13 10:57:57 +02:00
billel 7e0933ff1e Bug 1271577 - FloatingToolbarTextSelection: Remove Log.w() call. r=sebastian
MozReview-Commit-ID: CQPeFsjJmfk
2016-05-23 09:56:04 +02:00
Grigory Kruglov 4c40da0925 Bug 1258428: If activity is active, always listen for network status updates r=sebastian
MozReview-Commit-ID: HwTmnOReUBb
2016-05-06 17:31:52 -07:00
Andrzej Hunt 47dfc983d1 Bug 1267580 - Hide Reading List smartfolder if empty r=mcomella
MozReview-Commit-ID: HIGkK9Z19aq
2016-05-18 08:59:56 -07:00
bzrd_Sdn 8a71111a27 Bug 1266199 - Rename BrowserApp.searchEngineManager to mSearchEngineManager. r=mcomella 2016-05-19 21:38:38 -04:00
Ryan VanderMeulen c6733f96d1 Merge m-c to fx-team. a=merge 2016-05-19 12:50:27 -04:00
Ryan VanderMeulen d50afc71ca Merge inbound to m-c. a=merge 2016-05-19 12:46:54 -04:00
Michael Comella 5a307f1a70 Bug 1243595 - Add session measurement hooks for record and retrieval. r=ahunt
MozReview-Commit-ID: AuZ6WEN6aCH
2016-05-17 15:00:41 -07:00
Michael Comella 2e8f0e893c Bug 1243595 - Add session measurements to core ping builder & update version. r=ahunt
MozReview-Commit-ID: Erwd83PZ57k
2016-05-17 17:13:35 -07:00
Michael Comella 57911e0757 Bug 1243595 - Add SessionMeasurements and tests. r=ahunt
MozReview-Commit-ID: NEKDPblKEE
2016-05-17 14:56:00 -07:00
Michael Comella 143af7123c Bug 1274051 - Only log telemetry in non-release builds. r=grisha
MozReview-Commit-ID: LXTWSIrSvob
2016-05-18 14:42:46 -07:00
Michael Comella 7ce2a86597 Bug 1274052 - Log search engine identifier as extra. r=grisha
For privacy, custom search engines are "other".

MozReview-Commit-ID: GTM7d9k8JFZ
2016-05-18 14:54:51 -07:00
Jan Henning 0b7a9433f1 Bug 1270543 - Part 1: Enable double tapping to select an action in the prompt dialog. r=liuche
On newer Android versions, double tapping an entry in the app chooser is equivalent to tapping it once and selecting "Just once". To enable this functionality for our own app chooser when downloading a file, this patch enables passing a button index to the prompt dialog which will be chosen by default if a double tap has been detected.

To do this, we track the input value we receive in onChange. If we receive the same value twice in a row and a button has been configured, we close the dialogue and pass the result with that button back to the caller.

MozReview-Commit-ID: EVs2x3OtHmB
2016-05-17 22:52:59 +02:00
Jan Henning a518e0b04e Bug 1270543 - Part 0: Fix whitespace. r=liuche
MozReview-Commit-ID: IDsOmws3eWB
2016-05-17 21:26:33 +02:00
Michael Comella de0e96a2f3 Bug 1261210 - Rename omg.mozglue.ContextUtils -> omg.mozglue.SafeIntentUtils. r=mcomella
MozReview-Commit-ID: 99kZNBPmqes
2016-05-18 15:48:07 -07:00
Michael Comella 4989721251 Bug 1273686 - Don't crash on invalid sequence number argument in core ping. r=ahunt
MozReview-Commit-ID: A2nNBgQz5yr
2016-05-17 17:10:56 -07:00
Michael Comella 72d4dee51f Bug 1272431 - Do not use API 19+ method for FileLastModifiedComparator. r=ahunt
MozReview-Commit-ID: 7lN0mJgWYg5
2016-05-16 18:48:42 -07:00
Michael Comella 27ce0ce904 Bug 1272431 - Return pings from getAllPings in guaranteed order. r=ahunt
MozReview-Commit-ID: GDju0fOGATj
2016-05-16 18:45:32 -07:00
Michael Comella 783127e393 Bug 1272431 - Correct order errors in maybePrunePings tests. r=ahunt
MozReview-Commit-ID: CQKjiD5PomF
2016-05-16 18:43:59 -07:00
Grigory Kruglov 3196212ad2 Bug 1271318 - Don't keep context in GeckoNetworkManager, and get it from GeckoAppShell r=mcomella
MozReview-Commit-ID: DX4GOca5IoO
2016-05-16 14:41:09 -07:00