Commit Graph
350 Commits
Author SHA1 Message Date
Sebastian Kaspari 1225e88677 Bug 1235352 - Add JavaScript module for checking and requesting runtime permissions. r=nalexander 2016-01-11 12:13:41 +01:00
Mohamed Hammoud 6e3c125e27 Bug 1156252 - 'Confusing UI in Cancel Download dialog box'. r=liuche 2015-12-30 12:59:00 +01:00
Shu-yu Guo 90b93e6d5b Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Alex Johnson 1fe9e839a9 Bug 1234148 - Replaced toasts in JS modules with snackbars. r=sebastian 2015-12-21 11:52:12 -05:00
alex_johnson 00f690dd8e Bug 1216051 - Delegated NativeWindow.toast to Snackbar API. r=sebastian 2015-11-27 09:18:40 -05:00
Shih-Chiang Chien b032a3383e Bug 1222907 - report media status to MediaCastingBar. r=mfinkle. 2015-11-09 17:56:59 +08:00
Phil Ringnalda 017ebdd27f Merge m-i to m-c, a=merge 2015-11-14 13:22:10 -08:00
Carsten "Tomcat" Book 093d720bc1 Backed out changeset 09bbdb107c10 (bug 1222907) for mulet bustage 2015-11-13 15:12:30 +01:00
Sebastian Kaspari 1e8b51153e Bug 1157526 - (Part 6) Replace "Already signed in" toast with snackbar. r=mcomella 2015-11-12 18:23:32 +01:00
Shih-Chiang Chien e6bcd74c9f Bug 1222907 - report media status to MediaCastingBar. r=mfinkle. 2015-11-09 17:56:59 +08:00
Mike Hommey 04989c2d33 Bug 1223412 - Make b2gdroid reliably use the some b2g components instead of Fennec's. r=fabrice 2015-11-14 08:40:54 +09:00
Nick Alexander 9c8f334834 Bug 1216100 - Handle "fxaccounts:sync_preferences" message in FxA WebChannel. r=vivek
The only wrinkle is that we don't always have an Activity context, so
we always start a new task.  We might want to revisit that decision.
2015-10-26 16:31:19 -07:00
Sebastian Kaspari 7941d338d8 Bug 1215026 - Create API for Snackbars. r=mfinkle 2015-10-22 14:15:42 +02:00
Mark Finkle ba4ceb2d28 Bug 1194182 - Change DownloadNotifications.jsm to support newer selectOrAddTab r=margaret 2015-10-14 16:08:21 -04:00
Carsten "Tomcat" Book 036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Martin Thomson b26240d347 Bug 1155923 - Removing moz prefix from RTC interfaces, r=jesup,smaug 2015-09-28 11:25:04 -07:00
Carsten "Tomcat" Book 37b5dd7e69 Backed out 3 changesets (bug 1155923) for causing test failures in promises-call.html
Backed out changeset 321a932e01a7 (bug 1155923)
Backed out changeset 6ac38acd6ab2 (bug 1155923)
Backed out changeset 2981db92416a (bug 1155923)
2015-09-28 14:02:41 +02:00
Martin Thomson 14b13e4e90 Bug 1155923 - Removing moz prefix from RTC interfaces. r=jesup r=smaug 2015-09-24 16:31:47 -07:00
vivek 6e94caa278 Bug 1178378 - Register for web channel notications and update account profile on callback r=nalexander 2015-09-22 19:06:48 +03:00
Wes Kocher 4037741ef5 Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07:00
Nick Alexander 397d513f69 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 e89593089e 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 446b571bd1 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
https://github.com/mozilla/fxa-content-server/blob/2a78a14dafe396ce2bfb1572ad418f14cfab1355/app/scripts/models/auth_brokers/fx-desktop-v2.js#L24
via
https://github.com/mozilla/fxa-content-server/blob/2a78a14dafe396ce2bfb1572ad418f14cfab1355/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 7e1a2c9456 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
Anirudh S bc7c42f917 Bug 1197874 - Remove MatchstickApp.jsm from the build. r=mfinkle 2015-09-10 20:04:50 +05:30
Liang-Heng Chen 6953dc6d38 Bug 1193605 - Part 5: separate different discovery/registration requests by UUIDs; r=rnewman 2015-09-09 08:30:00 +02:00
Liang-Heng Chen ee2ec33080 Bug 1193605 - Part 2: process callbacks correctly. r=rnewman 2015-08-30 19:56:00 +02:00
Mark Finkle e3ddd7eb79 Bug 1078432 - Use Android print service to enable cloud printing r=sebastian 2015-08-31 17:54:23 -04:00
Mantaroh Yoshinaga a5f7be9178 Bug 1177510 - Add max/min mechanism to DateTimePicker.java in order to prevent inputting invalid Date values. r=wesj 2015-07-22 03:26:00 -04:00
Myk Melez c6486d765e Bug 1197920 - import AppsServiceChild.DOMApplicationRegistry for its getAll method; r=esawin 2015-08-27 15:22:44 -07:00
Shu-yu Guo 37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Dylan Roeh f655040584 Bug 1163937 - Added forceSave function to DownloadIntegration and ensured that downloads removed in Sanitizer do not persist. r=margaret 2015-08-11 15:33:57 -05:00
Liang-Heng Chen 796c887456 Bug 1158029 - Part 1: JavaScript module of NsdManager. r=rnewman 2015-07-14 23:23:00 -04:00
Sebastian Kaspari f496436d41 backout c084008baf54 for busting home panel add-ons (bug 1178703) 2015-07-03 17:02:59 +02:00
Margaret Leibovic f751cd108f backout 8cab4b5abe7f for busting home panel add-ons (bug 1178739) 2015-06-30 13:51:39 -07:00
Michael Comella 971c35ddfc Bug 1177774 - Fix issues in HomeProvider. r=margaret 2015-06-26 15:07:29 -07:00
Michael Comella 6c540886fb Bug 1177774 - Disable "onmessage =" warning. r=margaret
Not sure what to do here so I filed bug 1177901.
2015-06-26 14:31:54 -07:00
Michael Comella affd7af6fc Bug 1177774 - Add global variable to hide lint error. r=margaret 2015-06-26 14:23:01 -07:00
Michael Comella a7bc17dd0f Bug 1177774 - Update SharedPreferencesImpl constructor arg. r=nalexander 2015-06-26 14:06:04 -07:00
Michael Comella b522091d51 Bug 1177774 - Explicitly declare generator functions. r=margaret
Use `function* () { ... }`.
2015-06-26 13:31:09 -07:00
Michael Comella 0f37d9a97f 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
Sebastian Kaspari dc2df50cd7 Bug 1157539 - Create "speed dial" dynamic home panel layout. r=mhaigh 2015-06-16 13:53:59 +02:00
Ryan VanderMeulen 5a858b2c27 Merge fx-team to m-c. a=merge 2015-06-19 16:33:00 -04:00
Eugen Sawin 7011d743da Bug 1175605 - Do not access DOMApplicationRegistry properties before it is ready. r=myk 2015-06-18 22:09:49 +02:00
Nick Alexander 66cd35bf3b 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
Nick Alexander ed874c90a7 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
Jim Chen b30280c223 Bug 1166452 - Add DelayedInit module for Fennec startup; r=mfinkle 2015-06-10 00:25:02 -04:00
Matt King b5aae753f6 Bug 1150983 - Add "Synced Tabs" to Clear Private Data option list. r=nalexander 2015-05-04 14:08:31 +02:00