Commit Graph
2909 Commits
Author SHA1 Message Date
Andrzej Hunt 029f81192c Bug 1246704 - Either create URLMetadataTable, or upgrade it, don't do both r=liuche
MozReview-Commit-ID: HyYPbIwqMGc
2016-02-08 10:55:44 -08:00
Andrzej Hunt 3a808e30b2 Bug 1239823 - Part 2: sanitise input dates for DatePicker r=margaret
MozReview-Commit-ID: GiXgQwscGPT
2016-02-03 15:23:09 -08:00
Andrzej Hunt 2da8a524c9 Bug 1239823 - Part 1: Parse min/max date before use r=margaret
MozReview-Commit-ID: 4th3CJwwcDg
2016-02-03 15:17:38 -08:00
Nick Alexander ba36badbf4 Bug 1244944 - Don't stick an org.json.JSONArray into an ExtendedJSONObject. r=rnewman
This works due to string conversions, but it's not elegant.  Let's
just define the API we want, and work to improve the implementation
when we remove org.json.simple entirely.

MozReview-Commit-ID: GseI427PeDi
2016-02-01 16:57:24 -08:00
Carsten "Tomcat" Book bccb3d6c47 Merge mozilla-central to fx-team 2016-02-10 14:30:05 +01:00
Carsten "Tomcat" Book 7b9d4df1a2 merge mozilla-inbound to mozilla-central a=merge 2016-02-10 11:47:34 +01:00
Jim Chen 32db56c022 Bug 1241558 - Don't ignore Gecko selection when Gecko commits composition; r=esawin
When Java is changing the composition, we should ignore the Gecko
selection. However, when Gecko is committing its composition, we should
not be ignoring the corresponding Gecko selection change. In other
words, we should only ignore selection changes when we know the change
is from Java.
2016-02-09 23:36:41 -05:00
Michael Comella cf5fcf2fe1 Bug 1246839 - Close Reader in ApkResources. r=rnewman
MozReview-Commit-ID: Ks2AkrPDF3Q
2016-02-08 17:58:03 -08:00
Michael Comella 7f2abc133e Bug 1246839 - Close FileOutputStream in BrowserApp. r=rnewman
MozReview-Commit-ID: C2tWuetVrqp
2016-02-08 17:55:48 -08:00
Michael Comella 00cc6a30c5 Bug 1246209 - Add profile creation date to core ping. r=mfinkle
This patch adds 2 workarounds for the fact that getProfileCreationDate
returns -1 when it can't find a creation date. Returning -1 turned
out to be not particularly robust but I did it this way to avoid
adding too many additional versions of methods in order to have
optional parameters such as profileCreationDate. The workarounds
are added as TODOs w/ bug #'s in the code and mentioned in the
comments of bug 1246816 itself.

A future implementation should probably add a Builder to pass a
single Object as the argument to TelemetryPingGenerator.createCorePing
to prevent the argument list from growing unreasonably large and
to properly operate on optional parameters. I didn't do this in
this patch in order to simplify the uplifted code.
2016-02-08 17:17:14 -08:00
Michael Comella ec94622586 Bug 1246209 - Add getProfileCreationDate, implement from filestystem, & add stencil code. r=mfinkle
Retrieving the profile creation date from the filesystem is not strictly
necessary to upload this data and returns -1 until it is implemented. If the
decision is r+'d here, it will be implemented in bug 1246816.
2016-02-08 17:10:26 -08:00
Michael Comella 238d3f59c1 Bug 1246209 - Extract readJSONObjectFromFile out of getClientId. r=mfinkle 2016-02-08 15:03:21 -08:00
Sebastian Kaspari d19dc36c00 Bug 1244071 - Move reading of restrictions to dedicated cache class. r=mcomella
MozReview-Commit-ID: 7u40m0Wdusi
2016-02-01 22:14:16 +01:00
Sebastian Kaspari 40d89987dd Bug 1245236 - (Part 2) DownloadContentService: Do not run on unsupported systems. r=rnewman
MozReview-Commit-ID: 7jEe76SEFpc
2016-02-09 13:54:37 +01:00
Sebastian Kaspari dcec3aab7d Bug 1245236 - (Part 1) Move isSupportedSystem() from GeckoApp to HardwareUtils. r=rnewman
MozReview-Commit-ID: 6p7UQZBSt0C
2016-02-09 13:53:45 +01:00
Chenxia Liu a1a0d79c1a Bug 1208138 - Handle tablet-specific cases. r=margaret 2016-01-28 19:26:05 -08:00
Chenxia Liu 417aa4b6d1 Bug 1208138 - Firstrun is not dismissed in some cases. r=margaret 2016-01-28 19:02:32 -08:00
Andrzej Hunt b9b2d39c03 Bug 826400 - Post: update DATABASE_VERSION comment, and clarify why we do this r=liuche 2016-02-08 10:10:46 -08:00
Wes Kocher 75513d38fc Backed out changeset d007cfebe661 (bug 1234693) for android robocop failures CLOSED TREE 2016-02-08 12:53:10 -08:00
Chenxia Liu 70f4afde6b Bug 1245368 - Add telemetry for home panel customizations. r=margaret 2016-02-04 16:14:34 -08:00
Chenxia Liu bdfd06ed88 Bug 1201653 - Provide a way to self-select into a specific experiment [Switchboard]. r=margaret 2016-02-03 16:49:09 -08:00
Margaret Leibovic 8d3f61d02e Bug 1234693 - Point Switchboard URLs to production mozilla-services endpoint. r=mfinkle 2016-02-05 08:08:42 -05:00
Margaret Leibovic ace0c08f90 Bug 1243387 - (Part 2) Update SuggestClient to use NetworkUtils. r=mfinkle 2016-02-05 09:38:48 -05:00
Margaret Leibovic aa5ad71d72 Bug 1243387 - Add telemetry probe to understand how often users load reading list items when offline. r=mfinkle 2016-02-05 09:37:15 -05:00
Margaret Leibovic 90f9196151 Bug 1113297 - Back out match case mode for find-in-page. r=liuche 2016-02-03 15:51:46 -05:00
Nick Alexander da2a1c1bbc Bug 1234629 - Part 0: Make Distribution look in /data/data/$PACKAGE/distribution last. r=rnewman
Call a distribution in /data/data/$PACKAGE/distribution a "data
distribution".  Right now we read data distributions only in response
to writing them via another code path (extracting from APK, or
downloading).  We don't recognize a data distribution in the same way
that we recognize a system distribution (in /system/.../distribution)
in the Java code, simply because we don't look for it; and I haven't
investigated, but I think that Gecko may in fact recognize a data
distribution in this case.

This patch simply recognizes data distributions after looking for
other distributions.  That way data distributions written by the
bouncer APK are recognized and initialized, but not given precedence
over other distribution channels.
2016-02-04 17:41:54 -08:00
Michael Comella fb061dfdb4 Bug 1246314 - Add comment to explain why we don't log exceptions. r=me 2016-02-05 16:38:05 -08:00
Michael Comella c8fad96bcd Bug 1246314 - Don't log exception when throwing in client ID. r=ahunt 2016-02-05 16:07:15 -08:00
Nigel Babu 85a2d38edd Backed out 10 changesets (bug 1234629, bug 1233882) for bustage on Android rc tests
Backed out changeset 9aa32d9a25df (bug 1234629)
Backed out changeset d73d36c9619b (bug 1234629)
Backed out changeset a7f63b3721cd (bug 1233882)
Backed out changeset c79f4a8c3e86 (bug 1234629)
Backed out changeset 400c030d3c01 (bug 1234629)
Backed out changeset 54a3d0851bc6 (bug 1234629)
Backed out changeset f80912ecfa87 (bug 1234629)
Backed out changeset 50bcadca2131 (bug 1234629)
Backed out changeset aaa420ed66d7 (bug 1234629)
Backed out changeset 7a62e97f07c2 (bug 1234629)
2016-02-05 15:42:28 +05:30
Nick Alexander 9b56476f15 Bug 1234629 - Pre: Make Distribution look in /data/data/$PACKAGE/distribution last. r=rnewman
Call a distribution in /data/data/$PACKAGE/distribution a "data
distribution".  Right now we read data distributions only in response
to writing them via another code path (extracting from APK, or
downloading).  We don't recognize a data distribution in the same way
that we recognize a system distribution (in /system/.../distribution)
in the Java code, simply because we don't look for it; and I haven't
investigated, but I think that Gecko may in fact recognize a data
distribution in this case.

This patch simply recognizes data distributions after looking for
other distributions.  That way data distributions written by the
bouncer APK are recognized and initialized, but not given precedence
over other distribution channels.
2016-01-26 17:06:27 -08:00
Nick Alexander 8ca1ce9ad6 Bug 1163082 - Part 2: Extract Android distribution from packaged assets rather than APK root. r=rnewman
This reads from "assets/distribution/**" in the APK and writes to
"distribution/**" in the data directory.  That output is the same, but
the input used to read from "distribution/**", which is not really
supported by modern build tooling (Gradle), which doesn't allow to
write files directly into the APK root.

I manually tested this without issue.  I see no way to add meaningful
tests to our current Robocop test suite; the long term testing
approach is to develop a new test for this functionality and only run
it against the "distribution" build type that was added in Bug
1163080.  However, that's a larger project than I have time for now.
2016-01-26 10:36:09 -08:00
Carsten "Tomcat" Book 4ece520ad9 Merge mozilla-central to fx-team 2016-02-04 12:08:00 +01:00
Carsten "Tomcat" Book d65244c9c1 merge mozilla-inbound to mozilla-central a=merge 2016-02-04 12:02:05 +01:00
Nick Alexander 16bb508053 Backed out 2 changesets (bug 1163082) for Robocop rc1 failures.
Backed out changeset baf25be8d491 (bug 1163082)
Backed out changeset e228040a044b (bug 1163082)
2016-02-03 23:15:00 -08:00
Mark Finkle 23b64db0a9 Bug 1245576 - Add missing unsave.1 UI Telemetry for removing bookmarks and readinglist items from Home Panels r=margaret 2016-02-04 02:45:02 -05:00
Nick Alexander 5e3a45b4bd Bug 1163082 - Part 2: Extract Android distribution from packaged assets rather than APK root. r=rnewman
This reads from "assets/distribution/**" in the APK and writes to
"distribution/**" in the data directory.  That output is the same, but
the input used to read from "distribution/**", which is not really
supported by modern build tooling (Gradle), which doesn't allow to
write files directly into the APK root.

I manually tested this without issue.  I see no way to add meaningful
tests to our current Robocop test suite; the long term testing
approach is to develop a new test for this functionality and only run
it against the "distribution" build type that was added in Bug
1163080.  However, that's a larger project than I have time for now.
2016-01-26 10:36:09 -08:00
Andrzej Hunt 7dff635dec Bug 1243307 - Post: convert AsyncTask to ThreadUtils.postToBackgroundThread r=liuche 2016-02-01 15:38:35 -08:00
Andrzej Hunt 8423fdb2c1 Bug 1243307 - Post: clarify where onPromptFinished is run r=liuche 2016-02-01 15:37:47 -08:00
Andrzej Hunt b8d70173aa Bug 1243307 - Part 2: Ensure homescreen shortcut creation happens on background thread r=liuche 2016-02-01 15:36:38 -08:00
Andrzej Hunt 3dcaf7b04a Bug 1243307 - Part 1: Make onPromptFinished run in the UI thread again r=liuche
This seems more consistent with what Android UI callbacks do. This commit also
means all callees must be adapted to use the background thread if needed.
2016-02-01 15:07:47 -08:00
Michael Comella a62eff1cce Bug 1244293 - Don't upload telemetry if user opts out. r=mfinkle
I'm slightly concerned we're providing too much configuration information in
the debugging statements.
2016-01-29 15:21:50 -08:00
Margaret Leibovic 380b542c4d Bug 1241566 - Put malware download protection behind a switchboard flag. r=liuche 2016-01-29 16:30:35 -05:00
Andrzej Hunt a8652d8f4e Bug 1240500 - Don't repeatedly create ArrayLists when searching for occurrences r=margaret 2016-02-01 17:24:28 -08:00
Sebastian Kaspari 240137d306 Bug 1244760 - DownloadContentService: Use HttpUrlConnection instead of HttpClient. r=rnewman 2016-02-01 17:32:07 +01:00
Margaret Leibovic d7bf685c12 Bug 1244727 - Remove expired histogram probes. r=mfinkle 2016-02-01 10:02:53 -05:00
Margaret Leibovic 11e5fb1df1 Bug 1244704 - Create a more granular BOOKMARKS_COUNT probe for mobile. r=mfinkle 2016-02-01 09:58:03 -05:00
Michael Comella fd5f4d8e2b Bug 1244859 - Remove trailing slash in telemetry urls. r=mfinkle r=mfinkle
It was not to-spec (though it doesn't appear to have an effect on how the
server reads the data).
2016-02-01 13:25:40 -08:00
Margaret Leibovic a915b56fe9 Backed out changeset 5a593c624332 2016-02-02 10:07:55 -05:00
Margaret Leibovic c47d0583a1 Backed out changeset cd18c8af8b56 2016-02-02 10:06:52 -05:00
Margaret Leibovic 22654ba474 Bug 1244727 - Remove expired histogram probes. r=mfinkle 2016-02-01 10:02:53 -05:00