Commit Graph

19324 Commits

Author SHA1 Message Date
Jeff Beatty
30a855d534 Bug 1262464 - Add Serbian locale to Fennec multilocale build in mobile/android/locales/maemo-locales. r=Pike, a=ritu 2016-04-06 07:57:00 -04:00
Jan Henning
863af96b45 Bug 1044556 - Part 3 - Add a test for verifying that the session store successfully continues recording tab history even after zombification. r=sebastian a=lizzard
MozReview-Commit-ID: 1zSn6QXrR9a
2016-03-31 19:49:00 +02:00
Jan Henning
ae6e48cd00 Bug 1044556 - Part 2 - Move promiseTabEvent to head.js. r=sebastian a=lizzard
MozReview-Commit-ID: 5sLe2nl4v2u
2016-03-31 18:03:21 +02:00
Jan Henning
ebe434a37d Bug 1044556 - Part 1 - Notify the session store about tab zombifications. r=sebastian a=lizzard
The session store relies on a few event listeners to track the history and life cycle of a tab. Under memory pressure, background tabs are zombified in order to reduce our memory usage. This involves destroying the original tab object and then recreating it as a delay loaded tab.

As the session store is never told about this, it will keep the event listeners for the old tab objects - which have now been destroyed - alive and won't receive any future events for the new tab objects. This means that once a zombification has been triggered, the session history for those tabs will become effectively frozen, so after the next zombification or a session restore, the tab will reload the wrong page.

Therefore this patch introduces two new events which are sent during the tab zombification process and allow the session store to detach its event listeners from the old tab object before it is going to be destroyed and subsequently reattach its listeners to the new tab object.

MozReview-Commit-ID: 6xZtsCNZbQY
2016-03-18 11:40:26 +01:00
Eitan Isaacson
a335d1a5e3 Bug 1248408 - Preserve text from previous a11y event if new event does not provide any. r=mfinkle a=lizzard
MozReview-Commit-ID: 3hIquiKLvl7
2016-03-31 13:46:14 -07:00
Sebastian Kaspari
200523e118 Bug 1258328 - HelperAppDialog: Replace deprecated toast API with Snackbars.jsm. r=grisha a=lizzard
MozReview-Commit-ID: 2WPNo9iGHu4
2016-03-29 13:18:12 +02:00
Mark Finkle
1b1c5c5390 Bug 1255202 - Add UI Telemetry probes for DoorHangers. r=margaret a=ritu
MozReview-Commit-ID: 5gsoxiMlFr1
2016-03-18 10:46:19 -04:00
Andrzej Hunt
353729fe04 Bug 1254797 - Post: Ensure we ignore deleted sites in pinned query r=rnewman, a=ritu
Pinned sites should be deleted directly, however I'm not confident enough
in my knowledge of sync to be certain that we won't end up with deleted
pinned sites in our table.

(We use normal bookmark deletion for removing pinned sites.)

MozReview-Commit-ID: SSLDkSXWlI
2016-03-15 14:44:13 -07:00
Andrzej Hunt
f70e7edd48 Bug 1254797 - Intersperse blank sites between pinned sites if needed. r=rnewman, a=ritu
This fixes an edge case that is most likely to happen to new users if they pin a site followed
by removing one or more suggested sites. This results in the topsites table containing
less sites than needed, leading to some pinned sites being displayed in a higher
than expected position. This also broke unpinning since our code assumes
that a topsites physical position corresponds to its DB position (which prior
to this patch was not the case).

MozReview-Commit-ID: JgTUa55eXnz
2016-03-15 14:41:15 -07:00
Andrzej Hunt
80c0bea197 Bug 1254797 - Pre: fix variable name being negation of value. r=rnewman, a=ritu
This variable was renamed to be positive instead of negative but the value/usage wasn't adapted.

MozReview-Commit-ID: H1DeZMmvTXC
2016-03-09 20:10:34 -08:00
Sebastian Kaspari
0eda0ce3a3 Bug 1253684 - Introduce preference for forwarding OMA downloads to Android's download manager. r=margaret, a=lizzard
MozReview-Commit-ID: u9j3CGex2q
2016-03-10 10:51:25 +01:00
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