Commit Graph

10134 Commits

Author SHA1 Message Date
Dave Townsend
88e90d7767 Bug 1245916: Add additional default globals. r=felipe
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d
2016-02-05 12:12:30 -08:00
Dave Townsend
39095f0ee1 Bug 1245916: Add additional browser window scripts to eslint globals. r=felipe
This adds more of the scripts that browser.js relies on and also makes
browser-chrome head files import the browser.js globals.

The MOZ_JSDOWNLOADS block in contentAreaUtils only seems to hide a single
function, I don't see any need to keep hiding that now we're on by default.

MozReview-Commit-ID: 5zvF3JtJrZG
2016-02-05 12:16:39 -08:00
Dave Townsend
e10f46b2fb Bug 1245916: XBL bindings should support global declarations in comments. r=miker
To properly lint XBL files we need to support things like import-globals-from
and other ESlint comment directives so we have to pass comments through to the
code blocks that ESlint parses. Unfortunately the way the XBL processor works
now is by passing a separate code block for every method/property/etc. in the
XBL and ESlint doesn't retain state across the blocks so we would have to prefix
every block with every comment. Instead this change makes us output just a
single block that roughly looks like this:

<comments>
var bindings = {
  "<binding-id>": {
    <binding-part-name>: function() { ... }
  }
}

This has some interesting bonuses. Defining the same ID twice will cause a lint
failure. Same for the same field in a binding. The line mapping is a little
harder and there are still a few lines that won't map directly back to the
original file but they should be rare cases. The only downside is that since
some bindings have the same binding declared differently for different platforms
we have to exclude those from linting for now.

MozReview-Commit-ID: CAsPt5dtf6T
2016-02-05 12:13:34 -08:00
Dave Townsend
4c45c258f1 Bug 1245916: Unify eslint global discovery rules. r=pbrosset
While working on turning on no-undef I discovered that the various rules we
have for defining globals are a little inconsistent in whether the files they
load recurse through import-globals-from directives and none of them imported
eslint globals directives.

I think we're better off putting all this global parsing code in a single place
rather than spread across multiple rules. Have one rule to turn it on for
parsed files and one function to load globals from other files and make them
share most of the code so we won't get inconsistent. If we find us needing to
turn on/off individual features we can figure out a way to do that in the
future.

This patch does that, the globals.js file does all global parsing with a shared
object that receives events from the AST, either through from an ESlint rule
or from a simple AST walker using estraverse.

MozReview-Commit-ID: 9KQZwsNNOUl
2016-02-05 11:37:50 -08:00
Nick Alexander
f0b13f4be4 Bug 1247375 - Part 1: Add TaskCluster job building Fennec with --disable-compile-environment. r=dustin
MozReview-Commit-ID: 4FDevhlYnUC
2016-02-02 18:09:44 -08:00
Nick Alexander
ba6fc4a24d Bug 1247170 - Part 2: Add "android-gradle-build-dependencies" TaskCluster job. r=dustin
MozReview-Commit-ID: I6rgyqci67J
2016-02-16 11:11:42 -08:00
Nick Alexander
8993be4716 Bug 1247170 - Part 1: Add "android-gradle-build" Docker image. r=dustin,sebastian
We can't run Docker-in-Docker, so this is a clone of
https://hub.docker.com/r/sonatype/nexus, modified to run additional
commands.  Sonatype Nexus officially supports the Oracle JDK but the
OpenJDK appears to work as well, so we use it.

This bakes a build.sh and Gradle-specific dependencies into the docker
image.  This makes sense in a future where the dependencies this
fetches are baked into the image used to build Fennec.  It makes less
sense right now, when the dependencies are uploaded to tooltool and
subsequently consumed.  It's not critical that we get this right
immediately.

The actual build.sh script runs the Gradle wrapper for a special
dependency project.  The wrapper installs Gradle itself, downloads a
large number of Gradle dependencies, and uses Jake Wharton's
https://github.com/JakeWharton/sdk-manager-plugin/ to download and
install the Android SDK.  (We could use |mach bootstrap|, but that
doesn't (yet) support non-interactive use, and I want to try to use
the SDK Manager more generally.)  These outputs are then packaged for
further use: right now, they're exposed as artifacts, but eventually
we'll upload them directly to tooltool.

MozReview-Commit-ID: 7upsk1ANuxN
2016-02-16 11:11:34 -08:00
ISHIKAWA, Chiaki
72d38a6835 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Jacek Caban
a324c89c27 Bug 1216681 - Cross compilation fixup. 2016-02-15 16:44:39 +01:00
Ryo Motozawa
1750ab8622 Bug 1244586 part 2 - Remove entry in testing/web-platform/meta/web-animations/animatable/animate.html.ini. r=birtles 2016-02-15 09:34:47 +09:00
Ryo Motozawa
6c325afca3 Bug 1244586 part 1 - Add KeyframeEffect constructor in dom/webidl/KeyframeEffect.webidl. r=smaug,birtles 2016-02-15 09:34:47 +09:00
Phil Ringnalda
e67329a593 Merge m-i to m-c, a=merge 2016-02-13 19:18:53 -08:00
Phil Ringnalda
94f0cdfe94 Merge f-t to m-c, a=merge 2016-02-13 19:14:08 -08:00
Carsten "Tomcat" Book
735277562c Backed out changeset 88735739af7a (bug 1244893) for causing failing Initial decision task for mozilla-central 2016-02-12 17:11:52 +01:00
Nick Alexander
fef4debe3d Backed out 2 changesets (bug 1247170) for decision task failures. r=bustage
On a CLOSED TREE.

Backed out changeset 2b079941a33c (bug 1247170)
Backed out changeset 123c802d928a (bug 1247170)

MozReview-Commit-ID: Bt504gHC8iP
2016-02-12 15:25:06 -08:00
Phil Ringnalda
31ae68b940 Back out ff446e81eaf5 (bug 1216681) for Linux PGO bustage
CLOSED TREE
2016-02-11 20:27:36 -08:00
Nick Alexander
bbe6836cd0 Bug 1247170 - Part 2: Add "android-gradle-build-dependencies" Taskcluster job. r=dustin
MozReview-Commit-ID: I6rgyqci67J
2016-02-09 22:04:32 -08:00
Nick Alexander
1aeb367f52 Bug 1247170 - Part 1: Add "android-gradle-build" Docker image. r=dustin,sebastian
We can't run Docker-in-Docker, so this is a clone of
https://hub.docker.com/r/sonatype/nexus, modified to run additional
commands.  Sonatype Nexus officially supports the Oracle JDK but the
OpenJDK appears to work as well, so we use it.

This bakes a build.sh and Gradle-specific dependencies into the docker
image.  This makes sense in a future where the dependencies this
fetches are baked into the image used to build Fennec.  It makes less
sense right now, when the dependencies are uploaded to tooltool and
subsequently consumed.  It's not critical that we get this right
immediately.

The actual build.sh script runs the Gradle wrapper for a special
dependency project.  The wrapper installs Gradle itself, downloads a
large number of Gradle dependencies, and uses Jake Wharton's
https://github.com/JakeWharton/sdk-manager-plugin/ to download and
install the Android SDK.  (We could use |mach bootstrap|, but that
doesn't (yet) support non-interactive use, and I want to try to use
the SDK Manager more generally.)  These outputs are then packaged for
further use: right now, they're exposed as artifacts, but eventually
we'll upload them directly to tooltool.

MozReview-Commit-ID: 7upsk1ANuxN
2016-02-12 10:06:57 -08:00
Nick Alexander
f7269cd80a Bug 1119520 - Add opt-in Gradle build mode for mobile/android. r=gps
Opt-in by adding --enable-gradle-mobile-android-builds.

Gradle dependencies (including the Android-Gradle plugin) are assumed
to be present.  Local developers will fetch them from the jcentral
repository.

Android-specific Maven dependencies are shipped as "extras" with the
Android SDK, and should be found automatically by the Android-Gradle
plugin.

MozReview-Commit-ID: 966XgddWgEu
2016-02-12 10:06:40 -08:00
Gijs Kruitbosch
7be93a5465 Bug 1244259 - wait for SafeBrowsing to have added MozEntries in initial runs of talos perf testing, r=jmaher,gcp
MozReview-Commit-ID: Dvs5RQyhfpy
2016-02-12 08:47:31 +00:00
Chris Manchester
fb36aa7132 Bug 1216681 - Add a windows version of fileid to extract a guid from windows binaries. r=jimm,ted
This patch introduces a small utility program to extract a guid from a shared library
or executable on windows to identify the correct symbol file to read in fix_stack_using_bpsyms.py.
In order for this to work correctly on windows, the library name provided by
MozDescribeCodeAddress needs to be a full path, so the LoadedImageName field
from the IMAGEHLP_MODULE64 structure is used here instead of the ModuleName
field.
2015-10-29 13:25:03 -07:00
Deepthi Venkitaramanan
7ccb50bbf7 Bug 1244328 - Merge the functionality of DOMSettableTokenList into DOMTokenList and make everything that used to refer to DOMSettableTokenList refer to DOMTokenList instead. r=bzbarsky 2016-02-11 17:50:42 -05:00
Mike Hommey
69de2419a1 Bug 1204516 - Ignore missing directories when changing ownership of cache directories in build.sh. r=dustin 2016-02-12 07:14:16 +09:00
Bill McCloskey
eb126b433d Bug 1246787 - [webext] Add schema storage.json (r=kmag) 2016-02-11 13:04:31 -08:00
James Graham
75ebf5579d Bug 1245559 - Updated expected wpt results for win7 e10s, a=testonly
MozReview-Commit-ID: 1WRnPOpNRKf
2016-02-11 19:22:54 +00:00
Dustin J. Mitchell
0738ca0242 Bug 1242979: Install Valgrind on mochitest-valgrind test nodes; r=jseward
MozReview-Commit-ID: 3uCJfWkLCuQ
2016-02-11 16:47:54 +00:00
Carsten "Tomcat" Book
3546cdbeca Backed out 18 changesets (bug 1245153) for multiple test failures
Backed out changeset 18d54b8d4ae8 (bug 1245153)
Backed out changeset 98b6d0c053c0 (bug 1245153)
Backed out changeset c29a348930a4 (bug 1245153)
Backed out changeset f79252e92acc (bug 1245153)
Backed out changeset 9f3f1c358e47 (bug 1245153)
Backed out changeset 3b9e9a027fa7 (bug 1245153)
Backed out changeset 6da8099573f3 (bug 1245153)
Backed out changeset 63a56310a1b5 (bug 1245153)
Backed out changeset 5fe42d498a2a (bug 1245153)
Backed out changeset b3be2d2f3ac1 (bug 1245153)
Backed out changeset ad5bf32d8fef (bug 1245153)
Backed out changeset 68a6dda373d2 (bug 1245153)
Backed out changeset 6ebd9fde50c0 (bug 1245153)
Backed out changeset e41a5b41859a (bug 1245153)
Backed out changeset 048d70070751 (bug 1245153)
Backed out changeset eff85dc0eaa9 (bug 1245153)
Backed out changeset dc6460e0f336 (bug 1245153)
Backed out changeset 36526a2e8b00 (bug 1245153)
2016-02-11 17:05:41 +01:00
Olivier Yiptong
9bbb8c6cfd Bug 1246695 - Fix e10s TART newtab race condition on newtab change r=mconley
MozReview-Commit-ID: KiG5KIQov1t
2016-02-02 23:10:09 -05:00
Armen Zambrano Gasparnian
2aca02b375 Bug 1244720 - Enable more green TaskCluster tier-2 jobs. r=dustin
MozReview-Commit-ID: KUtz8LbWrDE

Enable the following jobs on try and trunk trees:
* Crashtest e10s
* Jetpack
* JsReftests e10s
* Mochitest devtools-chrome
* Reftests
* Reftests e10s
* Web platform reftests e10s
* Xpcshell
2016-02-01 16:45:37 -05:00
Andrew Halberstadt
9f0720e3a3 Bug 1231784 - Fix toolkit/mozapps/update/chrome tests, r=rstrong
MozReview-Commit-ID: GdkkHzxrjAh
2016-01-27 11:36:16 -05:00
Andrew Halberstadt
12877eee6c Bug 1231784 - Install specialpowers and mochikit extensions at runtime via AddonManager.loadTemporaryAddon(), r=jgriffin
MozReview-Commit-ID: 9I56x6Vnbf7
2016-01-25 09:55:57 -05:00
Armen Zambrano Gasparnian
2d5cd8778d Bug 1247382 - Improve naming of TaskCluster Linux64 debug jobs. DONTBUILD. r=jmaher
MozReview-Commit-ID: 3QLSUofHvi5
2016-02-10 15:19:39 -05:00
Andreas Tolfsen
b8c0e39048 Bug 1245153 - Make EventUtils.js use aWindow argument for sub-calls consistently; r=jmaher
EventUtils.js previously allowed you to override the Window object
reference through passing it as an optional argument to its functions.
This change fixes certain uses of implicit globals that reside on Window.

MozReview-Commit-ID: EJT8iIs85ej
2016-02-08 13:59:40 +00:00
Andreas Tolfsen
44b57f8d09 Bug 1245153 - Lint testing/marionette/frame.js; r=automatedtester
There should be no functional changes here.

MozReview-Commit-ID: 360y6vHYuC3
2016-02-03 19:41:03 +00:00
Andreas Tolfsen
5a5bf40c1a Bug 1245153 - Rename frame-manager.js to frame.js; r=automatedtester
MozReview-Commit-ID: 3s6s2LccFac
2016-02-03 19:28:02 +00:00
Andreas Tolfsen
6fb2493b26 Bug 1245153 - Rename actions.js to action.js; r=automatedtester
MozReview-Commit-ID: 58v7aMH2deS
2016-02-03 19:25:28 +00:00
Andreas Tolfsen
e8affcb130 Bug 1245153 - Remove testing/marionette/ChromeUtils.js; r=automatedtester
This does not appear to be in use.

MozReview-Commit-ID: B4M335Lb1UM
2016-02-03 19:18:30 +00:00
Andreas Tolfsen
3aae77a4ec Bug 1245153 - Rename interactions.js to interaction.js; r=automatedtester
MozReview-Commit-ID: F51ENbkcoR2
2016-02-03 19:15:54 +00:00
Andreas Tolfsen
637941b9c0 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
MozReview-Commit-ID: KAGGXOHMvyM
2016-02-03 19:14:10 +00:00
Andreas Tolfsen
35dda9623c Bug 1245153 - Remove testing/marionette/atoms; r=automatedtester
MozReview-Commit-ID: 1aeRNnvqmcS
2016-02-03 19:00:46 +00:00
Andreas Tolfsen
687112e2a8 Bug 1245153 - Add event.js module and remove EventUtils.js and sendkeys.js from manifest; r=automatedtester
MozReview-Commit-ID: 9KqUpfp6KHG
2016-02-03 18:56:45 +00:00
Andreas Tolfsen
3c6b5f3f9e Bug 1245153 - Employ new modules throughout Marionette; r=automatedtester
This change removes almost all the remaining uses of loadSubScript and
global scope pollution.  The only remaining use is for common.js, which
is resolved by a later bug for evaluating scripts.

MozReview-Commit-ID: 96h0yLElauq
2016-02-03 18:56:02 +00:00
Andreas Tolfsen
240495431c Bug 1245153 - Convert interactions.js and elements.js to modules; r=automatedtester
To simplify the dependency chain and reduce the number of duplicate
functions in Marionette, a number of functions have been removed from
interactions.js and added to elements.js.  This makes them more easily
re-usable and works around a circular dependency issue.

MozReview-Commit-ID: TZc3VZzHqM
2016-02-03 18:54:23 +00:00
Andreas Tolfsen
cdd52c1c32 Bug 1245153 - Convert frame-manager.js to a module; r=automatedtester
MozReview-Commit-ID: HNCvHitE3Fh
2016-02-03 18:52:37 +00:00
Andreas Tolfsen
d2ef504c22 Bug 1245153 - Convert atoms.js to a module; r=automatedtester
Through some very clever hacking of the arguments to each of the atoms,
we are able to contain this in a JS module: Atoms normally extract their
arguments directly from the function scoped `arguments' variable, but
by explicitly naming `window' as the last argument in the functions'
prototype we are able to set the `window' variable used inside.

This is obviously a big hack, but it encapsulates the atoms and we are
moving away from atoms in the long term.

MozReview-Commit-ID: KGO77fjRN2d
2016-02-03 18:50:17 +00:00
Andreas Tolfsen
b2d9b68362 Bug 1245153 - Convert EventUtils.js to a module; r=automatedtester
testing/marionette/sendkeys.js has been merged into the
new testing/marionette/event.js module, together with
testing/marionette/EventUtils.js.

There is a lot of functionality still left in this module that we can
probably remove, as it is not in use by Marionette.

MozReview-Commit-ID: GrjNuK9VPjp
2016-02-03 18:47:08 +00:00
Andreas Tolfsen
50123c8439 Bug 1245153 - Wrap errors before they are passed through the IPC channel; r=automatedtester
error.wrap acts as a no-op if it is passed a prototype which is already
of the WebDriverError prototypal chain.

MozReview-Commit-ID: Gd9kUEvsgNv
2016-02-03 18:44:55 +00:00
Andreas Tolfsen
ecd87e078d Bug 1245153 - Add error.wrap to wrap Error prototypes; r=automatedtester
Generally, Error prototypes that are not based on WebDriverError must
be wrapped so that they can be serialised across the AsyncMessageChannel.

MozReview-Commit-ID: EtkpEOBhrST
2016-02-03 18:43:37 +00:00
Andreas Tolfsen
f47f12bbfb Bug 1245153 - error.isError must recognise built-in Error prototypes; r=automatedtester
Due to a previous programming error, error.isError only recognised
the base Error prototype.  It must also test for the other built-in
prototypes, such as TypeError et al.

MozReview-Commit-ID: HLkiOAg0Jl1
2016-02-03 18:41:37 +00:00
Joel Maher
edf0d95304 Bug 1246174 - fix tp5o responsiveness calculation for reporting to perfherder. r=parkouss
MozReview-Commit-ID: 3MP9ugObja4
2016-02-10 18:32:16 -08:00