Commit Graph
2909 Commits
Author SHA1 Message Date
Sebastian Kaspari 3fa68f3060 Bug 1240710 - Pick (temporary) download directory depending on whether permission has been granted. r=nalexander,paolo,jchen
As soon as the user clicks on a link to download a file Gecko will start the download - even before prompting the
user. This led to problems when the user hadn't granted the permission to write to the downloads directory yet. The
download would fail even though the user (later) accepted the permission.

With this patch we will start the download to the app's cache directory (only if we do not have the permission) and
prompt the user. As soon as the user has accepted the permission the download will be moved to the public downloads
directory (even while still downloading). If the permission is denied the download will be cancelled.

After the permission has been granted all subsequent downloads will start writing to the downloads directory
directly.


MozReview-Commit-ID: CCqk9h7Sxor
2016-02-18 15:11:42 +00:00
vivek cba8cfd8d7 Bug 946857 - Part 2: Add Android LoginsProvider. r=nalexander
LoginsProvider is an all-Android implementation of PasswordsProvider.
PasswordsProvider is an SQLite database backed by the version of
SQLite that ships with Gecko.  It is concurrently accessed from Gecko
and it runs with a special lifecycle that includes a separate
heavy-weight process.  Eventually we'll migrate the Gecko-side
passwords interface to use the new Android-side LoginsProvider, but
for now we just want to get the new provider landed and the tests
running.

MozReview-Commit-ID: Bx19D68tMtI
***
Bug 946857 - Fold into part2: review nits.

MozReview-Commit-ID: LmPwIvebfrr
2016-02-15 16:14:31 -08:00
Sebastian Kaspari b67f792fb6 Bug 1251923 - TabQueueService: Treat BadTokenException like SecurityException. r=margaret
MozReview-Commit-ID: qTtRaQuZyo
2016-03-04 16:01:59 +01:00
Randall Barker 27f9291359 Bug 1253426 - When Fennec is brought to the foreground, soft keyboard needs to be restored if it was previously visible r=snorp 2016-03-04 14:43:38 -08:00
vivek ced845972d Bug 946857 - Part 1: Expose disabled hosts through Password CP r=nalexander
Added a simple robocop test to verify that it is possible to query disabledHosts with PasswordProviders.

MozReview-Commit-ID: K4j4Aczp2xv
2015-12-15 19:23:14 +02:00
Margaret Leibovic ce3dca00d1 Bug 1239513 - Replace about:feedback with page hosted on input.mozilla.org. r=sebastian
MozReview-Commit-ID: K4AmE1zNtBI
2016-02-27 16:17:01 -08:00
Wes Kocher 040549df1a Backed out 2 changesets (bug 946857) for testBrowserDatabaseHelperUpgrades failures
Backed out changeset 9e4c8d1ffd3c (bug 946857)
Backed out changeset ca822e985ba5 (bug 946857)

MozReview-Commit-ID: DkVkUgEX7AJ
2016-03-02 14:42:04 -08:00
Michael Comella 0c0428c7c6 Bug 1251656 - Add comment explaining why browser.db upgrade case 27 is missing. r=ahunt
MozReview-Commit-ID: KOlJ6q5cWUq
2016-03-02 10:46:49 -08:00
Andrzej Hunt 4cfba6dc09 Bug 1238656 - Part 3: bypass cache for homescreen icons r=mcomella
MozReview-Commit-ID: Bvf6GyWXqQn
2016-02-01 14:00:38 -08:00
Andrzej Hunt db176c45ea Bug 1238656 - Part 2: introduce FLAG_BYPASS_CACHE_WHEN_DOWNLOADING_ICONS to avoid icon downscaling r=mcomella
MozReview-Commit-ID: BXLqJ9wjzf7
2016-03-02 10:56:32 -08:00
Andrzej Hunt 60d4124857 Bug 1238656 - Part 1: move best icon size selection into its own method r=mcomella
MozReview-Commit-ID: AWw50DDoLcL
2016-03-02 10:54:31 -08:00
vivek 870b9e2321 Bug 946857 - Part 2: Add Android LoginsProvider. r=nalexander
LoginsProvider is an all-Android implementation of PasswordsProvider.
PasswordsProvider is an SQLite database backed by the version of
SQLite that ships with Gecko.  It is concurrently accessed from Gecko
and it runs with a special lifecycle that includes a separate
heavy-weight process.  Eventually we'll migrate the Gecko-side
passwords interface to use the new Android-side LoginsProvider, but
for now we just want to get the new provider landed and the tests
running.

MozReview-Commit-ID: Bx19D68tMtI
***
Bug 946857 - Fold into part2: review nits.

MozReview-Commit-ID: LmPwIvebfrr
2016-02-15 16:14:31 -08:00
vivek d518d20fec Bug 946857 - Part 1: Expose disabled hosts through Password CP r=nalexander
Added a simple robocop test to verify that it is possible to query disabledHosts with PasswordProviders.

MozReview-Commit-ID: K4j4Aczp2xv
2015-12-15 19:23:14 +02:00
Andrzej Hunt 616f958e38 Bug 1252501 - Coalesce topsites position with rowid to ensure a valid position r=rnewman
MozReview-Commit-ID: BFcs3sUT0Ff
2016-03-01 14:00:22 -08:00
Chenxia Liu c7a68617c6 Bug 1232866 - Establish clearer IA for panel list items. r=mcomella
MozReview-Commit-ID: 40quuVQxL2K
2016-03-02 10:42:19 -08:00
Carsten "Tomcat" Book 40bf8903b1 merge mozilla-inbound to mozilla-central a=merge 2016-03-02 15:54:19 +01:00
Michael Comella 0117b50b5a Bug 1249092 - Log profile path in debug mode. r=rnewman
MozReview-Commit-ID: BhK3YFbglee
2016-03-01 11:44:53 -08:00
Andrzej Hunt 9f9a031969 Bug 1252610 - Don't insert suggested sites into topsites table unless they actually exist r=rnewman
MozReview-Commit-ID: 8MPLvxQ0FWu
2016-03-01 13:54:24 -08:00
Andrzej Hunt 4d3294e872 Bug 1252500 - Provide all the necessary columns when retrieving topsites r=rnewman
MozReview-Commit-ID: IYeQ3Z6LLPy
2016-03-01 10:10:47 -08:00
Andrzej Hunt b2b48fdd35 Bug 1252499 - only insert blank tile when really needed r=liuche
MozReview-Commit-ID: 5O7gUBDl1D4
2016-03-01 09:32:16 -08:00
malayaleecoder 9045502da8 Bug 1219323 - Remove unnecessary table created check from BrowserDatabaseHelper. r=vivek,nalexander
MozReview-Commit-ID: GDPQ8LQ24bP
2016-02-16 00:06:23 +05:30
Andrzej Hunt ecf58ab84f Bug 1252264 - Post: Remove the now-unused SpecialFoldersCursorWrapper r=me
This is the last java based CursorWrapper!

MozReview-Commit-ID: 5oaPO4uvWU8
2016-02-29 14:21:34 -08:00
Andrzej Hunt c2a9b0bed7 Bug 1252264 - Use MatrixCursor + MergeCursor to show the desktop bookmarks folder r=mcomella
MozReview-Commit-ID: 3qleedRWjKb
2016-03-01 09:12:21 -08:00
Margaret Leibovic 00997f66f1 Bug 1249384 - Support configuring switchboard server endpoint through intent extra. r=sebastian
MozReview-Commit-ID: 4fY94tZebip
2016-02-26 16:23:28 -08:00
Brendan Dahl 7707991b68 Bug 1235869 - Remove web runtime from android. r=myk 2016-02-29 10:31:00 +01:00
Margaret Leibovic 9500b29749 Bug 1004734 - Create system notification on browser update. r=liuche,mfinkle
MozReview-Commit-ID: DsVhO2kagZB
2016-02-24 12:16:46 -08:00
Wes Kocher c169cf975d Merge m-c to inbound, a=merge
MozReview-Commit-ID: 3PWdAnh0hk5
2016-03-01 15:29:43 -08:00
Bogdan Postelnicu bc0eee4571 Bug 1252082 - prevent null pointer dereference on |c|. r=sebastian
MozReview-Commit-ID: 1ApWSRDUYMJ
2016-03-01 21:21:16 +02:00
Andrzej Hunt 6f6a2df828 Bug 760956 - Part 7: only add single blank tile to top sites grid r=rnewman
MozReview-Commit-ID: 42DuTEJZgum
2016-02-25 16:56:15 -08:00
Andrzej Hunt 9a7fb15652 Bug 760956 - Post: remove unneeded getPinnedSites and getTopSites from BrowserDB r=me
MozReview-Commit-ID: 7Q5dOMVnqKP
2016-02-17 09:57:44 -08:00
Andrzej Hunt 9fddb3e3f7 Bug 760956 - Post: Cleanup TopSitesCursorWrapper remainders r=rnewman
MozReview-Commit-ID: ExIkvmfJO5O
2016-02-17 09:47:06 -08:00
Andrzej Hunt 6d10741ece Bug 760956 - Part 6: Introduce basic topsites retrieval test r=rnewman
This is a quick sanity check: a clean profile should return all the suggested
sites directly.

We should probably add further tests making sure that history items appear
in front of the suggested sites, that pinned sites work correctly,
and that suggested sites don't appear outside of the grid.

MozReview-Commit-ID: Ai8gTkv9E9w
2016-02-25 16:59:07 -08:00
Andrzej Hunt e73690b5e2 Bug 760956 - Part 5: use BrowserProvider TopSites query instead of TopSitesCursorWrapper r=rnewman
This means we now have only one open cursor for the topsites query, instead of 2 real cursors (and one
MatrixCursor). We still need a MergeCursor and MatrixCursor to supply blank tiles, this will
disappear as soon as the user has sufficient history items to fill the suggested sites grid.

MozReview-Commit-ID: LnJaSMIDM2O
2016-02-25 16:54:50 -08:00
Andrzej Hunt 27c97626be Bug 760956 - Part 4: Implement single-cursor topsite-retrieval in BrowserProvider r=rnewman
Note that this version only returns topsites, pinned sites, and suggested sites.
Blank tiles aren't supplied, and need to be added separately.

MozReview-Commit-ID: 5Vc5pXTewHi
2016-02-25 16:43:13 -08:00
Andrzej Hunt b26307eb4d Bug 760956 - Part 3: Add getSuggestedSites to BrowserDB r=rnewman
We'll need access to the SuggestedSites in BrowserProvider when assembling the
topsites query there, hence we need to allow access via BrowserDB.

MozReview-Commit-ID: BkZghDhQGxr
2016-02-17 09:28:13 -08:00
Andrzej Hunt 311a438711 Bug 760956 - Part 2: Introduce numbers table r=rnewman
We'll need this to provide a number sequence for the single-query/cursor TopSites
implementation.

MozReview-Commit-ID: 8m21gNmY50D
2016-02-29 11:33:05 -08:00
Andrzej Hunt 2c9677414a Bug 760956 - Part 1: Introduce variadic concatenateSelectionArgs r=rnewman
This allows us to more easily append multiple sets of args.

TODO: is it worth naming this appendSelectionArgs? We should keep the
2-param version appendSelectionArgs since it's more efficient for that
case (and the vast majority of uses are with 2-params) - it's probably
simpler for development to have both versions have the same name, and
as far as I can tell the compiler will prefer the non varargs version
when possible.

MozReview-Commit-ID: LcI6zNwpIxh
2016-02-17 09:13:34 -08:00
Carsten "Tomcat" Book 3969e7dcc7 merge mozilla-inbound to mozilla-central a=merge 2016-02-29 11:35:30 +01:00
Chenxia Liu 97a59b27a6 Bug 1244701 - Message EOL plan to gingerbread users. r=margaret
MozReview-Commit-ID: ESJd870iP3N
2016-02-12 11:52:26 -08:00
Andrzej Hunt 0cdddbf7ca Bug 1251740 - Remove ArrayList item using iterator instead of from list when iterating r=sebastian
Otherwise we will crash with a java.util.ConcurrentModificationException on iterator.next()
after removing an item using list.remove(item).

MozReview-Commit-ID: KYebSw2zjVk
2016-02-26 14:10:27 -08:00
Andrzej Hunt 727cd4d995 Bug 1251740 - Rename searchistory to searchHistory r=me
MozReview-Commit-ID: BT0EbspbxMK
2016-02-26 14:04:21 -08:00
Wes Kocher d1c9054e5c Merge m-c to fx-team, a=merge
MozReview-Commit-ID: Hc6og2UJTjf
2016-02-26 13:28:45 -08:00
Wes Kocher 74aba39d06 Merge fx-team to central, a=merge
MozReview-Commit-ID: 9LaKI6lIClP
2016-02-26 12:19:25 -08:00
Michael Comella b555f00bee Bug 1250707 - Add UrlAnnotations with insertion. r=sebastian
MozReview-Commit-ID: A93dzl7hJPG
2016-02-25 17:53:35 -08:00
Michael Comella ba00bda839 Bug 1250707 - Add insert method to url annotations table in BrowserProvider. r=sebastian
MozReview-Commit-ID: 8clkXPqmpOV
2016-02-25 15:28:28 -08:00
Michael Comella afe679f963 Bug 1250707 - Register url annotations table with BrowserProvider; add query. r=sebastian
MozReview-Commit-ID: FnU7D8p3H1O
2016-02-25 15:27:46 -08:00
Michael Comella 768b05dbe3 Bug 1250707 - Add test for browser.db upgrades. r=sebastian
Currently tests version 27 to 28 and is abstract enough to test future
upgrades. Additionally, the test should fail if the database is upgraded but a
database for the old version is not supplied.

MozReview-Commit-ID: CpBiGETFacv
2016-02-25 13:00:26 -08:00
Michael Comella fe7788815c Bug 1250707 - Create url annotations table. r=sebastian
MozReview-Commit-ID: BHtwkdrpfYi
2016-02-25 12:49:45 -08:00
Andrzej Hunt 0801babf6f Bug 1240500 - Early return on empty pattern to avoid an infinte loop and OOM r=rnewman
MozReview-Commit-ID: 7GlsZjfmE0y
2016-02-25 15:28:08 -08:00
Andrzej Hunt 7a0f321137 Bug 1240500 - Pre: whitespace cleanup and unnecessary comment cleanup r=me
MozReview-Commit-ID: FDOsOUSitk4
2016-02-25 14:47:40 -08:00