Commit Graph

17662 Commits

Author SHA1 Message Date
Michael Comella
2c5cf36951 Bug 1201346 - Add class comments to ShapedButton*. r=liuche 2015-09-11 13:58:08 -07:00
Michael Comella
e3199e1db5 Bug 1201346 - Make menu button have LWT on phones. r=liuche
This was not broken on tablet.

The new ShapedButtonFrameLayout class is a duplicate of ShapedButton's LWT
code. I tried an approach that extracted this code out to an external class, to
prevent code duplication and reduce the code size but due to the access rights
on the super classes, it was really messy and, imo, not worth it.
2015-09-11 13:51:17 -07:00
Chenxia Liu
b1e134e15a Bug 1206230 - Add back android:key for Manage Logins. r=mcomella 2015-09-18 13:45:56 -07:00
Chenxia Liu
acb40e152b Bug 1199859 - Add telemetry. r=mfinkle 2015-09-18 11:36:35 -07:00
Chenxia Liu
ee76e9dfcc Bug 1199859 - Use local switchboard. r=mfinkle 2015-09-16 09:43:38 -07:00
Chenxia Liu
0ac70a5384 Bug 1199859 - Add "Next" sliding. r=mfinkle 2015-09-09 17:24:18 -07:00
Chenxia Liu
a22ce6d287 Bug 1199859 - Add two A/B testing options for Firstrun. r=mfinkle 2015-09-16 17:16:56 -07:00
Chenxia Liu
da628ab1a1 Bug 1199859 - Add Import option for Firstrun. r=mfinkle 2015-04-16 14:49:40 -07:00
Nick Alexander
5297645b72 Bug 1205334 - Part 2: Show an error message in about:accounts when restricted. r=antlam,sebastian 2015-09-17 14:51:54 -04:00
Nick Alexander
f1feb634f8 Bug 1205334 - Part 1: Don't register FxA WebChannel or listen for Accounts:* messages when restricted. r=sebastian 2015-09-17 13:53:05 -04:00
Nick Alexander
a0b02c1dc0 Bug 1191067 - Add Fennec version of about:accounts. r=antlam,margaret
This is a Fennec version of about:accounts, cribbed largely from
Desktop's implementation.  This implementation serves two purposes:

One, it allows all fxa-content-server pref handling to remain in
Gecko.  Java-side consumers redirect to about:accounts?action=... and
have pref munging and parameter addition (like context=fx_fennec_v1,
etc) handled by about:accounts itself.

Two, it handles network connectivity display and error handling.  When
a request is started, we display an animated spinner.  We transition
smoothly from the spinner to the iframe display if we can, and if not
we hide any network error and offer to retry.  This is more important
in Fennec than it is on Desktop.  This approach agrees with Firefox
for iOS.

Some additional notes:

The spinner to iframe transition uses the WebChannel listener to send
LOADED messages to the appropriate XUL <browser> element.  It's worth
remembering that Fennec's Gecko is single process, so the <browser> in
question is in the same process.  None-the-less, we are close to e10s
safe.

There are four actions: signup/signin/force_reauth, and manage.  The
first three try to produce a LOGIN message.  The last uses the
fxa-content-server to manage the Account settings.  *This is not how
this is arranged on Desktop: Desktop redirects to a new tab, not
wrapped in about:accounts.*
2015-09-18 16:28:14 -04:00
Nick Alexander
1a7eedda36 Bug 1205706 - Part 2: Add entrypoint parameter to selected Firefox Account activities. r=sebastian
This list is not meant to be exhaustive.  There are many ways to get
to the Get Started activity; not all of them are interesting.  We're
just trying to capture the significant entrypoints, like firstrun and
preferences.
2015-09-17 16:22:26 -04:00
Nick Alexander
c7cd80776c Bug 1205706 - Part 1: Pass-through white-listed intent extras to about:accounts. r=sebastian
Pretty straight-forward.  It's possible that getStringExtra is not
safe in the face of malicious data; the worst we might expect is a
crash on the Java side; a large memory allocation on the JS side; or
significant URL data transfer.  The first is valuable because we'd see
abusers in crash-stats; and the second two are already possible when
opening any URL.
2015-09-17 16:21:07 -04:00
Nick Alexander
5e74edee77 Bug 1191064 - Follow-up: Always skip tab queues when opening about:accounts. r=me
This also skips the tab queue when opening other links internally,
like the FxA Terms of Service and Privacy Policy.
2015-09-17 15:52:06 -04:00
Nick Alexander
3aa8c58b90 Bug 1191064 - Follow-up: s/signin/signup/, s/settings/manage/. r=me 2015-09-17 15:02:52 -04:00
Nick Alexander
6014e14cac Bug 1204510 - Replace animated SVG spinner with non-SVG equivalent. r=ally
The spinner itself is 60px square, colored like fennec_ui_orange.

The HTML and CSS was hacked out of
https://github.com/lightningtgc/material-refresh, tree
6b1be0046d.
The original code is licensed MIT.  I pruned things we don't use,
adjusted the box model for our use, changed the spinner color, and
simplified the CSS.
2015-09-18 16:07:38 -04:00
Justin Inouye
074c814302 Bug 1196387 - Remove unneeded "reading time" code and layouts. r=sebastian 2015-08-28 01:31:00 +02:00
Sebastian Kaspari
eb1f411270 Bug 1203011 - Restricted profiles: Hide 'Remove' context menu item from Top Sites list. r=ally 2015-09-16 12:35:48 +02:00
Mark Finkle
8f2549de23 Bug 1205878 - Update UI Telemetry document r=nalexander 2015-09-17 21:11:57 -04:00
vivek
5bfb695894 Bug 1204565 - Selectively enable unit test based on build variant r=nalexander
DONTBUILD NPOTB

Project specific test filtering is automagically handled by gradle task graph
2015-09-15 00:55:49 +03:00
Nick Alexander
2db17655e9 Bug 1205418 - Add "Manage account" link to Status Activity. r=vivek
This just directs to about:accounts?action=manage, which determines
the relevant URL and displays the web content.

Nota bene: about:accounts hasn't landed yet.
2015-09-10 16:36:29 -07:00
Sebastian Kaspari
c3f3c05f31 Bug 1200665 - Restricted Profiles: Update SUMO title. r=margaret 2015-09-17 10:04:52 +02:00
Carsten "Tomcat" Book
5521f244fc Merge mozilla-central to fx-team 2015-09-17 15:02:08 +02:00
Carsten "Tomcat" Book
d61e0e3273 merge fx-team to mozilla-central a=merge 2015-09-17 14:42:06 +02:00
Richard Barnes
e062e8aebf Bug 1204616 - Control Center should show full host name (w/ subdomains) in security block. r=MattN,liuche 2015-09-16 18:01:27 -07:00
Fabrice Desré
6945c6bf02 Bug 1201184 - Enable OOP apps r=me 2015-09-16 09:24:17 -07:00
Wes Kocher
8f2936989b Merge b2ginbound to central, a=merge CLOSED TREE 2015-09-16 11:00:55 -07:00
Wes Kocher
34e9dbc511 Merge mozilla-inbound to m-c a=merge CLOSED TREE 2015-09-16 10:52:53 -07:00
Fabrice Desré
8524d4f021 Bug 1205139 - Get @mozilla.org/embedcomp/prompt-service;1 to instantiate correctly r=dhylands 2015-09-15 23:09:43 -07:00
Fabrice Desré
cce6ab38d0 Bug 1205099 - Package SettingsService r=dhylands 2015-09-15 17:39:00 -07:00
Wes Kocher
e7846b8a1b Merge m-c to b2ginbound, a=merge 2015-09-15 17:20:50 -07:00
Allison Naaktgeboren
62bd879168 Bug 1202196 Add UI Telemetry for search history items.r=mfinkle 2015-09-15 18:58:52 -07:00
Allison Naaktgeboren
e5b5818a44 Bug 1200319 - How many, which ones of which type of pills should be displayed on phones or tablets for search suggestions.r=mcomella 2015-09-15 18:58:52 -07:00
Sergej Kravcenko
ae8f452658 Bug 1186077 - Default favicon (globe) is briefly shown on about:home before updating to favicon. r=mcomella 2015-09-15 17:28:37 -07:00
Fabrice Desré
9909ecc734 Bug 1202744 - Overlapping software home buttons r=snorp 2015-09-15 11:01:03 -07:00
Carsten "Tomcat" Book
ad40d0027b merge mozilla-inbound to mozilla-central a=merge 2015-09-15 15:05:24 +02:00
Carsten "Tomcat" Book
afd0dc34b8 merge fx-team to mozilla-central a=merge 2015-09-15 14:59:25 +02:00
Sylvestre Ledru
063b45a424 Bug 1196373 - Remove useless empty line r=trivial 2015-09-16 11:45:28 +02:00
Sylvestre Ledru
07d9ab7deb Bug 1196373 - Use the globally defined version instead of using the hardcoded value r=glandium
This will fix the display the beta number in the fennec about windows/support.
2015-09-16 11:43:07 +02:00
Nick Alexander
2fedad2648 Bug 1191064 - Part 3: Handle removing Android Accounts from fxa-content-server. r=markh
This adds a new JS to Java ping-pong; exposes it via Accounts.jsm; and
uses it in response to the fxa-content-server message.
2015-09-14 17:21:19 -04:00
Nick Alexander
6086af7511 Bug 1191064 - Part 2: Handle relinking Firefox Accounts on Fennec. r=markh
The desired behaviour:

* If we have no account now, and had no account or the same account in
  the past -- no message, allow.
* If we have no account now, but had a different account in the past -- prompt.
* If we have an account, and this is the same account -- no message, allow.
* If we have an account, and this is not the same account -- toast and
  never allow.
2015-09-14 16:58:47 -04:00
Nick Alexander
2b665818ed Bug 1191064 - Part 1: Add Fennec version of FxAccountsWebChannel. r=markh
This ticket does the following things:

* register early.  If the first page that Gecko loads is
  about:accounts, the channel needs to be in place.  If we delay this,
  we can and do miss content server messages.

* listen to the following messages:

  CAN_LINK_ACCOUNT: 'fxaccounts:can_link_account'
  CHANGE_PASSWORD: 'fxaccounts:change_password'
  DELETE_ACCOUNT: 'fxaccounts:delete_account'
  LOADED: 'fxaccounts:loaded'
  LOGIN: 'fxaccounts:login'

The list of messages is from
2a78a14daf/app/scripts/models/auth_brokers/fx-desktop-v2.js (L24)
via
2a78a14daf/app/scripts/models/auth_brokers/fx-fennec-v1.js

This patch implements only LOADED, LOGIN, and CHANGE_PASSWORD.  The
messages have the following behaviour:

A LOADED message is ferried to the individual XUL <browser> element it
originated from.  In general, WebChannel is a global listener: it does
not matter where a message originates.  We want to have fine-grained
control over when an embedding <iframe> is displayed (as opposed to
loaded, in the Gecko sense of loaded).  The fxa-content-server
participates in this exchange via the LOADED message; we complete the
loop by specially handling LOADED.

A LOGIN or CHANGE_PASSWORD message either creates a new Android
Account in the Engaged state, or moves an existing Android Account to
the Engaged state.  An Android sync is not yet requested -- we'll
arrange that from the Java side.
2015-09-15 15:54:29 -04:00
Nathan Toone
4c312736eb Bug 1203800 - Allow for specifying the ANDROID_VERSION_CODE to use; r=nalexander
This patch allows you to set MOZ_APP_ANDROID_VERSION_CODE in a branding's configure.sh to specify the exact android:versionCode to use in the final (main) APK.  It does *not* modify the android:versionCode used in any other APKs.
2015-09-11 16:05:56 -06:00
Anirudh S
3a035f1436 Bug 1197874 - Remove MatchstickApp.jsm from the build. r=mfinkle 2015-09-10 20:04:50 +05:30
Eitan Isaacson
e252871c0c Bug 1203697 - Add braille navigation. r=yzen r=mfinkle 2015-09-14 23:34:30 -07:00
Prabhjyot Singh Sodhi
1641e3e31b bug 1186683 - *show* and *hide* BrowserSearch Fragment instead of creating each time to save memory. r=mcomella 2015-09-05 01:16:00 +02:00
Sebastian Kaspari
ddee26d2c6 Bug 1199177 - Restricted profiles: Reset add-on preferences if restriction is not enabled. r=margaret 2015-09-16 13:23:30 +02:00
Sebastian Kaspari
bf172ad5de Bug 1200665 - Restricted profiles: Update SUMO URL. r=margaret 2015-09-02 11:36:34 +02:00
Nick Alexander
0b3e2cfe3b Bug 1204937 - Part 4: Add "pass-through to web" versions of native account activities. r=sebastian
This always loads about:accounts with an 'action' query parameter.
This indirection allows Gecko to manage the fxa-content-server pref
independently of Java.
2015-09-01 13:18:48 -07:00
Wes Kocher
ee7ead282c Merge m-c to fx-team, a=merge 2015-09-14 17:28:21 -07:00