Commit Graph

19514 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
8427ea0354 merge mozilla-inbound to mozilla-central a=merge 2016-03-24 16:15:30 +01:00
Mark Capella
a9bf9d6f64 Bug 1255819 - Fix SelectionHandler copy/paste in type=number text fields, r=margaret 2016-03-23 20:03:07 -04:00
Andrzej Hunt
e62ff4a49f Bug 1219343 - Enable "Always restore tabs" by default r=margaret
Note, the effect of this change varies as follows:

(A) New users:
(B) Existing users who have never opened Settings->Advanced:
- Tabs will restore by default

(D) Existing users who have explicitly set the preference to disabled:
(D) Existing users who visited Settings->Advanced, without explicitly opening this preference:
- Tabs will not restore by default
(The preference already has a value set, hence the default has no effect)

MozReview-Commit-ID: DjMeEcYhusj
2016-03-23 11:19:10 -07:00
Andrzej Hunt
2f56539665 Bug 1254468 - Post: Remove unused TransitionsTracker r=sebastian
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

--HG--
extra : rebase_source : 1b4f52d84b21e4d93ebfb2d5c8d633c6ad12cf8e
extra : histedit_source : 2625e74aa08efa085733d3d34c6a2fa8550cf9f9
2016-03-15 09:06:46 -07:00
Andrzej Hunt
a208332101 Bug 1254468 - Remove broken TransitionAwareCursorLoaderCallbacks r=sebastian
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

--HG--
extra : rebase_source : 0411e017e19bb4393368b175418a41b0129a622b
extra : histedit_source : 19e68ed7f68180122b7514849b5dad4e246784cb
2016-03-14 15:38:53 -07:00
Michael Comella
06b85c49ff Bug 1256427 - Move to AtomicFile in framework from support lib. r=sebastian
MozReview-Commit-ID: 6DOKydvvSGJ

--HG--
extra : rebase_source : 0c1619d54b2a2f40952e7b01e6b9133aaabdc991
2016-03-23 10:30:52 -07:00
Michael Comella
ed5862c693 Bug 1256427 - Move to LruCache in framework from support lib. r=sebastian
MozReview-Commit-ID: HImxvIVjIhw

--HG--
extra : rebase_source : 14baf6951f4cb195edc6b5c99ffa3065eb6c9d1a
2016-03-23 10:29:25 -07:00
Sebastian Kaspari
d9822bf095 Bug 1254491 - Enable downloadable fonts in all release channels. r=rnewman
MozReview-Commit-ID: 7htS1v9jWJq

--HG--
extra : rebase_source : f674bf0e12580736c039889d79b8257abd4c9cf1
2016-03-22 12:57:11 +01:00
Carsten "Tomcat" Book
82bec00572 Merge mozilla-central to fx-team 2016-03-23 16:30:13 +01:00
Carsten "Tomcat" Book
b5709cdb58 merge mozilla-inbound to mozilla-central a=merge 2016-03-23 16:14:48 +01:00
Carsten "Tomcat" Book
0f5bdcdccf Backed out changeset 0b0b229e5968 (bug 1257319) for causing merge conflicts when uplifting to mozilla-central 2016-03-23 10:55:31 +01:00
Carsten "Tomcat" Book
dd2eeda5e6 Backed out changeset 3e80b5052d0b (bug 1257319) 2016-03-23 10:55:10 +01:00
Carsten "Tomcat" Book
8ef716e20c Backed out changeset ba16cc23d7c4 (bug 1257319) 2016-03-23 10:55:09 +01:00
Carsten "Tomcat" Book
15ef5dbe45 Backed out changeset 48d6faa3bf0f (bug 1257319) 2016-03-23 10:55:06 +01:00
Margaret Leibovic
6efcbb4b98 Bug 1248399 - Update browser.snippets.geoURL and handling code to use MLS instead of geodude. r=giorgos,grisha
MozReview-Commit-ID: wm4ZYbRCcq

--HG--
extra : rebase_source : 5ecb60dc5ee6dedf651bf1ad03f76b65b03ffcd8
2016-03-22 15:50:43 -04:00
Chenxia Liu
13a58e237c Bug 1255077 - Bookmarks menu item does nothing if bookmarks panel is disabled. r=margaret
MozReview-Commit-ID: 7219EueXxtw

--HG--
extra : rebase_source : b0d6bd376462f7f20cb2ad75e7b729a49d1831ad
2016-03-22 13:21:08 -07:00
Sebastian Kaspari
da31e2623f Bug 1258289 - Follow-up: Remove unused resources to avoid lint bustage. r=me
MozReview-Commit-ID: 7EkCmCgdGI3

--HG--
extra : rebase_source : 8eeec8708fa8831d8b254d1f2b6c0495de4e0dce
2016-03-22 20:46:16 +01:00
Mike Hommey
7cd6c430c1 Bug 1257823 - Move set_config() to the global scope. r=nalexander
The way set_config is set currently makes it difficult to introspect
moz.configure files to know what configuration items are being set,
because they're hidden in the control flow of functions.

This makes some of the moz.configure more convoluted, but this is why
there are templates, and we can improve the recurring cases afterwards.
2016-03-24 09:04:28 +09:00
Michael Comella
de1b0b7cc4 Bug 1220309 - Correct all caps button text in Button from AppCompat. r=sebastian
AppCompat capitalizes all text in `Button`s so we have to override
that behavior to maintain the same UI. Ideally, we do this through
`android:buttonStyle` but the place I found the issue doesn't inherit
from that style so we can't and we change the style directly.

There may be issues with other `Button`s, but this is the only one I found.

MozReview-Commit-ID: JQoIlPa9oZD

--HG--
extra : rebase_source : debbb2076a5b339d25dc38c46ccf5e3ce07a0613
extra : source : f774157cf5f423be9a096ed5072b4440d68f4bd1
2015-12-15 11:26:33 -08:00
Jim Chen
dfd67cc6c8 Bug 1257934 - Make the GeckoPreferences pref handler a static class; r=sebastian
The pref handler class in GeckoPreferences doesn't need a reference back
to GeckoPreferences, so it's better to make it a static class rather
than a (non-static) anonymous inner class, in order to avoid leaking
the GeckoPreferences instance inadvertently.

To avoid confusion, the patch also renames the class to "PrefCallbacks",
because GeckoPreferences already has an unrelated interface named
"PrefHandler".
2016-03-22 22:26:19 -04:00
Jim Chen
126366bd4a Bug 1257319 - Remove BROADCAST GeckoEvent; r=me
Remove the now-obsolete BROADCAST GeckoEvent.
2016-03-22 22:24:32 -04:00
Jim Chen
684d4be80d Bug 1257319 - Convert broadcast event usage in HomeConfig.java; r=margaret
HomeConfig.java saved a list of events to be sent later in a batch. This
patch makes it save a pair of strings instead, and the strings are later
used to make calls to GeckoAppShell.

The patch also makes two small optimizations. It makes the queue an
ArrayList instead of a LinkedList to save memory. It also makes copying
the queue a swap instead of a true copy.
2016-03-22 22:24:31 -04:00
Jim Chen
08f23ae943 Bug 1257319 - Convert existing broadcast events to calls; r=margaret
Convert existing places where we use broadcast events to use
new GeckoAppShell calls.
2016-03-22 22:24:31 -04:00
Jim Chen
2025f2f89b Bug 1257319 - Add notifyObservers methods to GeckoAppShell; r=snorp
Add notifyObservers and the synchronous syncNotifyObservers methods to
GeckoAppShell to replace the BROADCAST event.
2016-03-22 22:24:31 -04:00
Mike Hommey
521861c0e2 Bug 1258618 - Use True instead of '1' for set_config. r=nalexander 2016-03-23 09:24:50 +09:00
Mike Hommey
c5fa99076d Fixup for bug 1256995 after bug 1258615 landed. r=me 2016-03-23 09:24:46 +09:00
Nick Alexander
7a603c196f Bug 1258760 - Update Gradle and Maven repository archives in tooltool. r=gps
On a CLOSED TREE -- Android and automation only.

MozReview-Commit-ID: AU8bt4CDC1V

--HG--
extra : amend_source : ff83d4b0513102abf095949a79bf7f7616bbfa14
extra : histedit_source : 576ce07d4f7d2ea9d1ae1997736cfe59d751be6d
2016-03-22 10:17:26 -07:00
Nick Alexander
4085a8469b Bug 1258760 - Include Robocop support files when building --with-gradle. r=gps
The initial --with-gradle support disabled building the Android test
directories; everything was built from
mobile/android/app/build.gradle.  That doesn't declare support files
that need to be packaged for Robocop tests.  This patch stops building
instrumentation test APKs, which aren't used in automation under any
circumstance and which aren't packaged when building with Gradle; and
avoids building the Robocop APK by tweaking the Makefile.  That gets
support files in place while not using moz.build in place of Gradle.

I would have declared the support files elsewhere, but there are path
requirements that I couldn't make work, so in robocop/ they stay.

MozReview-Commit-ID: KCpXvqzYBsY

--HG--
extra : rebase_source : b99be8fada7787ee473f68265824cca2250c70a1
extra : histedit_source : fa19d3ede51e14707f400ab8527d44f5bf550f85
2016-03-15 16:02:01 -07:00
Nick Alexander
40132bc444 Bug 1256995 - Move --with-gradle to mobile/android/moz.configure. r=glandium
This also adds a GRADLE_FLAGS environment variable for use in
automation.

Manually tested.

MozReview-Commit-ID: 8nDkqz2VnJn

--HG--
extra : rebase_source : 32626a7dc0c0a6a440e300d92c31670f14319325
extra : amend_source : fe134e25f079851b4c648b53a7a485ee20c15c18
2016-03-17 11:04:08 -07:00
Nick Alexander
164643fa61 Bug 1256615 - Partially restore removed <activity-alias>. r=sebastian
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

--HG--
extra : rebase_source : 8f4e1321da475bf2dcfca88c5807bf26c940b1c5
extra : amend_source : 3429ff0eaec0edb02e5e47678252bf5a2de74d3f
2016-03-21 13:42:08 -07:00
Mark Capella
ba6c9b3a1e Bug 1252465 - Link taps don't work at the bottom of reader view page, r=margaret 2016-03-22 10:50:04 -04:00
Shatur
834de0fe4e Bug 1213147 - Use Roboto Light for title in Share Overlay dialog on API 16+. r=sebastian
MozReview-Commit-ID: 8X8Rv1GCPk2

--HG--
extra : amend_source : a7b614717ad08b8468eec0cc84c9b2bc2679e67d
2016-03-15 22:01:15 +05:30
Carsten "Tomcat" Book
5d83e31d04 merge mozilla-inbound to mozilla-central a=merge 2016-03-22 12:14:15 +01:00
Maurya Talisetti
34690e6c7f Bug 1241857 - Add calls to super implementation to address lint warnings. r=mcomella 2016-03-14 01:25:00 -04:00
Nick Alexander
e90bd4aabb Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice
MozReview-Commit-ID: 63yJGdgPbhe

--HG--
extra : rebase_source : 2256e0a12588703a83f4cba06971231ac3c64592
extra : amend_source : 1f35a04191f37225986bd7ff4d0b6b2c34a71b05
extra : histedit_source : 82d351700936c8e1297eeca91ce00f96340e2f2c
2016-03-18 14:41:51 -07:00
Nick Alexander
a06e89f5a6 Bug 1256401 - Part 1: Remove mobile/android/b2gdroid. r=fabrice
MozReview-Commit-ID: AUnqHFr017n

--HG--
extra : rebase_source : 739270c96d0d288280260ffff591f096ba2a14ff
extra : histedit_source : 31ba47a9d58175af61e473b1ec7e8abefe8b3cd8
2016-03-18 14:20:24 -07:00
Narek Babajanyan
d10220e17f Bug 1257901 - Remove references to Old Sync. r=nalexander
MozReview-Commit-ID: 9WGu7NzmIOa

--HG--
extra : rebase_source : e6fd5329292e72797df2d23ed2189b15ba4ef039
2016-03-21 12:54:27 -07:00
Dinesh Polathula
b7f062d41f Bug 1255204 - Use sentence casing in Settings prefs. r=margaret
- Clear Private Data > Clear private data

Sync
-----
 - Terms of Service > Terms of service
 - Privacy Notice > Privacy notice

Privacy
-----
 - Tracking protection > Tracking Protection

--HG--
extra : histedit_source : 0dba954af1df974035430fb589570501b88a8272
2016-03-20 01:54:00 -04:00
Petr Marek
c3c709e60a Bug 1111663 - Remove calling of an obsolete onClicked method. r=margaret 2016-03-18 13:04:00 -04:00
Nick Alexander
0b9f03564c Bug 1258452 - Explicitly request READ_EXTERNAL_STORAGE permission. r=sebastian
This permission was added in API 16, and is only enforced in API 19+.
(It's benign to add it to APKs installed on API 15.)

We want to declare it explicitly so that the bouncer APK and the main
APK have the same permission set.  There appears to be some fanciness
with Gradle's implied permission system where the bouncer APK does not
request READ implicitly where-as the main APK does request READ
implicitly.  This just makes things explicit (and uniform).

MozReview-Commit-ID: LBblAPa0duV

--HG--
extra : rebase_source : 616fa58ccd9063088abb14240265a20ac4e48da7
extra : histedit_source : abf6211896e99cc7b53f9c36714d056f0d44d63f
2016-03-14 14:23:56 -07:00
Andrzej Hunt
2304a9088e Bug 1254797 - Post: Ensure we ignore deleted sites in pinned query r=rnewman
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
1916a1090c Bug 1254797 - Intersperse blank sites between pinned sites if needed r=rnewman
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
1bf3fbebe5 Bug 1254797 - Pre: fix variable name being negation of value r=rnewman
This variable was renamed to be positive instead of negative but the value/usage wasn't adapted.

MozReview-Commit-ID: H1DeZMmvTXC

--HG--
extra : amend_source : a83d5ae3f1c7525031c17cdb4fa0f4950f6aa7c2
2016-03-09 20:10:34 -08:00
Sebastian Kaspari
d9987b06e1 Bug 1257936 - TabsPanel: Do not hold static references to views. r=ahunt
MozReview-Commit-ID: F6srFGDG5wx

--HG--
extra : rebase_source : 60da71765cd6a24c083d0cb2942aa5c3485b5f1b
extra : amend_source : 26e9fb9a6f4a88cdb43998dbb79712bd48449b8a
2016-03-18 20:09:32 +01:00
Sebastian Kaspari
85bb5808c6 Bug 1257941 - Use LeakCanary to watch for fragment leaks. r=ahunt
MozReview-Commit-ID: GhqcSH1SML

--HG--
extra : rebase_source : 9439dd3cd0aae5e68f647289ac67619cf13230e7
extra : amend_source : 3afffb2fc47600cfba6fce61452830500c3d6d3a
2016-03-18 20:00:49 +01:00
Ryan VanderMeulen
a3c1075fc6 Merge fx-team to m-c. a=merge 2016-03-19 11:23:43 -04:00
Jim Chen
15ee4d0aaa Bug 1255461 - Notify pref handlers when pseudo-prefs change; r=snorp
When "pseudo-prefs" change, the Java side expects the same change
notification as regular prefs.
2016-03-18 15:18:51 -04:00
Jim Chen
ed8e672f0d Bug 1255461 - Use PrefsHelper to set master password; r=margaret 2016-03-18 15:18:51 -04:00
Carsten "Tomcat" Book
ed69b56ca5 Merge mozilla-central to mozilla-inbound 2016-03-18 16:10:42 +01:00
Carsten "Tomcat" Book
0e533b219a merge mozilla-inbound to mozilla-central a=merge 2016-03-18 15:51:43 +01:00