Commit Graph

16876 Commits

Author SHA1 Message Date
Michael Comella
14777bb92e Bug 1170804 - Add non-final eslintrc for tests/. r=margaret
There are still some failures but it's a start.
2015-06-25 10:40:26 -07:00
Michael Comella
9940a3e396 Bug 1170804 - Set non-final eslintrc for chrome/content. r=margaret
Still a lot of errors but it's progress.
2015-06-25 10:27:38 -07:00
Michael Comella
4c7150cc6f Bug 1170804 - Get .jsm to work under eslint. r=margaret
You can now run by `cd mobile/android && eslint . --ext "[.js,.jsm]"`.
2015-06-24 23:11:11 -07:00
Michael Comella
c7cf88fbf4 Bug 1170804 - Fix bugs found by eslint in components/. r=margaret
A few errors still remain.
2015-06-24 21:56:23 -07:00
Michael Comella
f80917abd6 Bug 1170804 - Add .eslintrc configuration file to mobile/android. r=margaret
eslint can be run by `cd`ing to mobile/android and running `eslint .` (assuming
eslint is installed). Note that .jsm files have not yet been configured.

Add an eslintignore to avoid the files that will take more work.
2015-06-24 22:37:55 -07:00
vivek
48faabb232 Bug 1162650 - Unrooting and clearing bookmark on deletion. r=rnewman 2015-06-03 22:10:00 -04:00
vivek
f3759a638a Bug 1171141 : Fetch profile data for FxAccount -r=nalexander. 2015-06-14 15:30:25 +03:00
Gregory Szorc
4f2fb895aa Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.

All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.
2015-06-21 17:39:09 -07:00
Nick Alexander
e1553da827 Bug 1162191 - Add |mach artifact| for installing downloaded Fennec binaries. r=gps
DONTBUILD ON A CLOSED TREE: Android-only and the build changes are cosmetic.

Very much a first cut, but I'd like to get some Fennec early adopters testing.

This adds:

* |mach artifact install| to fetch and install Fennec binaries;
* |mach artifact last| to print details about what was last installed;
* |mach artifact {print,clear}-caches|, for debugging.

This code is exposed as a new mozbuild.artifacts Python but it's not
particularly general.  My intention was to get things out of the mach command
more than produce a general artifact fetching API.  We can leave that bike
shed to Bug 1124378.

I've been testing this with --disable-compile-environment and it works well
locally, although there's no reason a knowledgeable developer couldn't use
this in conjunction with a fully-built tree.  (I don't know when such a
situation would arise, but I know of no technical impediment.)
2015-06-24 23:12:00 -07:00
Michael Comella
bd65e57d0c Bug 1177166 - Remove menu.xml with null reference. r=me
This was causing crashes on tablet devices.

I'm not sure what it was for but pretty sure it was an artifact that was never
removed in old tablet builds.
2015-06-24 15:41:31 -07:00
Martyn Haigh
726898bb99 Bug 1017338 - Swipe to close a tab from tab panel (r=s.kaspari) 2015-06-24 12:22:28 -07:00
Sebastian Kaspari
7db738caf0 Bug 1175434 - Hide "Find in page" bar when browser search UI is displayed. r=mcomella 2015-06-18 20:30:14 +02:00
Michael Comella
f1e32aa120 Bug 1176886 - Remove unnecessary parents in sync code. r=nalexander 2015-06-24 09:28:26 -07:00
Michael Comella
1aa6a80588 Bug 1176886 - Add UselessParent ignore to tab_queue_prompt. r=mhaigh 2015-06-23 10:55:04 -07:00
Michael Comella
cc4b74cf8f Bug 1177166 - Remove duplicate favicon_search & suggestion_item_search icons. r=jonalmeida
The icons are now called search_icon_inactive.
2015-06-24 12:45:36 -07:00
Michael Comella
15e8316dea Bug 1177166 - Remove duplicated menu_tabs icons. r=jonalmeida
The duplicated icon is called menu.
2015-06-24 12:48:54 -07:00
Michael Comella
c26777a2e1 Bug 1177166 - Remove duplicate icon_last_tabs_empty. r=jonalmeida
Used icon_remote_tabs_empty instead.
2015-06-24 12:10:01 -07:00
Sebastian Kaspari
8ec2fb7f53 Bug 1157539 - Create "speed dial" dynamic home panel layout. r=mhaigh 2015-06-16 13:53:59 +02:00
Michael Comella
e23260f545 Bug 1170884 - Change inner LinearLayout to wrap_content. r=mhaigh
Inside a ScrollView. According to Android Lint:

ScrollView children must set their layout_width or layout_height attributes to
wrap_content rather than fill_parent or match_parent in the scrolling dimension

--- Who am I to argue?
2015-06-23 10:39:55 -07:00
Carsten "Tomcat" Book
a0dcf20fad merge mozilla-inbound to mozilla-central a=merge 2015-06-24 16:01:47 +02:00
Michael Comella
6000c79b71 Bug 1175388 - Disable AlwaysShowAction on a file level. r=margaret
We have a custom menu system here and interpret these attributes ourselves so
this warning isn't relevant to us.
2015-06-16 20:25:42 -07:00
Martyn Haigh
02ae8bca1f Bug 1176883 - Fix privateBrowing translation issue (r=flod) 2015-06-23 10:37:45 -07:00
Carsten "Tomcat" Book
135b0588cd merge mozilla-inbound to mozilla-central a=merge 2015-06-22 14:03:17 +02:00
Ahmed Khalil
fb8c919ddc Bug 1172077 - Merge tabs.db into browser.db. r=nalexander a=KWierso
This moves the tabs and clients table into the main per-profile
browser.db database.  It's a code savings but it also makes it easier
to query against open tabs when inspecting parts of the browser
database, like history and bookmarks.
2015-06-18 15:05:42 -07:00
Chenxia Liu
080b279523 Bug 1173887 - Only display one title + favicon for the first doorhanger in a popup. r=ally, a=Kwierso 2015-06-16 14:03:09 -07:00
Chenxia Liu
b0d5decf79 Bug 1150613 - Doorhanger should not reappear after being dismissed. r=margaret, a=Kwierso 2015-06-18 10:53:09 -07:00
Jonathan Almeida
fabbc0c392 Bug 1161820 - Replace all back button presses with Solo.goBack in tests. r=liuche CLOSED TREE 2015-06-17 17:24:48 -07:00
Ryan VanderMeulen
2cc08b4a01 Merge inbound to m-c. a=merge
CLOSED TREE
2015-06-19 16:33:59 -04:00
Ryan VanderMeulen
1202fbd738 Merge fx-team to m-c. a=merge 2015-06-19 16:33:00 -04:00
Eugen Sawin
790606f8c0 Bug 1175605 - Do not access DOMApplicationRegistry properties before it is ready. r=myk 2015-06-18 22:09:49 +02:00
Sylvestre Ledru
3442e660c1 Bug 1174506 - Bring back the version in the About:page of fennec r=glandium
Also update the configure to use MOZ_APP_VERSION for MOZ_APP_VERSION_ABOUT
if not found
2015-06-19 12:51:48 +02:00
Chenxia Liu
d5052074a8 Bug 1175996 - Backout enable of testSettingsMenuItems for 2.3 from bug 1144898. CLOSED TREE r=orange, a=RyanVM 2015-06-18 10:54:52 -07:00
Sebastian Kaspari
3576e0eee7 Bug 1171288 - Add ability to build with RecyclerView support library. r=nalexander 2015-06-16 19:52:44 +02:00
Chenxia Liu
da90e68caf Bug 1144898 - Android 4.3 testSettingsMenuItems | Exception caught - junit.framework.AssertionFailedError: Text string: '^Mozilla$' is not found! r=mcomella 2015-06-17 09:52:49 -07:00
Mike Taylor
5642dad17d Bug 1175301: Update UA override for Youtube. r=mbrubeck 2015-06-17 13:02:30 -07:00
Nick Alexander
cf55abbd92 Bug 1161234 - Pre: Add "CreateFirefoxAccountFromJSON" message. r=rnewman
We will probably grow a helper module for handling these
account-related messages, but this is enough to develop an
about:accounts style add-on.
2015-06-17 12:32:03 -07:00
Ryan VanderMeulen
083015b20d Merge fx-team to m-c. a=merge 2015-06-17 15:01:24 -04:00
Ryan VanderMeulen
bbdead56ea Merge m-c to inbound. a=merge
CLOSED TREE
2015-06-17 12:10:37 -04:00
Michael Comella
69fc98d1ec Bug 1170884 - Use 0dp for layout_w/h for perf reasons. r=mhaigh
This falls under the InefficientWeight rule.

Changes completed via Android Studio quick-fix.
2015-06-16 20:37:17 -07:00
Michael Comella
22ba854cc3 Bug 1170884 - Add title to menu item. r=mhaigh
Part of android lint's "MenuTitle" warning.

This is a stub (according to the comments) so we don't actually need a title. I
was going to suppress the lint output but since the title is the empty string
on v11+ where this value is used, I figured an empty string title should
suffice.
2015-06-16 19:36:23 -07:00
Michael Comella
cdea677e4a Bug 1170884 - Remove unnecessary namespace attribute. r=mhaigh
Part of android lint's "MissingPrefix" rule.
2015-06-16 19:31:48 -07:00
Michael Comella
e9f0c345d5 Bug 1170884 - Add explicit orientation to LinearLayouts. r=mhaigh
android-lint recommends this as part of it's "Orientation" rule.
2015-06-16 19:29:28 -07:00
Michael Comella
362c99bda6 Bug 1170884 - Remove obsolete layout params. r=mhaigh
Via the ObsoleteLayoutParam android Lint warning. Fixed automagically by
Android Studio.
2015-06-12 17:27:03 -07:00
Martyn Haigh
b1b5f860e2 Bug 1174845 - Remove purple overflow menu button (r=mcomella) 2015-06-17 15:36:39 +01:00
Mike Taylor
7771e2164c Bug 1169772 - Add Android version to platform identifier of Fennec's UA string. r=mfinkle, r=gerv 2015-06-11 09:38:00 -04:00
Martyn Haigh
1343c4c25f Bug 1157978 - Remove duplicate what is private browsing messages (r=margaret) 2015-06-17 15:30:59 +01:00
Mike Taylor
e4cb9a625b Bug 1175305 - Enable dynamic UA updates for Fennec. r=margaret 2015-06-18 15:00:00 +02:00
Nick Alexander
31b4d8f041 Bug 1168407 - Implement a bidirectional Java addon interface. f=jchen,r=rnewman,r=mfinkle
There are several parts to this ticket:

1) Produce javaaddons-1.0.jar, a standalone JAR defining a (versioned)
Java interface suitable for consumption by third-party Java addon
implementations.

2) Support the new V1 interface in the JavaAddonManager.

3) Add Robocop JavascriptTests testing the JavaScript message passing
interface to and from Java.

This patch can be read as "not in tests/" and "everything in tests/".
2015-06-17 21:47:29 -07:00
Nick Alexander
c88c530673 Bug 1168407 - Pre: Add GeckoJarReader.extractStream. r=rnewman
The use case is to ship a classes.dex file in a Gecko add-on.  This
makes it easy to extract such a file from an add-on to a temporary
location.  (Sadly, the Android Dex loading classes expect files, not
streams.)
2015-06-15 16:21:55 -07:00
Nick Alexander
858076ed5f Bug 1168407 - Pre: Move roboextender under mobile/android/tests. r=gbrown
I want to include a file built during the Fennec build to the
roboextender extension; this is an easy way to arrange it.

I took the opportunity to make the extension file tree mirror the XPI
file tree, which always used base/.
2015-06-15 15:51:21 -07:00
Robert O'Callahan
eaf5448c3f Bug 1150284. Disable offsetX/offsetY properties in FxOS/Fennec. r=smaug 2015-06-18 17:04:14 +12:00
Nikhil Marathe
295faeeca9 Bug 1173389 - Disable ServiceWorker network interception by default. r=ehsan 2015-06-12 16:28:13 -07:00
Michael Comella
c7ded7fa1d Bug 963873 - Replace HashMap with SparseArray in AndroidGamepadManager. r=nalexander
I don't expect to have many devices attached to a Fennec instance so it's
unlkely we'll run into the performance issues of SparseArray when
adding/removing.
2015-06-16 15:41:22 -07:00
Phil Ringnalda
a220a87006 Back out cc46990bc189 (bug 1144898) for testSettingsMenuItems failures and crashes 2015-06-16 19:44:05 -07:00
Chenxia Liu
04fe52fc85 Bug 1144898 - Android 4.3 testSettingsMenuItems | Exception caught - junit.framework.AssertionFailedError: Text string: '^Mozilla$' is not found! r=mcomella 2015-06-16 15:49:04 -07:00
Chenxia Liu
3d2631564a Bug 1175356 - Don't log JSONException when updating the SiteIdentity info. r=trivial 2015-06-16 17:23:46 -07:00
Michael Comella
18f2f8c400 Bug 1168980 - Search app store when there is no app to handle intent:// URI. r=margaret 2015-06-16 11:39:00 -07:00
Justin Dolske
4cae8ea4c6 Bug 1109475 - Firefox should use HTTPS instead of HTTP for Safe Browsing URLs. r=gcp 2015-06-16 12:28:42 -07:00
Mike Hommey
8adfa6cd55 Bug 1173681 - Move nsIProfileUnlocker.idl to toolkit/profile and remove profile. r=bsmedberg 2015-06-23 08:55:40 -07:00
Carsten "Tomcat" Book
9a4e1b53a6 merge mozilla-inbound to mozilla-central a=merge 2015-06-16 16:08:27 +02:00
Phil Ringnalda
db9af263ce Back out cf876b6ac843 (bug 1168980) for Android xpcshell crashes in test_redirect-caching_failure.js and test_redirect_failure.js
CLOSED TREE
2015-06-15 21:00:36 -07:00
Richard Newman
1593ea0ea0 Bug 1031569 - Don't query for non-exported activities, don't crash if we fail to launch one. r=mfinkle
Tested youtube.com, send tab, sharing menu.
2015-06-15 18:56:06 -07:00
Michael Comella
595f58acb0 Bug 1168662 - Add EXTRA_APPLICATION_ID to all outgoing Intents. r=margaret 2015-06-12 16:30:20 -07:00
Michael Comella
17fa688034 Bug 1168662 - Modify all outgoing Intents with CATEGORY_BROWSABLE. r=margaret 2015-06-12 16:26:24 -07:00
Michael Comella
882413144c Bug 1168980 - Search app store when there is no app to handle intent:// URI. r=margaret 2015-06-10 17:26:27 -07:00
Michael Comella
197bbfbbbf Bug 1173228 - Suppress SetJavaScriptEnabled linter warning. r=margaret
The function is required for a greasemonkey script and the code is expected to
be secure.
2015-06-09 18:52:12 -07:00
Nick Alexander
d257109ed7 Bug 969925 - Generate an empty fennec_ids.txt. r=gbrown
Automation and some third-party tooling expects fennec_ids.txt, but an
empty file should suffice.
2015-06-15 11:34:51 -07:00
Wes Kocher
8309735e4f Merge m-c to inbound, a=merge 2015-06-15 18:34:29 -07:00
Florian Quèze
55c7ff176c Bug 1109354 - prefer Firefox default engines over profile-installed plugins with the same name, r=markh. 2015-06-15 18:32:09 +02:00
Joel Maher
d46954b0e4 Bug 1174693 - Remove old robocop talos tests which we don't run anymore. r=gbrown 2015-06-15 09:35:00 -04:00
Ryan VanderMeulen
a8413ea695 Merge m-c to inbound. a=merge 2015-06-15 15:56:20 -04:00
Margaret Leibovic
3ad169c4cc Bug 1173895 - Hide enable/disable context menu items for app disabled add-ons. r=liuche 2015-06-11 11:52:41 -04:00
Margaret Leibovic
a56616aa10 Bug 1170851 - Warn about add-ons detected as no longer signed. r=mfinkle,Mossop 2015-06-10 08:48:01 -04:00
Martyn Haigh
4329924c73 Bug 1164959 - Remove empty private tabs tray content, replace with simple empty state (r=mcomella) 2015-06-15 13:28:57 +01:00
Eugen Sawin
df6e6f3991 Bug 1171013 - Use extended defineLazyModuleGetter to import Webapps.jsm. r=mfinkle 2015-06-15 19:16:42 +02:00
Eugen Sawin
9cab95afef Bug 1171013 - Set Android apps to be launchable by default. r=mossop 2015-06-15 19:14:47 +02:00
Chenxia Liu
22e3853dcf Bug 1161200 - Only show "Edit Site Settings" when actionable. r=margaret 2015-06-12 18:03:04 -07:00
Chenxia Liu
361dcda6cb Bug 1167740 - Allow editing login from "Update login" doorhanger. r=margaret 2015-06-11 18:06:58 -07:00
Chenxia Liu
8d0cfa2e19 Bug 1141904 - Update SiteIdentity popup to match Doorhanger popup. r=ally 2015-06-10 14:57:38 -07:00
Ryan VanderMeulen
d473169250 Merge m-c to fx-team. a=merge 2015-06-12 15:00:54 -04:00
Ryan VanderMeulen
86c5c07470 Merge inbound to m-c. a=merge 2015-06-12 14:57:24 -04:00
Michael Comella
760a6b9233 Bug 1171789 - Add updated summary to tab queue preference item in test. r=liuche 2015-06-12 11:10:19 -07:00
Michael Comella
a41d84b50b Bug 1172831 - Remove unused onboarding resources. r=liuche 2015-06-11 11:59:30 -07:00
Michael Comella
60b4b53149 Bug 1170884 - valueOf instead of new in sync repo. r=nalexander 2015-06-12 11:18:31 -07:00
Michael Comella
bd41fcf50c Bug 1170884 - Replace "new Integer" with "Integer.valueOf". r=nalexander 2015-06-11 12:25:27 -07:00
Wes Kocher
909c7ffee4 Merge m-c to fx-team, a=merge CLOSED TREE 2015-06-11 17:55:46 -07:00
Wes Kocher
263ad28351 Merge fx-team to central, a=merge 2015-06-11 17:18:11 -07:00
Wes Kocher
bfea5e9dd0 Merge inbound to central, a=merge 2015-06-11 17:02:47 -07:00
vivek
f353a353f2 Bug 1055264 : Default profile image layout for sync setup screen -r=nalexander. 2015-06-10 21:23:00 -07:00
vivek
e51037aa09 Bug 1055264 : Build flags added for firefox account profile -r=nalexander. 2015-06-10 21:22:00 -07:00
Allison Naaktgeboren
3f82f1a634 Bug 1136477 - Unify terminology of Passwords/Logins for about:logins (nee about:passwords).1/2.r=margaret 2015-06-10 18:52:27 -07:00
Wes Kocher
2a1b065291 Merge m-c to fx-team, a=merge 2015-06-10 18:40:51 -07:00
Wes Kocher
a557d0fae7 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Michael Comella
b7a7f42b28 Bug 1170884 - Call TypedArray.recycle after use in TextSelectionHandle. r?capella 2015-06-10 15:09:17 -07:00
Michael Comella
02c4285379 Bug 1168497 - Only run LayerMarginsAnimationTask when there is work to do. r?snorp
Before, we'd run this animate the dynamic toolbar over a specified duration
even if the dynamic toolbar was not actually animating anywhere. Thus, this
patch reduces excess work when the dynamic toolbar is not scrolled out of
place (e.g. onPanZoomStopped, onLocationChange, onTabChanged). This reduced
work includes allocating the RenderTask only when we need it.
2015-06-09 16:15:28 -07:00
Michael Comella
a65d1b57ae Bug 1168497 - Change scrollbar fade to be time-based (250ms). r?snorp
This should hopefully improve power consumption and make us act closer to the
system scrollbars.
2015-06-08 12:12:43 -07:00
Margaret Leibovic
fa317068db Bug 1170843 - Show a warning when a user attempts to install an unsigned add-on. r=mfinkle 2015-06-08 14:31:48 -04:00
Sebastian Kaspari
b5033c860d Bug 1158295 - Dynamically determine space between search engines in search engine bar. r=mcomella 2015-06-04 18:13:07 -07:00
Xidorn Quan
e02af14d81 Bug 1161802 part 2 - Split nsGlobalWindow::SetFullScreenInternal into two parts, one part before the window resizing, the other after. r=smaug,dao,margaret
This patch moves the "fullscreen" event from the original place to the
second part, which indicates two other changes:

1. When the event is triggered, the value of fullScreen would have been
toggled to the new value, which is different from before. The changes in
browser/../browser-fullScreen.js and mobile/../browser.js are for this.

2. This event is no longer preventDefault-able, since it is triggered
after the fullscreen change. This leads to the removal of the test and
the only place which calls preventDefault on that event. That place is
a workaround for bug 1079222. To address that problem, this patch fixes
the intrinsic issue via stoping handling the fullscreen change once it
finds we failed to change the state of the widget.
2015-06-10 23:13:12 +12:00
Sebastian Kaspari
4073074eb6 Bug 1170824 - Hide search engine bar if no non-primary search engine is available. r=mcomella 2015-06-02 17:19:58 -07:00