Commit Graph

461900 Commits

Author SHA1 Message Date
Brian Grinstead
ad34c237e8 Bug 1246733 - Remove stylesheet references of 'devtools/skin/common.css' and instead import it in theme files;r=ntim,r=ochameau
MozReview-Commit-ID: AwS9aJ4dypm
2016-02-16 16:10:25 -08:00
Kit Cambridge
702f0beb99 Bug 1224785, Part 3 - Don't include ShowWith{Icon}Backend on Android. r=me 2016-02-16 15:52:15 -08:00
Dave Townsend
424899c3cd Bug 1245916: Turn on no-undef in toolkit/mozapps/extensions. r=rhelmer
Mostly just declaring globals that Cu.imports defines but there are some actual
bugs here that have been fixed as well as one test that just never ran because
of a hidden exception.

MozReview-Commit-ID: J6uIpYp8ANx

--HG--
extra : rebase_source : 5c19b92e4242088b6fc7a268f255fe9a795928f6
extra : source : 3e5b6df276a9a20fe7b3655656e62a09bc46aaa9
2016-02-03 22:48:48 -08:00
Dave Townsend
d450ff9b15 Bug 1245916: Import more head files for xpcshell tests. r=pbrosset
xpcshell tests used to use head_*.js files so this adds those for global
discovery.

MozReview-Commit-ID: BOsoGIpwdgu

--HG--
extra : rebase_source : ef36531641cbd353625019f8deba333cfd352891
extra : source : 70eca07367f40a9b4fe8c6e23ec0aef73bf2a962
2016-02-05 13:23:40 -08:00
Dave Townsend
0a913f73ee 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

--HG--
extra : rebase_source : a88116d149af76aa35ee0757b3b51b6f97646ebe
extra : source : 04c1740aa49904a56bd662ee0c8aed69e6f99f8b
2016-02-05 12:12:30 -08:00
Dave Townsend
688e1344df 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

--HG--
extra : rebase_source : 94daff602b51d7ad57a24872d9eba9b304cf2da9
extra : source : b554c7ce41c42f16c2279ae88fd9567da7509bff
2016-02-05 12:16:39 -08:00
Dave Townsend
9d6c28bf7c 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

--HG--
extra : rebase_source : 91a60ef0359ef53093fe197ed63dbc4e1a9f10a5
extra : source : 01675e4828b524c04a9057d68b41e9cc01ca1bb9
2016-02-05 12:13:34 -08:00
Dave Townsend
56d83fc4bd 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

--HG--
extra : rebase_source : 0f1cceca29ac398be97a55bbcd09fe58a8be1435
extra : source : 878db4caf845282f06542793bc4b5c24fa658c14
2016-02-05 11:37:50 -08:00
Kit Cambridge
6de27ffdf8 Bug 1206560 - Show the site favicon in XUL notifications. r=jaws
MozReview-Commit-ID: Fe3R91icOuc

--HG--
extra : rebase_source : 67d68ae7e17c64e674221b122c8dea59437d91eb
2016-01-08 12:53:34 -07:00
Kit Cambridge
91260d2668 Bug 1224785, Part 2 - Show the site favicon in OS X notifications. r=mstange
MozReview-Commit-ID: L7d00xEY6Ka

--HG--
extra : rebase_source : 04b35373c475fa8c212d76651f3380c316dc651c
2016-01-07 13:16:54 -07:00
Kit Cambridge
f66e1ecefa Bug 1224785, Part 1 - Implement alert favicons backend. r=wchen
MozReview-Commit-ID: Day8Hj8lT1f

--HG--
extra : rebase_source : b96c8afcfd8da93f8803accb0cda22deaa4820c5
2016-01-07 13:15:55 -07:00
Lin Clark
0365aa63c5 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
e92404de69 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
3bad7aaa2f Bug 1247375 - Part 3: Use Gradle to build Fennec with --disable-compile-environment. r=glandium
MozReview-Commit-ID: 3oolQKHxkBs

--HG--
extra : rebase_source : 60ff86da130189a332ea5e091f4cedc268ad3ec7
2016-02-12 10:07:11 -08:00
Nick Alexander
9d87131d31 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

--HG--
extra : rebase_source : c5e83590c9b28ad5a10f91ec0a3663e6d64b3b40
extra : amend_source : c3e162673238d6c6191838cc98f8301e325e01a2
2016-02-10 19:29:27 -08:00
Nick Alexander
1c95416d9a Bug 1247375 - Part 1: Add TaskCluster job building Fennec with --disable-compile-environment. r=dustin
MozReview-Commit-ID: 4FDevhlYnUC

--HG--
extra : rebase_source : 72c9458ec310432b8c8caf99f797c7dd35a070c0
extra : amend_source : 4ff552fb4c877aa2388434fa46b4bb779616a9ac
2016-02-02 18:09:44 -08:00
Nick Alexander
d94a7cca6d Bug 1247170 - Part 2: Add "android-gradle-build-dependencies" TaskCluster job. r=dustin
MozReview-Commit-ID: I6rgyqci67J

--HG--
extra : source : 2b079941a33c0b357eb84fdca065e221051a9e57
extra : amend_source : 2fb7df24b74702b469d40c1e59b1be97164898ea
2016-02-16 11:11:42 -08:00
Nick Alexander
cc045e53ff 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

--HG--
rename : testing/docker/desktop-build/Dockerfile => testing/docker/android-gradle-build/Dockerfile
extra : source : 123c802d928a9a02040cc3316988d9b59db0ea45
2016-02-16 11:11:34 -08:00
Sebastian Kaspari
62eb8088ad Bug 1233799 - Enable DownloadContentService (and exclude fonts) in Nightly. r=rnewman
MozReview-Commit-ID: G7zDhHVt67C

--HG--
extra : rebase_source : a1959c3bd5b6617ecfd0eda8d40cec49e304689b
2016-02-16 16:43:27 +00:00
Johann Hofmann
4d2291640d Bug 1225743 - Implement chrome.bookmarks.search. r=mak 2015-11-24 17:40:08 +01:00
Giorgos Logiotatidis
5631851a54 Bug 1248388 - Use snippets cdn. r=margaret
--HG--
extra : rebase_source : 67d43c3bf55fc1c291a7e5a05abba6e3e231d62b
2016-02-15 15:28:49 +02:00
Eric Hu
3a54903ab0 Bug 920169 - Remove references to C++ constants in Histograms.json. r=gfritzsche
--HG--
extra : rebase_source : e1f572818b7baac62ba719c1da344799e12a348a
2016-02-12 20:23:25 +07:00
Allasso Travesser
5c444af069 Bug 1241837 - Use proxy for browsers property in tabbrowser instead of explicit array. r=dao
--HG--
extra : rebase_source : 9643b5b626b093e0c53d8463b216ad119f0a4e2f
2016-02-16 16:34:38 +01:00
Dão Gottwald
040a3bb826 Bug 1248266 - Make recently added bookmarks keyboard-accessible by not using a vbox container. r=mak
--HG--
extra : rebase_source : 169ad437807eba57a863d582a54ea81e50323e19
2016-02-16 12:05:47 +01:00
Nick Fitzgerald
82a2a6c955 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.

--HG--
extra : rebase_source : 1772547b7093afd35918602b15cc52b8e07fc646
2016-02-11 14:32:00 +01:00
Julian Descottes
9f2c1134db Bug 1243695 - ensure caret is visible in ruleview prop editor;r=miker
--HG--
extra : rebase_source : c937e24c0814314149c5f5b0763cb4ca459660d1
2016-02-12 01:43:44 +01:00
Felipe Gomes
b80ab984b1 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
6744227342 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
45df203ee8 Bug 1248494 - Fix browser_bug538331.js for e10s. r=Enn
MozReview-Commit-ID: Dw90bxM7cKm
2016-02-16 13:28:40 -02:00
Felipe Gomes
6b01aef029 Bug 1094761 - Fix browser_contextSearchTabPosition.js to not hit the network. r=Florian
MozReview-Commit-ID: 9VrFlhmWaXv

--HG--
rename : browser/base/content/test/general/browser_contextSearchTabPosition.js => browser/components/search/test/browser_contextSearchTabPosition.js
2016-02-16 13:28:40 -02:00
Julian Descottes
8a5bb348c4 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
05d335ab9c Bug 1224877 - fix animation_timeline_pause_button intermittent;r=pbro 2016-02-15 00:42:56 +01:00
Alexandre Poirot
ef0a1dd2a1 Bug 1241050 - Ensure reloading the developer toolbar when using the reload addon. r=jwalker 2016-02-16 07:23:57 -08:00
Alexandre Poirot
1f8b8fe58c Bug 1241050 - Cleanup developer-toolbar imports. r=jwalker 2016-02-16 07:23:57 -08:00
Alexandre Poirot
03af4376f7 Bug 1241050 - Convert DeveloperToolbar.jsm to commonjs module. r=jwalker
--HG--
rename : devtools/client/shared/DeveloperToolbar.jsm => devtools/client/shared/developer-toolbar.js
2016-02-16 07:23:56 -08:00
Alexandre Poirot
b02c5b4832 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
251624825f Bug 1246692 - Test that the browser toolbox has a working console. r=jryans 2016-02-16 07:23:56 -08:00
J. Ryan Stinnett
0e31ff0cab Backout f5bd25c789b6 "Bug 1245121 - Enable JSON Viewer on RELEASE_BUILD" for Talos regressions. 2016-02-16 09:15:06 -06:00
Marco Bonardo
84f50654a3 Bug 1243779 - Remove uriIsPrefix option from nsINavHistoryQuery.r=adw
MozReview-Commit-ID: CM2Jm6iApct

--HG--
extra : rebase_source : 360606632ddf47dd0902311ad230b1f8930e462b
2016-02-10 17:16:23 +01:00
Carsten "Tomcat" Book
cef001abd6 merge mozilla-inbound to mozilla-central a=merge 2016-02-16 11:51:26 +01:00
Carsten "Tomcat" Book
588ec7de76 Backed out changeset decfe1d8c927 (bug 1242774) for causing leaks 2016-02-16 08:34:14 +01:00
Mark Hammond
885e48b697 Backout revision 4f941cddcf34 (bug 1243594) for xpcshell failures. 2016-02-16 14:56:43 +11:00
Mark Hammond
dfdc40ddd8 Backed out changeset 5688da9024b6 (bug 1243594) for xpcshell test failures. 2016-02-16 14:55:42 +11:00
Mark Hammond
2f89ed7511 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
0a34e72523 Bug 1243594 (part 1) - remove misleading references to utf8 in Credentials.jsm. r=rfkelly 2016-02-16 12:44:49 +11:00
Mark Hammond
15908503ea 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
fce9153eab 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
6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
Timothy Nikkel
fa7da9c935 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
491bfa834c Bug 1242774 - add crash test. r=jwwang. 2016-02-14 19:24:00 +01:00