Commit Graph

19313 Commits

Author SHA1 Message Date
Chenxia Liu
f0de1d495a Bug 1255077 - Bookmarks menu item does nothing if bookmarks panel is disabled. r=margaret a=ritu
MozReview-Commit-ID: 7219EueXxtw
2016-03-22 13:21:08 -07:00
Sebastian Kaspari
e9497b735e Bug 1254491 - Enable downloadable fonts in all release channels. r=rnewman a=ritu
MozReview-Commit-ID: 7htS1v9jWJq
2016-03-22 12:57:11 +01:00
Andrzej Hunt
6d2f532b6e Bug 1254468 - Post: Remove unused TransitionsTracker r=sebastian a=ritu
This is no longer needed - TransitionAwareCursorLoaderCallbacks was the only
consumer - it was removed as it caused race conditions. The ideal future solution
is probably to use recyclerviews to avoid jank, rather than trying to wait for
transitions to happen.

It's also extremely difficult to use this correctly - the
TransitionAwareCursorLoaderCallbacks simply held the cursor that would usually
be swapped in onLoadFinished until transitions have finished (which is incorrect,
since cursors need to be swapped in before onLoadFinished returns). It's hard to imagine
any alternative solutions, short of avoiding loading cursors in the first place (which
isn't too useful, since cursor loading happens in the background, at which point the UI
status is irrelevant), or hacking the CursorLoader to not return from its worker thread
until UI transitions are done (which would require a new thread-safe implementation of
TransitionsTracker), or maybe even hacking Android Framework's AsyncTaskLoader  to not run Loader.deliverResult
while transitions are running (which seems awfully brittle and hacky).

MozReview-Commit-ID: 3JWDcznYL4Y
2016-03-15 09:06:46 -07:00
Andrzej Hunt
e01296ef75 Bug 1254468 - Remove broken TransitionAwareCursorLoaderCallbacks r=sebastian a=ritu
TransitionAwareCursorLoaderCallbacks is fundamentally flawed: old CursorLoader
cursors _must_ not be used after onLoadFinished has been called. However
we sometimes queue the cursor swapping (which is implemented by subclasses
in onLoadFinishedAfterTransitions) until after transitions have finished.
CursorLoader.deliverResult() closes the old cursor immediately after calling
onLoadFinished (with the new cursor). At this stage the adapter is
still holding onto the old (but now closed cursor), and will crash if it tries
to read this cursor (which can happen if the adapter is still iterating over the
cursor).

Instead we should ensure that we swap the cursors during onLoadFinished - the simplest
way to do this is by eliminating TransitionAwareCursorLoader and using onLoadFinished
the way the Android framework expects.

It's worth noting that TransitionAwareCursorLoader is obsolete: at the time it was added,
home panels were placed in the HomePagerTabStrip, which notified TransitionsTracker about
its transitions. However HomePagerTabStrip no longer exists, hence there's no need
for us to care about these transitions anymore. (The crash seems to happen because we
try to hide the doorhanger every time we receive LOCATION_CHANGE, and each of these starts
a hide transition - even if no doorhanger is shown - hence we often have a transition
in progress every time we show topsites.)

MozReview-Commit-ID: HsytLpHOrp2
2016-03-14 15:38:53 -07:00
Nick Alexander
82ed7db966 Bug 1256615 - Partially restore removed <activity-alias>. r=sebastian a=ritu
Bug 1242213 removed the entire <activity-alias>.  Sadly, users who
added the Firefox icon to their dock (for example, Samsung's Touchwiz
dock) will see the icon disappear when they upgrade, because the
intent filter disappears.  (That is, the icon is connected to .App and
action MAIN, not to the package and action MAIN.)

This patch restores the .App <activity-alias> for action MAIN.  It
doesn't add the launcher and other categories, which could lead to
multiple launcher icons.  New users that add the Firefox icon to their
dock will use .BrowserApp, but sadly we'll need to maintain this alias
essentially forever to support existing dock icons.

MozReview-Commit-ID: 1o9XS5MEs1s
2016-03-21 13:42:08 -07:00
James Willcox
ea7cbbddd8 Bug 1142988 - Try harder to disable Flash on Tegra devices r=droeh, a=lizzard 2016-03-03 10:09:21 -06:00
Jim Chen
378aaa58d6 Bug 1255461 - Notify pref handlers when pseudo-prefs change; r=snorp a=ritu
When "pseudo-prefs" change, the Java side expects the same change
notification as regular prefs.

MozReview-Commit-ID: GKVJlMJJ7OX
2016-03-18 15:18:51 -04:00
Jim Chen
b72c12cd79 Bug 1255461 - Use PrefsHelper to set master password; r=margaret a=ritu
MozReview-Commit-ID: CqKTWUyWxqS
2016-03-18 15:18:51 -04:00
Jim Chen
31eb63011e Bug 1253703 - Null-check createNativeGestureEvent result; r=kats a=sylvestre
createNativeGestureEvent can fail and return null, so we should guard
against that.

MozReview-Commit-ID: 8V0zMiOzKnG
2016-03-11 13:47:22 -05:00
Sebastian Kaspari
7d8b740d52 Bug 1255767 - ToolbarDisplayLayout: Only use baseDomain if it is available. r=margaret, a=ritu
MozReview-Commit-ID: 6RXVwv9aN1K
2016-03-14 12:24:47 +01:00
Andrzej Hunt
a63ff5fd9e Bug 1255335 - Ensure we can and should scale image before scaling. r=sebastian, a=ritu
We introduced the "if ((flags & FLAG_BYPASS_CACHE_WHEN_DOWNLOADING_ICONS) != 0)" check,
and direct Bitmap scaling in Bug 1238656 to avoid getting the cached icon (which results
in downscaling) for apple-touch-icons (or just any icon that we're using for homescreen shortcuts).
However we need to make sure we can actually scale the icon before performing scaling, hence
this check should have been within our pre-existing "if (image_params_are_valid)" clause.

MozReview-Commit-ID: 4RdHmEia5FR
2016-03-10 22:50:20 -08:00
Margaret Leibovic
5eadc4a363 Bug 1253598 - Put offline cache feature behind a switchboard flag. r=sebastian, a=lizzard
MozReview-Commit-ID: 2g0JKBopIDB
2016-03-10 15:31:30 -05:00
Chenxia Liu
f8809c337c Bug 1254944 - Move changes to generated ThemedImageButton to generator script. r=grisha, a=ritu
MozReview-Commit-ID: Gsnyf1CYE2e
2016-03-09 10:48:02 -08:00
Chenxia Liu
34205761de Bug 1249418 - Update illustration image of Sync slide. r=ahunt, a=ritu
MozReview-Commit-ID: LW5SgnnkA95
2016-03-15 12:30:09 -07:00
Chenxia Liu
9ec0dfbd8b Bug 1255127 - Decrease height of bookmark folders to match remote client item height. r=grisha, a=ritu
MozReview-Commit-ID: HIveNuSTuPf
2016-03-09 11:48:55 -08:00
Chenxia Liu
32279f92be Bug 1256400 - Update firstrun search image. r=ahunt, a=ritu
MozReview-Commit-ID: EJTeFrmrKR6
2016-03-15 12:25:27 -07:00
Chenxia Liu
71a08e2551 Bug 1254239 - Align bookmark folders with other home panel items. r=mcomella a=ritu
MozReview-Commit-ID: KRfmSVqbhSl
2016-03-07 11:49:37 -08:00
Sebastian Kaspari
4fc1561eeb Bug 1251923 - TabQueueService: Treat BadTokenException like SecurityException. r=margaret a=ritu
MozReview-Commit-ID: qTtRaQuZyo
2016-03-04 16:01:59 +01:00
Nick Alexander
99b75a09ca Bug 1255926 - Exclude GCM and Push test files from Gradle configuration when !MOZ_ANDROID_GCM. r=bustage a=bustage
MozReview-Commit-ID: GsYEyF7PTbS
2016-03-12 16:57:10 -08:00
Nick Alexander
0412ff8793 Bug 1255926 - Exclude GCM and Push files from Gradle configuration when !MOZ_ANDROID_GCM. r=bustage a=bustage
MozReview-Commit-ID: Cs2dOZy0UUb
2016-03-12 16:19:21 -08:00
Sebastian Kaspari
052d9ab0c1 Bug 1250671 - Show full URL in URL bar on tablets. r=mcomella, a=ritu
MozReview-Commit-ID: 9zEh5jNm1Tr
2016-02-23 16:05:36 -08:00
ffxbld
2138ab342a Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-03-07 09:23:19 -05:00
Nick Alexander
44ff8285f6 Bug 1253876 - Back out PushService integration to not burn aurora. r=me
Sadly, this needs to be conditional to not burn builds where
MOZ_ANDROID_GCM is not defined -- such as aurora.  As uplift is soon,
this will have to be relanded behind a conditional abstraction (just
like Adjust).

MozReview-Commit-ID: 80gBojadDic
2016-03-06 20:43:22 -08:00
Ryan VanderMeulen
d3f5d4bd68 Merge fx-team to m-c. a=merge 2016-03-05 19:22:45 -05:00
Chenxia Liu
e7a8a52533 Bug 1232868 - Update strings. r=mcomella
MozReview-Commit-ID: 3dQBkKaP6WV
2016-03-04 10:01:14 -08:00
Chenxia Liu
94b640d1b2 Bug 1232868 - Consolidate usage of arrow resource. r=mcomella
MozReview-Commit-ID: LwUmDt4E9K5
2016-03-03 16:29:57 -08:00
Chenxia Liu
1b7107065f Bug 1232868 - Clean up bookmark folder list item UI. r=mcomella
MozReview-Commit-ID: 4ktf2xlSKwJ
2016-03-03 16:06:11 -08:00
Chenxia Liu
58351e1a8c Bug 1227120 - Rename missing API-9 star resource. r=bustage
MozReview-Commit-ID: GgK05KVq3ZQ
2016-03-04 17:53:22 -08:00
Chenxia Liu
ad91b69243 Bug 1227120 - Add mdpi resource for API 9. r=bustage 2016-03-04 17:10:44 -08:00
Nick Alexander
99ade81c39 Bug 1214338 - Implement Android GCM-based PushService protocol. r=rnewman r=kitcambridge
MozReview-Commit-ID: 1KV7CZBuosx
2016-03-04 15:48:09 -08:00
Michael Comella
6a26062006 Bug 1252717 - Set all passing android lint warnings as errors. r=me
I made all of the checks that:
  * We pass
  * Weren't already disabled

Into errors. There may be some checks we don't actually want, in which case we
can remove them from this list when we fail them.

MozReview-Commit-ID: 2vilkg9ppYE
2016-03-04 16:03:27 -08:00
Chenxia Liu
9b0243d417 Bug 1227120 - Use new star resource for home panel bookmarks. r=mcomella
MozReview-Commit-ID: Flc9dcHX0Fb
2016-03-02 18:15:46 -08:00
Chenxia Liu
1fc441daa8 Bug 1227120 - Filled bookmark star does not easily convey bookmarked state. r=mcomella
MozReview-Commit-ID: 8fSQiEycSGl
2016-03-02 18:00:03 -08:00
Michael Comella
edfa4cdbaa Bug 1238788 - Burn the tree on android lint failure. r=nalexander
Looking at [1], we halt_on_failure for the `postflight_build_mach_command`s and
the flag I flipped causes the lint command to return a non-zero exit code (i.e.
noting failure).

[1]: https://hg.mozilla.org/mozilla-central/rev/b7f1dac8306f#l2.29

MozReview-Commit-ID: 8v4am9zxxCk
2016-03-02 12:00:29 -08:00
Carsten "Tomcat" Book
41362e0e1b Merge mozilla-central to fx-team 2016-03-04 13:40:08 +01:00
Carsten "Tomcat" Book
21bc5dab6b merge mozilla-inbound to mozilla-central a=merge 2016-03-04 11:49:58 +01:00
malayaleecoder
b66c6504fa Bug 1241941 - [Lint: ScrollViewSize] Fix ScrollView size validation error. r=mcomella 2016-03-02 10:32:38 +05:30
Nick Alexander
46820b1583 Bug 1207714 - Part 4: Add singleton PushService. r=rnewman
MozReview-Commit-ID: CFSINSP7uFp
2016-03-02 16:44:23 -08:00
Nick Alexander
2c5e4ad4d4 Bug 1207714 - Part 3: Implement push manager. r=rnewman
MozReview-Commit-ID: LkUaGFA6YlF
2016-03-02 16:04:02 -08:00
Nick Alexander
bc58b55b10 Bug 1207714 - Part 2: Add storage for App-wide push state. r=rnewman
MozReview-Commit-ID: GOP4F6N2Mht
2016-03-02 15:48:37 -08:00
Nick Alexander
f7981eb372 Bug 1207714 - Part 1: Register no-op GCM message listeners. r=rnewman
MozReview-Commit-ID: 4n7IcTuGQVE
2016-03-02 15:45:24 -08:00
Nick Alexander
aa3cf20ce7 Bug 1207714 - Pre: Tweaks to the autopush client. r=me
MozReview-Commit-ID: INWEkLJfVDQ
2016-03-01 16:59:49 -08:00
Nick Alexander
c1d6f977a4 Bug 1207714 - Pre: Expose synchronous executor to product code. r=rnewman
MozReview-Commit-ID: 3eDVh0nk7Nc
2016-02-25 09:30:28 -08:00
Nick Alexander
5c844cf44f Bug 1221678 - Add new Android permission to Fennec Nightly (when GCM is enabled). r=margaret
MozReview-Commit-ID: 6orrWVxqLP7
2016-03-01 16:53:46 -08:00
Sebastian Kaspari
7d7124b777 Bug 1249594 - Show name of owner (EV certificate) in URL bar if available. r=mcomella
MozReview-Commit-ID: 8A15R9KoBh
2016-02-21 14:32:31 +01:00
Sebastian Kaspari
a6e3892f33 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
5e7063ee67 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
Randall Barker
178c18a6fd Bug 1241332 - part 2, Request zoomToFocusedInput after resize finishes and propagates through APZ r=kats 2016-03-04 14:43:38 -08:00
Randall Barker
3ab57f32f0 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
dca0335d83 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