Skip to content

Commit

Permalink
Merge mozilla-central to autoland. a=merge CLOSED TREE
Browse files Browse the repository at this point in the history
  • Loading branch information
nerli1 committed May 31, 2018
2 parents de808cb + 54db525 commit 614b78a
Show file tree
Hide file tree
Showing 162 changed files with 2,885 additions and 1,294 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions caps/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1253,15 +1253,6 @@ nsScriptSecurityManager::GetDocShellCodebasePrincipal(nsIURI* aURI,
return *aPrincipal ? NS_OK : NS_ERROR_FAILURE;
}

// static
nsIPrincipal*
nsScriptSecurityManager::doGetObjectPrincipal(JSObject *aObj)
{
JSCompartment *compartment = js::GetObjectCompartment(aObj);
JSPrincipals *principals = JS_GetCompartmentPrincipals(compartment);
return nsJSPrincipals::get(principals);
}

NS_IMETHODIMP
nsScriptSecurityManager::CanCreateWrapper(JSContext *cx,
const nsIID &aIID,
Expand Down
4 changes: 0 additions & 4 deletions caps/nsScriptSecurityManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ class nsScriptSecurityManager final : public nsIScriptSecurityManager,
static bool
JSPrincipalsSubsume(JSPrincipals *first, JSPrincipals *second);

// Returns null if a principal cannot be found; generally callers
// should error out at that point.
static nsIPrincipal* doGetObjectPrincipal(JSObject* obj);

nsresult
Init();

Expand Down
4 changes: 2 additions & 2 deletions devtools/client/debugger/new/README.mozilla
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
This is the debugger.html project output.
See https://github.com/devtools-html/debugger.html

Version 60
Version 61

Comparison: https://github.com/devtools-html/debugger.html/compare/release-59...release-60
Comparison: https://github.com/devtools-html/debugger.html/compare/release-60...release-61

Packages:
- babel-plugin-transform-es2015-modules-commonjs @6.26.2
Expand Down
5 changes: 5 additions & 0 deletions devtools/client/debugger/new/dist/debugger.css
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,10 @@ menuseparator {
padding: 0 2px;
}

.objectBox-node.clickable {
cursor: pointer;
}

/******************************************************************************/

.objectBox-event,
Expand Down Expand Up @@ -2223,6 +2227,7 @@ button.open-inspector {
height: 16px;
margin-left: 0.25em;
vertical-align: middle;
cursor: pointer;
}

.objectBox-node:hover .open-inspector,
Expand Down
2 changes: 1 addition & 1 deletion devtools/client/debugger/new/dist/parser-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ function isYieldExpression(path) {
}

function isObjectShorthand(parent) {
return t.isObjectProperty(parent) && parent.key.start == parent.value.start && parent.key.loc.identifierName === parent.value.loc.identifierName;
return t.isObjectProperty(parent) && parent.value && parent.key.start == parent.value.start && parent.key.loc.identifierName === parent.value.loc.identifierName;
}

function getObjectExpressionValue(node) {
Expand Down
3 changes: 1 addition & 2 deletions devtools/client/debugger/new/dist/vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8174,7 +8174,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
// (eg. "my-module/Test") which is why they are nested in "vendored".
// The keys of the vendored object should match the module names
// !!! Should remain synchronized with .babel/transform-mc.js !!!
const vendored = {
const vendored = exports.vendored = {
classnames: _classnames2.default,
"devtools-components": devtoolsComponents,
"devtools-config": devtoolsConfig,
Expand Down Expand Up @@ -8210,7 +8210,6 @@ const vendored = {
*/

// Modules imported with destructuring
exports.vendored = vendored;

/***/ }),

Expand Down
2 changes: 1 addition & 1 deletion devtools/client/debugger/new/src/actions/pause/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function getExtra(expression, result) {
const selectedFrame = (0, _selectors.getSelectedFrame)(getState());

if (!selectedFrame) {
return;
return {};
}

const extra = await getExtraProps(getState, expression, result, expr => client.evaluateInFrame(expr, selectedFrame.id));
Expand Down
6 changes: 2 additions & 4 deletions devtools/client/debugger/new/src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.onConnect = undefined;
exports.onConnect = onConnect;

var _firefox = require("./firefox");

Expand Down Expand Up @@ -68,6 +68,4 @@ async function onConnect(connection, {
selectors,
client: commands
};
}

exports.onConnect = onConnect;
}
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class Popup extends _react.Component {
roots = roots.filter(r => r.type != NODE_TYPES.PROTOTYPE);
}

if ((0, _preview.isReactComponent)(this.getObjectProperties())) {
if (extra.react && (0, _preview.isReactComponent)(this.getObjectProperties())) {
header = this.renderReact(extra.react);
roots = roots.filter(r => ["state", "props"].includes(r.name));
}
Expand Down
Loading

0 comments on commit 614b78a

Please sign in to comment.