Commit Graph

21708 Commits

Author SHA1 Message Date
Jim Chen
cc57abd3cd Bug 1319496 - 1. Fix GeckoBundle array handling; r=snorp
Fix several bugs when handling arrays in GeckoBundle.

1. Correctly return null when getting an array that is not in the
   bundle, instead of crashing.

2. Convert object arrays to GeckoBundle arrays in EventDispatcher
   instead of leaving it as a single GeckoBundle with integer keys, due
   to lack of object array support in NativeJSObject.toBundle.

3. Return error when trying to convert a JS array of arrays to
   GeckoBundle, instead of crashing.

4. Add convenience methods for setting arrays; for example, setting
   boolean arrays from Boolean[] and Collection<Boolean>.
2016-11-29 12:25:52 -05:00
Tomislav Jurin
1dff4f4f76 Bug 1316005 - fixed unused methods, made methods use actual signature and added @Override; r=sebastian 2016-11-24 22:30:04 +01:00
Carsten "Tomcat" Book
9dd582c3dd Merge mozilla-central to autoland 2016-11-29 11:50:17 +01:00
Tomislav Jurin
8473a479e6 Bug 1316009 - Adding 'final' keyword to static fields where appropriate. r=sebastian 2016-11-25 20:02:44 +01:00
Andrew Overholt
0f5f9f1124 Bug 1311610 - Add EditorUtils.* to package-manifest; r=enndeakin 2016-11-28 11:40:54 -05:00
Sebastian Kaspari
1f07de1fd2 Bug 1320079 - Update tooltool manifests with findbugs deps. r=ahunt,maliu
MozReview-Commit-ID: 4Vu860y3Czm

--HG--
extra : rebase_source : b6fc5cf646ac7bac8ccbe59d0b445a272ebd3580
2016-11-24 20:09:03 +01:00
Sebastian Kaspari
f284d603a9 Bug 1320176 - Findbugs: Add exclude configuration for unfixed classes of bugs. r=ahunt,maliu
MozReview-Commit-ID: FXZzcht1c7A

--HG--
extra : rebase_source : af491486e2946dbcee45add115370940a34f5daa
2016-11-25 12:13:32 +01:00
Sebastian Kaspari
7bd57daa59 Bug 1320078 - Print findbugs report link for automation. r=ahunt,maliu
MozReview-Commit-ID: KKMYtDyNMkR

--HG--
extra : rebase_source : 6e96cd1f3a2b236ebe47fc0c3c39b9b54c7c9de4
2016-11-24 19:15:28 +01:00
James Cheng
9c50104423 Bug 1320271 - Some tweaks related to MediaDrmBridge. r=jchen
MozReview-Commit-ID: Nt5FEmd1p6

--HG--
extra : rebase_source : fc06dc57f57159aa6224ff0d454d1bf85752061e
2016-11-25 16:28:27 +08:00
maliu
a31c77fe3c Bug 1318663 - Don't skip load start tab during tab restore if incoming action of intent is VIEW with non-external URL. r=JanH,sebastian
MozReview-Commit-ID: 4DAYikBnzz2

--HG--
extra : rebase_source : 680137c3f2110a71ee4ff8ad9a848324f6599ee4
2016-11-29 02:25:29 +08:00
Jan Henning
0dcdc37035 Bug 1320564 - Fix the default value logic for "selected" when creating a new tab. r=sebastian
The idea is that cancelling edit mode when opening a new tab implies that we want to select it as well, otherwise we wouldn't have to cancel edit mode in the first place.

MozReview-Commit-ID: Gova1ymzlHn

--HG--
extra : rebase_source : a1d957de82a5e1ec9bf9162e1f01641e34e16ab4
2016-11-27 18:46:53 +01:00
Nevin Chen
ca744407b1 Bug 1318222 - Updated the unit test,added more test r=sebastian
MozReview-Commit-ID: 8PvSoPJQ88n

--HG--
extra : rebase_source : 928448d1965259d1cece43f53aaf1870c6190d89
2016-11-17 16:29:23 +08:00
Nevin Chen
0da1e0220d Bug 1318222 - Add a unit test r=sebastian
MozReview-Commit-ID: Fv1e2dtPKut

--HG--
extra : rebase_source : d410228beecea6c6389f1980f849738745d81631
2016-11-17 14:44:10 +08:00
Sebastian Kaspari
e1a9c4b26c Bug 1320035 - Add gradle configuration for running findbugs. r=maliu
MozReview-Commit-ID: JATeS3zcvys

--HG--
extra : rebase_source : 6a9456d93c8a6c0786195a941772b00d89746a40
2016-11-24 11:13:54 +01:00
John Lin
8f4f3df42a Bug 1313991 - Rewrite input buffer polling logic. r=esawin
- poll all buffers when started or flushed.
- retry only for timed out.
- remove unnecessary polling

MozReview-Commit-ID: DU9vvjJkwDH

--HG--
extra : rebase_source : 54d734585e198413b2f1afbdad9b073b4e14a153
2016-11-21 15:36:06 +08:00
Nevin Chen
f306b4ac22 Bug 1314563 - Change state icon and message when url icon is clicked r=sebastian
MozReview-Commit-ID: 5KDVFVse9Tu

--HG--
extra : rebase_source : 808bc0f70841224163b9ee1b66f3fdd96ef125f6
2016-11-21 16:32:10 +08:00
Nevin Chen
2cfbaefbeb Bug 1314563 - Add info for Java to know when the url is in the exception list and show the correct icon r=sebastian
MozReview-Commit-ID: FG6a7mRCzZY

--HG--
extra : rebase_source : 998a0d60436f84df4554d62f48d985f9a03ffea0
2016-11-15 09:47:12 +08:00
Nevin Chen
7d8bc9ace3 Bug 1240560 - After shortcut is created, show the mobile desktop. r=sebastian
MozReview-Commit-ID: 21YzmJfNC6E

--HG--
extra : rebase_source : 130a84c9c01b57b730863a99b8507fb36bc93626
2016-11-24 10:57:19 +08:00
Nevin Chen
4b0c2fb780 Bug 1240560 - Extract goToHomeScreen() method to AcitvityUtils r=sebastian
MozReview-Commit-ID: 5w4ywPhDtAy

--HG--
extra : rebase_source : 048a3b5c6c0fff93ff9e92ce25d738c3de7afbdd
2016-11-24 10:54:49 +08:00
Mike Conley
e085c0e851 Bug 1320732 - Make sure borders for checkbox and radio input fields can be styled on Fennec. r=snorp
MozReview-Commit-ID: 3phE0L38exp

--HG--
extra : rebase_source : 99b7a3b71001745f404350673e3b21340db3f4ee
2016-11-28 13:22:42 -05:00
Sebastian Kaspari
7dfcff8b08 Bug 1301468 - Add activity stream session for new tab panel. r=ahunt
MozReview-Commit-ID: 45yMkb3bJfS

--HG--
extra : rebase_source : 899298bc8a26a3d2ae472d20e368756178f4356e
2016-11-23 17:24:31 +01:00
Sebastian Kaspari
600414d90f Bug 1301468 - Add telemetry to AS context menu (following the pattern of existing probes). r=ahunt
MozReview-Commit-ID: 91E0c9rPSbB

--HG--
extra : rebase_source : ca96399cc2c442113415639f082c47f15c61658b
2016-11-23 17:10:04 +01:00
Sebastian Kaspari
08059cfec8 Bug 1301468 - AS Top Sites: Add telemetry for showing context menu. r=ahunt
MozReview-Commit-ID: 9OzR2NjUnZJ

--HG--
extra : rebase_source : 41917acebefd7a7c0affd31a01e77a6011a99da0
2016-11-23 16:59:13 +01:00
Sebastian Kaspari
5cab60e280 Bug 1301468 - AS Highlights: Add LOAD_URL telemetry. r=ahunt
MozReview-Commit-ID: 4iVJXkz8L61

--HG--
extra : rebase_source : f41cdf98ad0b91e00ced69fe1f84fd34c6ccf790
2016-11-23 16:55:06 +01:00
Sebastian Kaspari
3c4f7c1f39 Bug 1301468 - AS Top Sites: Add LOAD_URL telemetry. r=ahunt
MozReview-Commit-ID: 2vgWB2KxPMK

--HG--
extra : rebase_source : 5f8209c48f4e01a13ccf6772a803dad6f2604b24
2016-11-23 16:52:20 +01:00
Jan Henning
c2c425bc88 Bug 1320550 - Part 2 - Clear closed tabs when max_tabs_undo is set to 0. r=sebastian
Currently, we stop updating closed tabs if max_tabs_undo is set to 0, however we don't clear that data and carry it around indefinitely unless the user clears the browser history.

This means that when closing a tab, we still show the "Undo close tab" snackbar, however with its contents referring to the last tab the user closed before setting browser.sessionstore.max_tabs_undo to 0.

With this patch, we clear all closed tabs (and don't reload them from disc on startup) if max_tabs_undo is 0, which also stops the snackbar from showing after closing a tab.

MozReview-Commit-ID: PEtminpW4B

--HG--
extra : rebase_source : 7c8039db1d1d7c5bc127cdc11fbc0a1387694ef9
2016-11-27 16:59:53 +01:00
Jan Henning
ebe2077f8b Bug 1320550 - Part 1 - Only try showing the "Undo close tab" snackbar if we actually have some closed tab data. r=sebastian
This can happen if the users sets browser.sessionstore.max_tabs_undo to 0 - with no closed tabs available, without this fix the resulting exception breaks browser.js's closed tab handling, meaning the tab gets closed in the UI but not in Gecko.

MozReview-Commit-ID: 7yMyIB6UzAB

--HG--
extra : rebase_source : 37ca55519b30cbd5d263127d3ecd6b893ccfafc9
2016-11-27 16:44:38 +01:00
Shan
422587fe5b Bug 1316006 - Change implicit toString() to Arrays.toString(); r=sebastian
MozReview-Commit-ID: Cgcc8UMNpCr

--HG--
extra : rebase_source : 5a145d003b8587fd99179298648e8e2806a76ed0
2016-11-25 16:50:49 +05:30
Carsten "Tomcat" Book
61849e269d merge mozilla-inbound to mozilla-central a=merge 2016-11-24 16:41:59 +01:00
Wes Kocher
b851c06cc9 Merge m-c to inbound, a=merge 2016-11-23 16:18:24 -08:00
Hamel Joshi
b060052591 Bug 1316017 - Remove redundant nullcheck calls. r=sebastian
--HG--
extra : rebase_source : 8316fc83da782c6437028ed16088c19886370c07
2016-11-16 09:12:00 -05:00
maliu
1bf966a5c8 Bug 1319302 - RTL support for Firefox for Android, r=sebastian
MozReview-Commit-ID: bKzW07YBDy

--HG--
extra : rebase_source : 591b8f98a7a287dbf2b7748a97211c81a3ac11aa
2016-11-11 16:10:21 +08:00
Alastor Wu
cfe81f3b38 Bug 1301055 - part1 : allow to replay the same video again. r=snorp
MozReview-Commit-ID: LNz6vEeMZOL

--HG--
extra : rebase_source : f2529c77ed453a6ba14d6df6b3d0f4d504af2a08
2016-11-24 10:24:02 +08:00
Ralph Giles
6e165b8a38 Bug 1318531 - Update builders to rust 1.14.0-beta.2. r=mshal
Update tooltool manifests to repacks of upstream builds of
rustc 1.14.0-beta.2 (e627a2e6e 2016-11-16)
cargo 0.15.0-nightly (a9c23dd 2016-11-15)
for the relevent hosts and target platforms.

We prefer to use stable rust but this bump gets us debuginfo
for the rust standard library on all platforms, which we hope
will improve crash reporting (bug 1268328). That is higher
priority. The rust 1.14 version should be in stable release
before Firefox 53 goes to Aurora, so we'll still stabilize
and ship with stable rust.

This build also contains the fix for the arm code generation
bug blocking update from 1.12 on android, so we can use 1.13
language features in Firefox 53. For more information, see
https://github.com/rust-lang/rust/pull/37815

This doesn't update the native MacOS build because of an
openssl link issue with cargo. This is resolved upstream
for rust 1.15; getting that ported to a later 1.14 beta is
tracked in https://github.com/rust-lang/rust/issues/37969

MozReview-Commit-ID: JbJTd4D7VOu

--HG--
extra : rebase_source : 0690f3d4443f3fc7f224f051f910de92c54b8f60
2016-11-23 06:22:30 -08:00
Ralph Giles
dddc123f32 Bug 1318531 - Fix whitespace in tooltool manifests. r=mshal
Run the tooltool manifests through a python script to read the
json as an OrderedDict and when write it back out with normal
tooltool formatting options. This regularizes the whitespace,
fixing trailing spaces written by older versions of the python
json serializer, dos-vs-unix line endings, and regularizing
opening '[{' and closing '}]' to be on separate lines.

The android manifests have a 'versions' key which has indenting,
unlike the rest of the files. I've left that as-is.

MozReview-Commit-ID: EVW1YlgRJJL

--HG--
extra : rebase_source : 40c1992090807dc40495ebacb37ee358c1d6a6f1
2016-11-22 16:15:27 -08:00
Dylan Roeh
c02cdb63e5 Bug 1318038 - Open speculative connections for URLs supplied to GeckoCustomTabsService.mayLaunchUrl() r=snorp 2016-11-23 15:50:15 -06:00
Tom Klein
b20056ae73 Bug 1310081 - 3. Add ItemDecoration to create fixed spacing items. r=sebastian
We switch to thinking of the tabs grid layout as being determined by specifying
the spacing between the items, and then allowing the items themselves to expand
to fill whatever room that leaves available, but we also allow the spacing to be
adjusted to match the span counts of the previous GridLayout implementation
(which is a good thing).

MozReview-Commit-ID: L3fgjacMu2d

--HG--
extra : rebase_source : 72e77a44c0f0c8c9de3c9d6c5ef95aad405d27a3
extra : source : 17966f55c27550e30f2ec1aab5bc6bc849240436
2016-09-21 22:51:27 -05:00
Phil Ringnalda
feef954874 Merge m-i to m-c, a=merge
MozReview-Commit-ID: EDVoIcyWOhi

--HG--
rename : storage/test/test_AsXXX_helpers.cpp => storage/test/gtest/test_AsXXX_helpers.cpp
rename : storage/test/test_binding_params.cpp => storage/test/gtest/test_binding_params.cpp
rename : storage/test/test_mutex.cpp => storage/test/gtest/test_mutex.cpp
2016-11-22 20:03:03 -08:00
Jim Chen
313554cbc0 Bug 1319173 - Follow-up to fix crash; r=me 2016-11-22 14:09:42 -05:00
Jim Chen
dcc44fafa4 Bug 1319173 - Register MediaPlayerManager events later; r=sebastian
Wait to register MediaPlayerManager events until we have a GeckoApp
EventDispatcher, because we only have an EventDispatcher after we create
the GeckoView in onCreate.
2016-11-22 13:39:54 -05:00
maliu
52155b4a89 Bug 1291270 - Update updater string to distinguish from download and install more clearly, r=sebastian
MozReview-Commit-ID: B4hR8aonESh

--HG--
extra : rebase_source : b753a3670ba870a6b53a3e416ebdaf45ffd5d9a9
2016-11-22 18:38:59 +08:00
Carsten "Tomcat" Book
cf6fb9d85b Merge mozilla-central to autoland 2016-11-22 16:29:49 +01:00
Carsten "Tomcat" Book
8b27dda5d1 merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
maliu
921cf9fc01 Bug 1311480 - Add support to query client with order by name alphabetically, r=Grisha
MozReview-Commit-ID: 7bN7Vh3TqHU

--HG--
extra : rebase_source : 9bc01f1b0dd24595d6ff9bd45e6293742850ac40
2016-11-16 14:03:31 +08:00
Sebastian Kaspari
b88d7883e8 Bug 1318560 - ColorProcessor: Handle ArrayIndexOutOfBoundsException from Palette library. r=gbrown,maliu
MozReview-Commit-ID: GwYj1SRNytN

--HG--
extra : rebase_source : 9635b2a65b3898fbc1b64f43f69889ced5162bc2
2016-11-21 18:00:01 +01:00
Nick Alexander
3e7be895d5 Bug 1255914 - Part 2: mostly back out multiDex (changeset 6972bef6693c). r=sebastian
Since we're Proguarding the automation build now, we shouldn't need to
multiDex anymore -- even in beta.

MozReview-Commit-ID: 6Yc73Vi9Fhd

--HG--
extra : rebase_source : cdfb01a47dc05dfafc4ba67cdb30f86dbd5aa4ec
2016-11-13 14:43:00 -08:00
Nick Alexander
1e0374da73 Bug 1255914 - Part 1: Proguard (minify) Gradle builds in automation. r=sebastian
moz.build achieves better results than Gradle, and I can't fully
explain why that is.  At first I thought it was due to
-optimizationpasses, which is 6 for MOZILLA_OFFICIAL; however, it's
not -- I see no change (let alone an improvement), when I set the
number of passes to 1, 6, 10, or 100.  I think there are two things at
play.  First, moz.build strips debugging information from "libraries",
which are broadly the Google support libraries.  I don't think it's
possible to strip debug information in this fine-grained manner using
Gradle.  Second, I think the Gradle build might be including more code
than the moz.build configuration (see the follow-up patch removing
multidex support), but I can't determine what's actually different.

After APK compression, I see less than a 50kb regression in APK size
between Gradle and moz.build outputs, which I deem reasonable.

MozReview-Commit-ID: 4q4Zye2wnOF

--HG--
extra : rebase_source : dfc0f983f56ceb5907f9aafcb37d2ac63d50988b
2016-11-21 11:58:57 -08:00
Nick Alexander
6fcb908d17 Bug 1318823 - Use com.getkeepsafe.dexcount in Gradle builds. r=sebastian
MozReview-Commit-ID: DHkWkztgJZB

--HG--
extra : rebase_source : b2a5a5d698a216cdbff9fcc5999cac8d76ff0d4a
2016-11-18 18:28:58 -08:00
Mike Conley
7fb9909561 Bug 418833 - Get rid of some padding rules for checkbox and radio on Fennec that were never being applied. r=snorp
MozReview-Commit-ID: LDrUKaP0nN0

--HG--
extra : rebase_source : 8b44c035287e2ca6b03d6496f4b9edf0bcf78319
2016-11-18 13:28:49 -05:00
Mike Conley
9d00dd2f96 Bug 418833 - Make non-native checkbox and radio input styles look right in Fennec. r=snorp
<input>'s of type checkbox and radio are rendered as native widgets by default
on Desktop, but on Fennec, we fallback to using the built-in, non-native
checkboxes.

The earlier patches in this series made it possible for agent, user and page
stylesheets to make changes to the non-native checkbox and radio input fields.

Unfortunately, some of the default agent styles for those checkbox and radio
elements on Fennec were accidentally setting rules that they shouldn't. That
wasn't a problem before because the inputs couldn't be styled before. Now that
they can, we're failing a bunch of reftests because the inputs look wrong in
certain situations.

For example:

1) We were setting background: var(--form_background) for every radio and
   checkbox input. --form_background is just a colour though, and that meant
   that the rest of the background styles were being overwritten. This has
   been fixed by setting background-color: var(--form_background) instead.
   The same also applied to some usage of --form_background_disabled.

2) We were setting border-radius: var(--form_border_radius) on all input
   elements, but this was putting rounded corners on the checkbox and
   radio inputs as well. This rule has been modified to skip checkbox
   and radio inputs.

MozReview-Commit-ID: CnpTRXcCxoY

--HG--
extra : rebase_source : ee688b96270e9b2b3498f18d43f9430048b9b444
2016-11-10 20:46:46 -05:00