зеркало из https://github.com/mozilla/gecko-dev.git
Bug 663778 - Misc fixes r=pbrosset
This commit is contained in:
Родитель
840ab7e623
Коммит
b675040bec
|
@ -699,7 +699,7 @@ HTMLBreadcrumbs.prototype = {
|
|||
this.selectionGuardEnd(err);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "DOMUtils", function () {
|
||||
return Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils);
|
||||
|
|
|
@ -1545,8 +1545,6 @@ MarkupContainer.prototype = {
|
|||
|
||||
// Remove event listeners
|
||||
this.elt.removeEventListener("dblclick", this._onToggle, false);
|
||||
this.elt.removeEventListener("mouseover", this._onMouseOver, false);
|
||||
this.elt.removeEventListener("mouseout", this._onMouseOut, false);
|
||||
this.elt.removeEventListener("mousedown", this._onMouseDown, false);
|
||||
this.expander.removeEventListener("click", this._onToggle, false);
|
||||
|
||||
|
|
|
@ -32,8 +32,7 @@ const CM_STYLES = [
|
|||
"chrome://browser/skin/devtools/common.css",
|
||||
"chrome://browser/content/devtools/codemirror/codemirror.css",
|
||||
"chrome://browser/content/devtools/codemirror/dialog.css",
|
||||
"chrome://browser/content/devtools/codemirror/mozilla.css",
|
||||
"chrome://browser/content/devtools/codemirror/foldgutter.css"
|
||||
"chrome://browser/content/devtools/codemirror/mozilla.css"
|
||||
];
|
||||
|
||||
const CM_SCRIPTS = [
|
||||
|
|
|
@ -135,7 +135,7 @@ RuleViewTool.prototype = {
|
|||
delete this.doc;
|
||||
delete this.inspector;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function ComputedViewTool(aInspector, aWindow, aIFrame)
|
||||
{
|
||||
|
|
|
@ -1194,7 +1194,7 @@ var WalkerActor = protocol.ActorClass({
|
|||
// make it easier.
|
||||
let filteredWalker = (node) => {
|
||||
return documentWalker(node, this.rootWin, options.whatToShow);
|
||||
}
|
||||
};
|
||||
|
||||
// Need to know the first and last child.
|
||||
let rawNode = node.rawNode;
|
||||
|
@ -1385,7 +1385,15 @@ var WalkerActor = protocol.ActorClass({
|
|||
* @param string selector
|
||||
*/
|
||||
querySelectorAll: method(function(baseNode, selector) {
|
||||
return new NodeListActor(this, baseNode.rawNode.querySelectorAll(selector));
|
||||
let nodeList = null;
|
||||
|
||||
try {
|
||||
nodeList = baseNode.rawNode.querySelectorAll(selector);
|
||||
} catch(e) {
|
||||
// Bad selector. Do nothing as the selector can come from a searchbox.
|
||||
}
|
||||
|
||||
return new NodeListActor(this, nodeList);
|
||||
}, {
|
||||
request: {
|
||||
node: Arg(0, "domnode"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче