Skip to content

Commit

Permalink
merge autoland to mozilla-central a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BavarianTomcat committed Jul 26, 2016
2 parents f7da359 + 8e8d024 commit 9ff0219
Show file tree
Hide file tree
Showing 96 changed files with 2,408 additions and 600 deletions.
39 changes: 18 additions & 21 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,43 +66,40 @@ tasks:
env:
# checkout-gecko uses these to check out the source; the inputs
# to `mach taskgraph decision` are all on the command line.
GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-central'
GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-unified'
GECKO_HEAD_REPOSITORY: '{{{url}}}'
GECKO_HEAD_REF: '{{revision}}'
GECKO_HEAD_REV: '{{revision}}'
# Arguments passed into `mach taskgraph decision`
# TODO use mozilla-unified for the base repository once the tc-vcs
# tar.gz archives are created or tc-vcs isn't being used.
DECISION_ARGS: >
--pushlog-id='{{pushlog_id}}'
--project='{{project}}'
--message='{{comment}}'
--owner='{{owner}}'
--level='{{level}}'
--base-repository='https://hg.mozilla.org/mozilla-central'
--head-repository='{{{url}}}'
--head-ref='{{revision}}'
--head-rev='{{revision}}'
--revision-hash='{{revision_hash}}'
cache:
level-{{level}}-{{project}}-tc-vcs-public-sources: /home/worker/.tc-vcs/
level-{{level}}-hg-shared: /home/worker/hg-shared
level-{{level}}-{{project}}-gecko-decision: /home/worker/workspace

features:
taskclusterProxy: true

# Note: This task is built server side without the context or tooling that
# exist in tree so we must hard code the version
image: 'taskcluster/decision:0.1.0'
image: 'taskcluster/decision:0.1.2'

maxRunTime: 1800

command:
- /bin/bash
- -cx
- >
mkdir -p /home/worker/artifacts &&
checkout-gecko workspace &&
cd workspace/gecko &&
ln -s /home/worker/artifacts artifacts &&
./mach taskgraph decision
--pushlog-id='{{pushlog_id}}'
--project='{{project}}'
--message='{{comment}}'
--owner='{{owner}}'
--level='{{level}}'
--base-repository='https://hg.mozilla.org/mozilla-central'
--head-repository='{{{url}}}'
--head-ref='{{revision}}'
--head-rev='{{revision}}'
--revision-hash='{{revision_hash}}'
- /home/worker/bin/run-decision

artifacts:
'public':
Expand Down
12 changes: 0 additions & 12 deletions build/autoconf/compiler-opts.m4
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,6 @@ if test "$CLANG_CXX"; then
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-unknown-warning-option -Wno-return-type-c-linkage"
fi
AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) actually is a C++ compiler])
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
_SAVE_LIBS=$LIBS
LIBS=
AC_TRY_LINK([#include <new>], [int *foo = new int;],,
AC_MSG_RESULT([no])
AC_MSG_ERROR([$CXX $CXXFLAGS $LDFLAGS failed to compile and link a simple C++ source.]))
LIBS=$_SAVE_LIBS
AC_LANG_RESTORE
AC_MSG_RESULT([yes])
if test -n "$DEVELOPER_OPTIONS"; then
MOZ_FORCE_GOLD=1
fi
Expand Down
1 change: 1 addition & 0 deletions config/external/nss/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export MOZ_DEBUG_SYMBOLS

DEFAULT_GMAKE_FLAGS =
DEFAULT_GMAKE_FLAGS += CC='$(CC)'
DEFAULT_GMAKE_FLAGS += MT='$(MT)'
DEFAULT_GMAKE_FLAGS += SOURCE_MD_DIR=$(ABS_DIST)
DEFAULT_GMAKE_FLAGS += SOURCE_MDHEADERS_DIR=$(NSPR_INCLUDE_DIR)
DEFAULT_GMAKE_FLAGS += DIST=$(ABS_DIST)
Expand Down
16 changes: 8 additions & 8 deletions config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -662,14 +662,14 @@ ifdef MSMANIFEST_TOOL
@if test -f [email protected]; then \
if test -f '$(srcdir)/[email protected]'; then \
echo 'Embedding manifest from $(srcdir)/[email protected] and [email protected]'; \
mt.exe -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' [email protected] -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' [email protected] -OUTPUTRESOURCE:$@\;1; \
else \
echo 'Embedding manifest from [email protected]'; \
mt.exe -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;1; \
fi; \
elif test -f '$(srcdir)/[email protected]'; then \
echo 'Embedding manifest from $(srcdir)/[email protected]'; \
mt.exe -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' -OUTPUTRESOURCE:$@\;1; \
fi
endif # MSVC with manifest tool
ifdef MOZ_PROFILE_GENERATE
Expand Down Expand Up @@ -697,14 +697,14 @@ ifdef MSMANIFEST_TOOL
@if test -f [email protected]; then \
if test -f '$(srcdir)/[email protected]'; then \
echo 'Embedding manifest from $(srcdir)/[email protected] and [email protected]'; \
mt.exe -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' [email protected] -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' [email protected] -OUTPUTRESOURCE:$@\;1; \
else \
echo 'Embedding manifest from [email protected]'; \
mt.exe -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;1; \
fi; \
elif test -f '$(srcdir)/[email protected]'; then \
echo 'Embedding manifest from $(srcdir)/[email protected]'; \
mt.exe -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST '$(win_srcdir)/[email protected]' -OUTPUTRESOURCE:$@\;1; \
fi
endif # MSVC with manifest tool
else
Expand Down Expand Up @@ -732,7 +732,7 @@ ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH))
$(EXPAND_LD) -nologo -out:$@ -pdb:$(LINK_PDBFILE) $< $(WIN32_EXE_LDFLAGS) $(LDFLAGS) $(MOZ_PROGRAM_LDFLAGS) $(STATIC_LIBS) $(SHARED_LIBS) $(EXTRA_LIBS) $(OS_LIBS)
ifdef MSMANIFEST_TOOL
@if test -f [email protected]; then \
mt.exe -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;1; \
$(MT) -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;1; \
rm -f [email protected]; \
fi
endif # MSVC with manifest tool
Expand Down Expand Up @@ -833,7 +833,7 @@ ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH))
ifdef MSMANIFEST_TOOL
ifdef EMBED_MANIFEST_AT
@if test -f [email protected]; then \
mt.exe -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;$(EMBED_MANIFEST_AT); \
$(MT) -NOLOGO -MANIFEST [email protected] -OUTPUTRESOURCE:$@\;$(EMBED_MANIFEST_AT); \
rm -f [email protected]; \
fi
endif # EMBED_MANIFEST_AT
Expand Down
7 changes: 6 additions & 1 deletion devtools/.eslintrc.mochitests
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
"synthesizeKeyFromKeyTag": true,
"TargetFactory": true,
"waitForTick": true,
}
},

"rules": {
// Tests can always import anything.
"mozilla/reject-some-requires": 0,
},
}
2 changes: 2 additions & 0 deletions devtools/.eslintrc.xpcshell
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
"block-scoped-var": 0,
// Allow run_test to be unused in xpcshell
"no-unused-vars": [2, { "varsIgnorePattern": "run_test" }],
// Tests can always import anything.
"mozilla/reject-some-requires": 0,
}
}
12 changes: 12 additions & 0 deletions devtools/client/inspector/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// Extend from the devtools eslintrc.
"extends": "../../.eslintrc",

"rules": {
// The inspector is being migrated to HTML and cleaned of
// chrome-privileged code, so this rule disallows requiring chrome
// code. Some files in the inspector disable this rule still. The
// goal is to enable the rule globally on all files.
"mozilla/reject-some-requires": [2, "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm)$"],
},
}
2 changes: 2 additions & 0 deletions devtools/client/inspector/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const Services = require("Services");
const promise = require("promise");
const FocusManager = Services.focus;
Expand Down
4 changes: 4 additions & 0 deletions devtools/client/inspector/computed/computed.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Cc, Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */

const ToolDefinitions = require("devtools/client/definitions").Tools;
const CssLogic = require("devtools/shared/inspector/css-logic");
Expand All @@ -20,7 +22,9 @@ const {OutputParser} = require("devtools/client/shared/output-parser");
const {PrefObserver, PREF_ORIG_SOURCES} = require("devtools/client/styleeditor/utils");
const {createChild} = require("devtools/client/inspector/shared/utils");
const {gDevTools} = require("devtools/client/framework/devtools");
/* eslint-disable mozilla/reject-some-requires */
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
/* eslint-enable mozilla/reject-some-requires */
const {getCssProperties} = require("devtools/shared/fronts/css-properties");

loader.lazyRequireGetter(this, "overlays",
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/inspector-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

const l10n = require("gcli/l10n");
loader.lazyRequireGetter(this, "gDevTools", "devtools/client/framework/devtools", true);
/* eslint-disable mozilla/reject-some-requires */
const {EyeDropper, HighlighterEnvironment} = require("devtools/server/actors/highlighters");
/* eslint-enable mozilla/reject-some-requires */
const Telemetry = require("devtools/client/shared/telemetry");

exports.items = [{
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/inspector-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Cc, Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */

var Services = require("Services");
var promise = require("promise");
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/inspector-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const promise = require("promise");
const {Task} = require("devtools/shared/task");

Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Cc, Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const {Task} = require("devtools/shared/task");
const {InplaceEditor, editableItem} =
require("devtools/client/shared/inplace-editor");
Expand Down
4 changes: 4 additions & 0 deletions devtools/client/inspector/markup/markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Cc, Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */

// Page size for pageup/pagedown
const PAGE_SIZE = 10;
Expand Down Expand Up @@ -54,7 +56,9 @@ const {KeyShortcuts} = require("devtools/client/shared/key-shortcuts");
const {template} = require("devtools/shared/gcli/templater");
const nodeConstants = require("devtools/shared/dom-node-constants");
const nodeFilterConstants = require("devtools/shared/dom-node-filter-constants");
/* eslint-disable mozilla/reject-some-requires */
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
/* eslint-enable mozilla/reject-some-requires */

loader.lazyRequireGetter(this, "CSS", "CSS");
loader.lazyGetter(this, "AutocompletePopup", () => {
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/rules/models/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const promise = require("promise");
const CssLogic = require("devtools/shared/inspector/css-logic");
const {ELEMENT_STYLE} = require("devtools/shared/specs/styles");
Expand Down
4 changes: 4 additions & 0 deletions devtools/client/inspector/rules/models/text-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Cc, Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const {escapeCSSComment} = require("devtools/shared/css-parsing-utils");
const {getCssProperties} = require("devtools/shared/fronts/css-properties");
/* eslint-disable mozilla/reject-some-requires */
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
/* eslint-enable mozilla/reject-some-requires */

XPCOMUtils.defineLazyGetter(this, "domUtils", function () {
return Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils);
Expand Down
4 changes: 4 additions & 0 deletions devtools/client/inspector/rules/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Cc, Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const promise = require("promise");
const defer = require("devtools/shared/defer");
const Services = require("Services");
/* eslint-disable mozilla/reject-some-requires */
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
/* eslint-enable mozilla/reject-some-requires */
const {Task} = require("devtools/shared/task");
const {Tools} = require("devtools/client/definitions");
const {l10n} = require("devtools/shared/inspector/css-logic");
Expand Down
4 changes: 4 additions & 0 deletions devtools/client/inspector/rules/views/rule-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
/* eslint-disable mozilla/reject-some-requires */
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
/* eslint-enable mozilla/reject-some-requires */
const {l10n} = require("devtools/shared/inspector/css-logic");
const {ELEMENT_STYLE} = require("devtools/shared/specs/styles");
const {PREF_ORIG_SOURCES} = require("devtools/client/styleeditor/utils");
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/rules/views/text-property-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const {l10n} = require("devtools/shared/inspector/css-logic");
const {getCssProperties} = require("devtools/shared/fronts/css-properties");
const {InplaceEditor, editableField} =
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/shared/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

"use strict";

/* eslint-disable mozilla/reject-some-requires */
const {Ci} = require("chrome");
/* eslint-enable mozilla/reject-some-requires */
const {parseDeclarations} = require("devtools/shared/css-parsing-utils");
const promise = require("promise");
const {getCSSLexer} = require("devtools/shared/css-lexer");
Expand Down
2 changes: 2 additions & 0 deletions devtools/client/inspector/toolsidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ var Services = require("Services");
var EventEmitter = require("devtools/shared/event-emitter");
var Telemetry = require("devtools/client/shared/telemetry");
var { Task } = require("devtools/shared/task");
/* eslint-disable mozilla/reject-some-requires */
var { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
/* eslint-enable mozilla/reject-some-requires */

/**
* This object represents replacement for ToolSidebar
Expand Down
Loading

0 comments on commit 9ff0219

Please sign in to comment.