spawn-1007006: Rename host.exec to host.spawn

host.exec is a poor name because it spawns a new process, and we'd like
to have a host.exec function that does a JS exec, so first we rename
host.exec to host.spawn.

The slightly confusing thing is that the Firefox version of the new
host.exec is going to use Task.spawn. However this change just renames
a function. The Task.spawn thing will happen in a subsequent change.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Add host.exec and call it from Requisition.exec

This will allow the mozilla branch to use Task.spawn

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Call host.exec from converters.convert too

This will allow the mozilla branch to use Task.spawn in converters as
well as commands.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Firefox build needs Dryice 0.4.11

It has needed the filenameFilter feature for quite a while, but since
dryice 0.4.11 has been published to npm we can now depend on it from
package.json.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Allow wider set of messages in exception tests

If Task.spawn catches an exception message then it adds "Error: " onto
the front, so allow a slightly wider set of error messages when testing.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
numericid-1002280: Remove unused findCssSelector function

See https://hg.mozilla.org/mozilla-central/rev/9e37eb7fbde3
author: Brian Grinstead <bgrinstead@mozilla.com>

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Copy promise.jsm to promise.js

Updated to work on the web.
No need for mozilla review.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Switch to ES6 API

s/promise.defer/new Promise/g

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Fix text mode help

This is not strictly part of fixing bug 992309, but the changes to m-c
are trivial, so I'm including it there.

'gcli help' failed on the command line because there wasn't a good way
to generate a DOM to format the string output from the help command.

This moves the toDom function from util to host, so we can have a tweak
to use jsdom when there is no document available.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Switch to ES6 Promise API (part 2)

s/promise.resolve/Promise.resolve/g

Signed-off-by: Joe Walker <jwalker@mozilla.com>

Conflicts:
	lib/gcli/mozui/inputter.js
commandappears-983865 Opacity allows clicks, use visibility

Signed-off-by: Joe Walker <jwalker@mozilla.com>
l10n-1020222: Remove unused l10n strings

Signed-off-by: Joe Walker <jwalker@mozilla.com>