Commit Graph

284370 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
Kit Cambridge
6bc2b9b021 Bug 1206560 - Show the site favicon in XUL notifications. r=jaws
MozReview-Commit-ID: Fe3R91icOuc
2016-01-08 12:53:34 -07:00
Kit Cambridge
2f089cd43b Bug 1224785, Part 2 - Show the site favicon in OS X notifications. r=mstange
MozReview-Commit-ID: L7d00xEY6Ka
2016-01-07 13:16:54 -07:00
Kit Cambridge
0800e490a2 Bug 1224785, Part 1 - Implement alert favicons backend. r=wchen
MozReview-Commit-ID: Day8Hj8lT1f
2016-01-07 13:15:55 -07:00
Lin Clark
8140864840 Bug 1241707 - [e10s] Web Console should restore focus to proper place when closed. r=jryans,r=bgrins
MozReview-Commit-ID: JlcJPGygm5F
2016-02-16 14:37:45 -08:00
Tim Taubert
9526513fe0 Bug 529899 - Purge cookies on clean shutdown with "Keep cookies until I close Firefox" r=Yoric 2016-02-11 17:14:29 +01:00
Nick Alexander
0376933f7c Bug 1247375 - Part 3: Use Gradle to build Fennec with --disable-compile-environment. r=glandium
MozReview-Commit-ID: 3oolQKHxkBs
2016-02-12 10:07:11 -08:00
Nick Alexander
0f0d885623 Bug 1247375 - Part 2: Add build system Gradle defines for Fennec. r=glandium
Enable building with Gradle using --with-gradle.  Configure the
location of Gradle with --with-gradle=/path/to/gradle.  For local
developers, this is always the in tree Gradle wrapper, which downloads
and installs the correct Gradle version automatically.  In automation,
this will be a version of Gradle fetched from tooltool.

Configure the location to use to download Gradle Maven dependencies
(including the Android-Gradle plugin) by setting
GRADLE_MAVEN_REPOSITORY in your mozconfig. For local developers, this
defaults to the jcenter repository.  In automation, this will be an
archived directory fetched from tooltool.

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: Hrkn88Vig5H
2016-02-10 19:29:27 -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
Sebastian Kaspari
47dc283066 Bug 1233799 - Enable DownloadContentService (and exclude fonts) in Nightly. r=rnewman
MozReview-Commit-ID: G7zDhHVt67C
2016-02-16 16:43:27 +00:00
Johann Hofmann
84f9e1f012 Bug 1225743 - Implement chrome.bookmarks.search. r=mak 2015-11-24 17:40:08 +01:00
Giorgos Logiotatidis
3cf6e511f9 Bug 1248388 - Use snippets cdn. r=margaret 2016-02-15 15:28:49 +02:00
Eric Hu
3f63fa2ecf Bug 920169 - Remove references to C++ constants in Histograms.json. r=gfritzsche 2016-02-12 20:23:25 +07:00
Allasso Travesser
f91447c56c Bug 1241837 - Use proxy for browsers property in tabbrowser instead of explicit array. r=dao 2016-02-16 16:34:38 +01:00
Dão Gottwald
2738602d63 Bug 1248266 - Make recently added bookmarks keyboard-accessible by not using a vbox container. r=mak 2016-02-16 12:05:47 +01:00
Nick Fitzgerald
e7a89cd665 Bug 1247658 - Expose a method to JS for find the shortest retaining paths of some nodes in a heap snapshot; r=bz r=jimb
This commit adds the `computeShortestPaths` method to the `HeapSnapshot` webidl
interface. It implements this new method on the
`mozilla::devtools::HeapSnapshot` class.
2016-02-11 14:32:00 +01:00
Julian Descottes
af8636cb5b Bug 1243695 - ensure caret is visible in ruleview prop editor;r=miker 2016-02-12 01:43:44 +01:00
Felipe Gomes
79f0748476 Bug 1212647 - Re-enable browser_search_favicon.js for e10s, as it appears to be working fine. rs=me
MozReview-Commit-ID: EI2CizDWK4m
2016-02-16 13:28:40 -02:00
Felipe Gomes
633388e1df Bug 1150147 - Re-enable browser_SocialProvider.js for e10s, as it appears to be working fine. rs=me
MozReview-Commit-ID: DYK8RvIBJf6
2016-02-16 13:28:40 -02:00
Felipe Gomes
dbc2e0a6a0 Bug 1248494 - Fix browser_bug538331.js for e10s. r=Enn
MozReview-Commit-ID: Dw90bxM7cKm
2016-02-16 13:28:40 -02:00
Felipe Gomes
0deabace67 Bug 1094761 - Fix browser_contextSearchTabPosition.js to not hit the network. r=Florian
MozReview-Commit-ID: 9VrFlhmWaXv
2016-02-16 13:28:40 -02:00
Julian Descottes
93529db5ca Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )
2016-02-12 11:03:34 +01:00
Julian Descottes
9018e8aff9 Bug 1224877 - fix animation_timeline_pause_button intermittent;r=pbro 2016-02-15 00:42:56 +01:00
Alexandre Poirot
72fa192d0f Bug 1241050 - Ensure reloading the developer toolbar when using the reload addon. r=jwalker 2016-02-16 07:23:57 -08:00
Alexandre Poirot
8f44f793ba Bug 1241050 - Cleanup developer-toolbar imports. r=jwalker 2016-02-16 07:23:57 -08:00
Alexandre Poirot
a90f5aa0f6 Bug 1241050 - Convert DeveloperToolbar.jsm to commonjs module. r=jwalker 2016-02-16 07:23:56 -08:00
Alexandre Poirot
fd9706deb7 Bug 1247270 - Ensure reloading every devtools-related documents when hitting the reload shortcut. r=jryans 2016-02-16 07:23:56 -08:00
Alexandre Poirot
8a932b7f32 Bug 1246692 - Test that the browser toolbox has a working console. r=jryans 2016-02-16 07:23:56 -08:00
J. Ryan Stinnett
22ea36f7f8 Backout f5bd25c789b6 "Bug 1245121 - Enable JSON Viewer on RELEASE_BUILD" for Talos regressions. 2016-02-16 09:15:06 -06:00
Marco Bonardo
ea9a208337 Bug 1243779 - Remove uriIsPrefix option from nsINavHistoryQuery.r=adw
MozReview-Commit-ID: CM2Jm6iApct
2016-02-10 17:16:23 +01:00
Carsten "Tomcat" Book
c0a8e566e1 merge mozilla-inbound to mozilla-central a=merge 2016-02-16 11:51:26 +01:00
Carsten "Tomcat" Book
c18a598021 Backed out changeset decfe1d8c927 (bug 1242774) for causing leaks 2016-02-16 08:34:14 +01:00
Mark Hammond
a8fbbb90f5 Backout revision 4f941cddcf34 (bug 1243594) for xpcshell failures. 2016-02-16 14:56:43 +11:00
Mark Hammond
8cdeb950fb Backed out changeset 5688da9024b6 (bug 1243594) for xpcshell test failures. 2016-02-16 14:55:42 +11:00
Mark Hammond
8820963de8 Bug 1243594 (part 2) - have rest.js automatically encode the request body as utf-8. r=gfritzsche 2016-02-16 12:44:49 +11:00
Mark Hammond
7e79382fa7 Bug 1243594 (part 1) - remove misleading references to utf8 in Credentials.jsm. r=rfkelly 2016-02-16 12:44:49 +11:00
Mark Hammond
9286569919 Bug 1236372 - increase the size of the synced tabs panel so localized content is more likely to fit. r=Gijs 2016-02-16 12:31:14 +11:00
Mark Hammond
1fd20e1515 Bug 1247114 - do a one-off move of the synced-tabs button to the panel if Sync is initialized. r=Gijs 2016-02-16 12:22:19 +11:00
Aidin Gharibnavaz
ea7185b2c6 Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn
2016-02-12 19:10:07 +03:30
Timothy Nikkel
c815fb7027 Bug 1242093 - Fix assertion in Downscaler::ClearRow. r=njn
The starting column can be the last column, and we handle that correctly.

Also split function into ClearRow and ClearRestOfRow.
2016-02-16 08:04:57 +01:00
Alastor Wu
dc627d5a12 Bug 1242774 - add crash test. r=jwwang. 2016-02-14 19:24:00 +01: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
Byron Campen [:bwc]
5dbe821fae Bug 1247656: Make sure that remote reoffer does not change the media type of an m-line. r=drno
MozReview-Commit-ID: DFXgLuSW6nM
2016-02-11 13:00:58 -06:00
Honza Bambas
981380960d Bug 1247432 - Don't do any unnecessary I/O in cache2 after shutdown, r=michal 2016-02-12 09:36:00 +01:00
Nick Fitzgerald
9343a12d2b Bug 1247299 - Force SavedFrame columns to be 0 in JS_MORE_DETERMINISTIC builds; r=sfink
The fuzzers' differential testing would like to test the asm.js vs non-asm.js
code which may or may not involve SavedFrame stacks, but asm.js doesn't ever
record columns so any test case with a SavedFrame stack will fail. To enable the
fuzzers to get deeper into the system, rather than failing early because of
SavedFrame stacks, we force SavedFrame columns to 0 in the deterministic builds
that the fuzzers use.
2016-02-12 07:41:00 +01:00