Commit Graph

17619 Commits

Author SHA1 Message Date
Wes Kocher
7b3f9b8da9 Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07: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
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
Nick Alexander
300fd24d79 Bug 1204937 - Part 3: Add Accounts:UpdateAccountFromJSON message. r=sebastian
This commit does a few things.  First, it fixes a typo
(s/ForResponse/ForResult/).  It's not clear how this /ever/ worked,
but it did.

Second, it adds an UpdateAccountFromJSON sibling to
CreateAccountFromJSON.  It would have been reasonable to have the
create message do double-duty and update an existing account (we have
the latitude to change the meaning since this API is not yet public)
but I generally prefer each consumer to perform the conditional state
check and to act appropriately.

Third, it generalizes the existing Accounts:Exist message to provide
some details (including email and UID) of any existing Firefox
Account.  The Accounts.exist() API /is/ public, so I introduce a new
(not yet public) API for this richer information.
2015-08-21 11:27:54 -07:00
Nick Alexander
e172582e0e Bug 1204937 - Part 2: Extract Accounts: messages to AccountsHelper. r=sebastian
There are enough Accounts: messages to separate them from BrowserApp,
and the list is only growing.

This has also the small advantage of removing some non-native event
listeners.
2015-08-20 10:03:20 -07:00
Nick Alexander
2ab0360c92 Bug 1204937 - Part 1: Redirect native account UI launches through action intent filters. r=sebastian
This patch stops referring to package/class objects to identify
Android components directly and instead launches through action intent
filters.  The intent filters are scoped to the package, but not marked
as private or as requiring a permission.  A malicious package could
inject itself into an account flow, but I don't think there's much
advantage: the only time a secret is passed between activities is when
the native sign up (CreateAccount) and sign in (SignIn) activities
link between themselves, and in this instance I didn't route through
the action intent filters.  (This is entirely native -- there's no web
analog -- so I didn't use the indirection.)
2015-09-15 14:18:46 -04:00
Nick Alexander
49c4c93026 Bug 1204937 - Pre: use native account UI in Fennec. r=me 2015-09-15 13:35:06 -04:00
Martyn Haigh
55b45bac8b Bug 1204875 - Hide Tabs Panel thumbnail height change behind nightly flag; r=mfinkle 2015-09-15 15:46:23 +01: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
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
Wes Kocher
ee7ead282c Merge m-c to fx-team, a=merge 2015-09-14 17:28:21 -07:00
Wes Kocher
156d20b418 Merge inbound to central, a=merge 2015-09-14 17:12:58 -07:00
vivek
a4ebe821fd Bug 1182193 - Part 4: Disable unit test for regular gradle build tasks r=nalexander 2015-09-12 01:08:18 +03:00
Michael Comella
4f0a973407 Bug 1202247 - Use new menu asset in action bar & remove old assets. r=liuche
I wasn't able to test this on GB because I don't have a device with a soft menu
key, but I'm pretty sure that's because they don't exist.
2015-09-10 11:46:23 -07:00
vivek
4d1fd0b359 Bug 1182193 - Part 3: Added runwith annotations for unittest with gradle r=nalexander 2015-09-04 00:50:42 +03:00
vivek
7354756606 Bug 1182193 - Part 2: Copy the tests from android-sync project. r=nalexander 2015-09-03 21:31:14 +03:00
vivek
8bcbe8a667 Bug 1182193 - Part 1: Add Gradle-based Robolectric JUnit 4 tests r=nalexander 2015-08-29 00:26:36 +03:00
Martyn Haigh
98facf267a Bug 1201181 - Add &quot;Set a Homepage&quot; item in Settings &gt; Customize &gt; Home; r=mfinkle 2015-09-14 14:36:38 +01:00
Martyn Haigh
40c5ef33c8 Bug 1195721 - Set a home page; r=mfinkle 2015-09-14 14:21:14 +01:00
Martyn Haigh
bdcd2bde21 Bug 1200619 - Implement back button to mobile tabs tray; r=mcomella 2015-09-11 15:22:46 +01:00
Justin Dolske
e5f503f473 Bug 1198525 - Fix about:rights in Nightly and Developer edition, r=mossop, r=mfinkle 2015-09-14 13:43:51 +05:30
Allison Naaktgeboren
1c831cb58e Bug 1203053 - Search icon appears blank until turning on search suggestions.r=mfinkle 2015-09-13 13:13:43 -07:00
Allison Naaktgeboren
9c6700e443 Bug 1202583 - crash in java.lang.NullPointerException: Attempt to read from field ''java.lang.String org.mozilla.gecko.home.SearchEngine.name'' on a null object reference.r=mfinkle 2015-09-13 13:13:43 -07:00
Phil Ringnalda
3cfa3e89c4 Merge m-i to m-c, a=merge 2015-09-13 11:58:18 -07:00
Mark Finkle
77fcf1cb6f Bug 1198009 - Add support to BrowserHealthRecorder for making a snapshot of active experiments in a new profile r=rnewman 2015-09-12 19:26:51 -04:00
Mark Finkle
3bd0033c78 Bug 1198009 - Add support to BrowserHealthRecorder for managing active experiment list into ProfileInformationCache r=rnewman 2015-09-12 19:26:45 -04:00
Mark Finkle
d7f1cb21c3 Bug 1198009 - Bump the ProfileInformationCache version r=rnewman 2015-09-12 19:26:39 -04:00
Mark Finkle
d294854ba0 Bug 1198009 - Add a broadcast notification to SwitchBoard after network configuration fetch r=rnewman 2015-09-12 19:26:31 -04:00
Mark Finkle
bf568143fe Bug 1198009 - Add SwitchBoard.getActiveExperiments r=rnewman 2015-09-12 19:26:14 -04:00
Phil Ringnalda
abd03bf63c Merge f-t to m-c, a=merge 2015-09-12 09:13:57 -07:00
Richard Barnes
ef0d9ed24f Bug 942515 - Show Untrusted Connection Error for SHA-1-based SSL certificates with notBefore >= 2016-01-01 r=keeler 2015-09-11 14:52:30 -04:00
Kartikaya Gupta
423b524153 Bug 1201581 - Hook up the syncFrameMetrics call to sync metrics info from the compositor to Java-land on each composite. r=rbarker 2015-09-11 21:58:16 -04:00
Kartikaya Gupta
fa52a25d8c Bug 1201529 - Prevent calls to set the resolution or displayport from browser.js when APZ is enabled. r=rbarker 2015-09-11 21:58:16 -04:00
Wes Kocher
99db0234bd Backed out 4 changesets (bug 1182665) for android reftest orange CLOSED TREE
Backed out changeset 719a4fbded10 (bug 1182665)
Backed out changeset 9559cead8d08 (bug 1182665)
Backed out changeset 4080fb4b9a7f (bug 1182665)
Backed out changeset c8549221c366 (bug 1182665)
2015-09-11 11:21:56 -07:00
Carsten "Tomcat" Book
431461d251 Merge mozilla-central to fx-team 2015-09-11 16:42:01 +02:00
Liang-Heng Chen
7a8e1ae48f Bug 1193605 - Part 5: separate different discovery/registration requests by UUIDs; r=rnewman 2015-09-09 08:30:00 +02:00
Daniel Stenberg
5bde705295 Bug 1179568 - remove dbusservice from more installation manifests. r=roc 2015-09-09 02:29:00 +02:00
Liang-Heng Chen
d8d823d62c Bug 1193605 - Part 2: process callbacks correctly. r=rnewman 2015-08-30 19:56:00 +02:00
Dylan Roeh
e025a5afc3 Bug 1193027 - Disables all downloads of file:// urls on Android. r=snorp 2015-09-08 15:41:36 -05:00
Michael Comella
c8d5bc1f70 Bug 1202870 - Set toolbar menu row height to 48dp. r=mhaigh
I tried to use the `?android:attr/...` method listed in the nearby comments but
kept receiving a "ResourceNotFound" exception. I wonder if this is related to
the way we inherit and then override the themes.
2015-09-08 16:57:38 -07:00
Martyn Haigh
8d41e437d0 Bug 1203036 - Put tab tray improvements behind nightly flag; r=mcomella
This patch reintroduced changes behind a nightly flag removed by:

    1161638: Remove the chrome at the bottom of the screen in the Tabs Tray
    1164723: Inherit from Tablet UI on Mobile UI (aka compact tabs)
    1193745: Implement the tablet tabs tray grid view on mobile

I've also done a bit of work to allow the chrome to sit at the correct Y location in landscape on mobile devices when the tabs panel is shown to account for bug 1193374 which adjusts the aspect ratio of the tabs panel thumnbnails and didn't need to be hidden behind a nightly flag. Tablets remain unaffected by this change.
2015-09-10 10:51:54 +01:00
Christoph Kerschbaumer
3f54a6097b Bug 1195162 - Move mozapps/plugins into pluginproblem (r=sicking,bsmedberg) 2015-09-14 19:08:06 -07:00
Eitan Isaacson
c5b2bc4dfb Bug 1182222 - Make Layerview support accessibility HTML navigation. r=yzen r=mfinkle 2015-09-14 10:52:43 -07:00
Kartikaya Gupta
6fe7e505bd Bug 1204508 - Remove calls to function that was removed. r=mfinkle 2015-09-14 13:08:47 -04:00
Carsten "Tomcat" Book
039287e013 Merge mozilla-central to fx-team 2015-09-09 14:10:46 +02:00
Carsten "Tomcat" Book
c7883cea3b merge mozilla-inbound to mozilla-central a=merge 2015-09-09 14:04:59 +02:00