Commit Graph
2909 Commits
Author SHA1 Message Date
Andrzej Hunt 6e73f243a0 Bug 1263571 - Pre: cleanup imports r=me
MozReview-Commit-ID: 8KdYp5gHEVR
2016-04-12 10:48:55 -07:00
Grigory Kruglov 2f25d37ef3 Bug 1266232 - be extra careful and mindful of performance when migrating visits r=mcomella
1) Use prepared SQL insert statement for insertions
1.2) Use ON CONFLICT IGNORE for our inserts, to avoid failing on possible data clashes
2) Don't synthesize "visits since last sync" - it's bound to cause problems, for not much benefit
3) Fix up some minor issues, cleanup code and add sanity checks
4) If there's evidence Sync was enabled at some point, mark synthsized visits as remote. Otherwise, as local.

MozReview-Commit-ID: Gd94A6r4rW
2016-04-22 23:18:04 -07:00
Mark Capella c53eb37cad Bug 1257843 - Probe to measure when user enters text selection UI, r=sebastian 2016-04-22 16:44:47 -04:00
Sebastian Kaspari 27f26228ad Bug 1261836 - Content notifications: Check if new content is already in history. r=mcomella,mfinkle
If the URL of new content is already in the user's history then we won't show a notification
for it.

MozReview-Commit-ID: B26SBvXOnxY
2016-04-13 13:01:52 +02:00
Margaret Leibovic f20c8d13e2 Bug 1257513 - Remove bookmark-history-menu experiment, show menu items by default. r=liuche
MozReview-Commit-ID: 9mT8eOABokH
2016-04-19 18:35:50 -04:00
Michael Comella 0b0dc68ed2 Bug 1269407 - Return early from all lifecycle methods if not supported system. r=sebastian
This avoids a problem where a lifecycle method may assume a previous lifecycle
method initialized some values but we returned early (e.g. on a not supported
system) so these values were never initialized and the application may crash.

I tested this patch by forcing HardwareUtils.isSupportedSystem to return either
true or false (but both were in a supported device configuration).

MozReview-Commit-ID: 1WvOId8CLjP
2016-05-12 15:59:34 -07:00
Andrzej Hunt 43a5d800fa Bug 1269001 - Post: remove now used strings from UnusedResourcesUtil r=me
MozReview-Commit-ID: 5UNsxyN3Pqs
2016-05-13 13:05:29 -07:00
Andrzej Hunt 1c62371f52 Bug 1269001 - Show number of items for reading list smartfolder r=mcomella
MozReview-Commit-ID: EEtOqum7ejn
2016-05-13 13:05:24 -07:00
Andrzej Hunt a3d015fed4 Bug 1269001 - Introduce BrowserDB.getBookmarkCountForFolder r=mcomella
For now we only need to support the bookmarks smartfolder, however
we might want to extend this to support "recent bookmarks" in future.

MozReview-Commit-ID: CvDNyfycWRl
2016-05-13 13:05:18 -07:00
Andrzej Hunt 618c4711ec Bug 1269001 - Pre: use two line layout for BookmarkFolderView r=mcomella
We want to be able to show the numebr of items for certain folders (e.g.
the reading list smartfolder). The previous state list drawable was also
unnecessarily confusing, let's just reference the desired images directly.

We can do this largely by copying the existing TwoLinePageRow, modulo
the unneeded status / switch-to-tab icons.

MozReview-Commit-ID: 3w0Hcj0kIfG
2016-05-13 13:05:13 -07:00
Sebastian Kaspari 4896a20583 Bug 1266668 - Remove Nightly flags from new ActionBar and floating text selection. r=capella
MozReview-Commit-ID: KpIJeCn2Gj4
2016-04-22 12:19:23 +02:00
Wes Kocher d073c359e0 Merge m-c to fx-team, a=merge
MozReview-Commit-ID: m0xI0OSGys
2016-04-21 15:03:13 -07:00
Wes Kocher dc6216130a Merge inbound to m-c a=merge
MozReview-Commit-ID: GW9vcSRPgYc
2016-04-21 14:41:08 -07:00
Chenxia Liu e67a7b2291 Bug 1262343 - Remove old Synced panel code. r=sebastian
MozReview-Commit-ID: FjRaX14gJ17
2016-04-20 11:55:48 -07:00
Chenxia Liu 4df0deb3ca Bug 1262343 - Remove old History panel code. r=sebastian
MozReview-Commit-ID: LZX264R3H35
2016-04-20 11:41:49 -07:00
Chenxia Liu bc2bd87c00 Bug 1263941 - History is not displayed in the 3-dot menu if History panel is set as default after it was hidden. r=sebastian
MozReview-Commit-ID: 1hSKJd0r0fv
2016-04-20 11:03:35 -07:00
Jim Chen 9f79d16a3a Bug 1252650 - Send event response even if GeckoApp is not active; r=me
Enable sending event response when Gecko state is PROFILE_READY. This
happens when Gecko is loaded in the background and GeckoApp is not
active. This is safe because it's only a response to an event from
Gecko, so there is definitely a listener for the response on the Gecko
side already. r=me for a trivial change.
2016-04-20 15:06:13 -04:00
Jim Chen 48eca4c210 Bug 1252650 - Use GeckoService to launch Gecko for incoming push messages; r=nalexander
Use GeckoService to launch Gecko using the correct profile and load push
service, if necessary.
2016-04-20 15:06:13 -04:00
Jim Chen 8acc79742d Bug 1252650 - Add GeckoThread.canUseProfile; r=snorp
canUseProfile returns whether we're currently using the given profile or
we can potentially start Gecko with the given profile.
2016-04-20 15:06:13 -04:00
Jim Chen fedfd24301 Bug 1252650 - Add intent to create XPCOM services in GeckoService; r=snorp
Add support for Intents that launch GeckoService and create services
based on a category registered with the category manager.
2016-04-20 15:06:13 -04:00
Grigory Kruglov 6f2a5ba6d3 Bug 1265971 - Style fix to make checkstyle happy r=grisha
MozReview-Commit-ID: FjqK8T5IcEt
2016-04-19 23:12:27 -07:00
Grigory Kruglov 0d54c3a417 Bug 1046709 - Part 5: Delete history db extensions related stuff r=nalexander,rnewman
- class
- tests

MozReview-Commit-ID: LwHo5Ej2FGS
2016-04-12 15:52:53 -07:00
Grigory Kruglov 0d37e16a77 Bug 1046709 - Part 3: Synthesize visits when importing history from Android r=nalexander,rnewman
MozReview-Commit-ID: Fcw5lygXbem
2016-04-12 15:44:27 -07:00
Grigory Kruglov a595ede3ae Bug 1046709 - Part 2: CRUD for Visits - query/insert/delete; tests. r=nalexander,rnewman
Note: need to set package name in robolectric.properties so that Robolectric reads correct resources

MozReview-Commit-ID: 6wrh8kzJlXI
2016-04-16 02:19:53 -07:00
Grigory Kruglov 7ce5332606 Bug 1046709 - Part 1: schema migration, data migration, test db r=nalexander,rnewman
MozReview-Commit-ID: 2kI4ps6rOOV
2016-04-18 15:13:06 -07:00
Shatur 723ff2e162 Bug 1250387 - Kill GckoConnectivityReceiver.java and improve GeckoNetworkManager.java r=grisha 2016-04-19 06:31:17 +05:30
Sebastian Kaspari 041ba792f7 Bug 1266340 - Explicitly close menu when finishing action mode. r=capella
MozReview-Commit-ID: LZiufFsemS1
2016-04-21 14:28:58 +02:00
Mark Capella 85dfaecc30 Bug 1245831 - The action bar animation is overlapping with the three dot menu. r=sebastian
MozReview-Commit-ID: J0QXMhfZWt7
2016-04-21 13:11:46 +02:00
Andrzej Hunt 6b0c619604 Bug 1266104 - Ensure SavedReaderViewHelper is loaded for recent tabs panel r=margaret
I wonder if there is a better solution to guarantee we have the necessary data loaded, however
this seems to be the only special case (i.e. the only place we use TwoLinePageRow without
the DB having been loaded first).

MozReview-Commit-ID: F4iAIpe87IY
2016-04-20 22:02:49 +02:00
Andrzej Hunt f684a19993 Bug 1265908 - Avoid NPE with empty selection r=grisha
It is possible and valid to have a null selection. All other manipulations
are null-safe, and we need to be able to handle the null-case when testing for
annotations being part of the selection.

MozReview-Commit-ID: Fpnt2NX1BmV
2016-04-20 09:58:03 +02:00
Grigory Kruglov 48ea9d071e Bug 1266162 - Don't throw during migration upon encountering a strange visits count r=grisha
Sync is vast and could be strange, so let's allow for some weirdness in numbers and recover gracefully.

MozReview-Commit-ID: 6o6SdcvmK8x
2016-04-20 12:12:53 -07:00
Sebastian Kaspari d29095f48d Bug 1264868 - Handle ACTION_VIEW_MULTIPLE intent when creating BrowserApp. r=mcomella
MozReview-Commit-ID: 9WlTn8GcAev
2016-04-18 14:24:05 +02:00
Eugen Sawin d53585062d Bug 1243431 - [4.1] Show permission request doorhanger on vibration request. r=margaret 2016-05-09 14:38:22 +02:00
Michael Kaply 25168b9064 Bug 1265742 - Update Google search plugin; r=margaret 2016-04-19 15:57:50 -05:00
Sebastian Kaspari ed55c74e0f Bug 1265351 - HomeScreenPrompt: Save rejection and send telemetry only once. r=margaret
Additionally this patch:
* unifies the telemetry for declining the prompt to always be: (cancel,back,'home_screen_promotion')
* moves saving the rejection in the database to a background thread

MozReview-Commit-ID: HywutUDtGcY
2016-04-18 14:38:06 +02:00
Andrzej Hunt 1c2eaa9247 Bug 1246243 - Use book icon for reading list folder r=liuche
This approach is extensible and would allow easy addition of special icons for e.g. the
screenshots folder.

MozReview-Commit-ID: 44yWq85x2HG
2016-04-12 14:47:24 -07:00
Alastor Wu efe0f4d1e4 Bug 1249579 - part1 : request audio focus on Fennec. r=snorp.
MozReview-Commit-ID: 45qW0Wjmnad
2016-04-18 18:48:19 +08:00
Jorick Caberio 386ee165ef Bug 1261040 - Remove code code guarded by AppConstants.Versions.preICS. r=sebastian
MozReview-Commit-ID: Jmwl6sfEdx0
2016-04-07 17:17:21 +08:00
Andrzej Hunt ac78ef5717 Bug 1246712 - distinguish reader view pages when bookmarking r=margaret
MozReview-Commit-ID: 8g80ElZf0rU
2016-04-11 16:23:33 -07:00
Andrzej Hunt f78ebe1f4a Bug 932335 - Part 1: differentiate between unprivileged (http(s) URLs) and privileged URLs r=nalexander
Privileged URLs  can include chrome://, jar://, ..., etc.

MozReview-Commit-ID: 3lFR7djRGAH
2016-05-23 14:43:18 -07:00
Andrzej Hunt e3929677e4 Bug 932335 - Pre 3: Make getPreferredSizeFaviconForPage private r=me
We only use this in getPreferredIconForHomeScreenShortcut, we don't
need to expose this elsewhere.

It might be nice to move it directly into getPreferredIconForHomeScreenShortcut,
but the separation allows for some more useful documentation.

MozReview-Commit-ID: E92aLMgp2tl
2016-05-23 13:29:15 -07:00
Andrzej Hunt 85c87d7cf0 Bug 932335 - Pre 2: make getSizedFaviconFromCache package-private r=me
There's no need for this to be visible app-wide, we're only using this in
LoadFaviconTask.

MozReview-Commit-ID: EZh8NtRbBMh
2016-05-23 14:42:25 -07:00
Andrzej Hunt 43f8ee4713 Bug 1264138 - Upgrade FxAccountStatusActivity to use AppCompatActivity too r=sebastian
Our theming inheritance around Preferences still seems quite messy, however given we'll
need to uplift this I'm planning to tackle this in a separate bug.

We add the LocaleAwareAppCompatActivity in order to avoid affecting other consumers
of LocaleAwareFragementActivity (primarily the SearchActivity). We will investigate
those separately.

MozReview-Commit-ID: KVEZbDdza1s
2016-04-14 08:35:13 -07:00
Sebastian Kaspari 412b95a187 Bug 1262105 - Add link to SUMO article to content notifications preference. r=grisha
MozReview-Commit-ID: 3xDGpUnJw3I
2016-04-05 14:09:25 +02:00
Chenxia Liu fd488ee887 Bug 1264136 - NPE in TabMenuStripLayout:onPageSelected while closing last tab or opening new tab. r=sebastian
MozReview-Commit-ID: 59gB7bGi6oh
2016-04-13 11:29:15 -07:00
Andrzej Hunt 647ae16f4c Bug 1263800 - Ensure bookmark star is enabled if tab data available r=grisha
If tab data is initially null then we disable the bookmark star. We need to explicitly
reenable it when we load an actual page. All other menu items seem to be explicitly
enabled as needed below, only bookmarks was omitted (since it's expected to be enabled
~all the time) - but we still could have disabled it previously.

MozReview-Commit-ID: GpVJu4Rw2dN
2016-04-14 11:13:52 -07:00
Andrzej Hunt 4b8bb59d44 Bug 1246239 - Show "saved offline" snackbar when readermode page is bookmarked r=sebastian
MozReview-Commit-ID: IC33HwSClcI
2016-04-12 16:18:50 -07:00
Nick Alexander e5cf057891 Bug 1260478 - Part 1: Duplicate TestFennecTabsStorage integration test into TestTabsProvider unit test. r=mcomella
Notes:

* Setting the package name in robolectric.properties lets us read
  resources.  If we don't, Robolectric tries to read from
  org.mozilla.fennec_$USER or similar.

* We need DelegatingTestContentProvider not for isolation but to
  append "test=1" to all URIs.  Robolectric provides isolation by
  starting each test in a clean environment, but if we don't tell the
  CP to run in test mode, it tries to write into DBs that Robolectric
  doesn't like.

* Robolectric needs manual "shimming", i.e. the test must tell the
  ShadowContentResolver how to resolve.  We also need to handle
  shutdown() ourselves.  Basically, Robolectric doesn't try to
  duplicate the entire Android ContentProvider lifecycle.

* We might grow a "ContentProviderTest" base class to handle the
  registration and shutdown in the future.  I find such base classes
  frustrating and limiting in our Robocop tests, so I'd like to try to
  avoid them in our unit tests for as long as possible.

MozReview-Commit-ID: A0paQXA2uoy
2016-03-27 14:20:41 -07:00
Michael Comella 16514cbbb3 Bug 1262625 - Only call getDir to initialize profile. r=jchen
MozReview-Commit-ID: F8ky8G9QhUT
2016-04-13 16:12:14 -07:00
Michael Comella f95403bfcb Bug 1238785 - Start file cleanup in onStart. r=ahunt
I added some log statements to ensure this worked correctly locally - on a new
profile:
  * Log statements were printed listed the two files I expected to be deleted
and their paths
  * The log statements did not appear after closing and reopened fennec,
meaning the process short-circuited as expected.

Ideally, I'd test that a profile that currently has these files actually gets
them deleted, but it's not easy to create profiles.

The previous patches also contributed unit tests.

MozReview-Commit-ID: 1FOZraATc6x
2016-04-12 16:59:50 -07:00