Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.

This commit is contained in:
Florian Quèze
2017-01-17 11:50:25 +01:00
parent 5a10cccc0f
commit 63de711857
1989 changed files with 4288 additions and 4344 deletions

View File

@@ -44,8 +44,8 @@ EventListenersView.prototype = Heritage.extend(WidgetMethods, {
this._inSourceString = " " + L10N.getStr("eventInSource") + " ";
this._inNativeCodeString = L10N.getStr("eventNative");
this.widget.addEventListener("check", this._onCheck, false);
this.widget.addEventListener("click", this._onClick, false);
this.widget.addEventListener("check", this._onCheck);
this.widget.addEventListener("click", this._onClick);
},
/**
@@ -54,8 +54,8 @@ EventListenersView.prototype = Heritage.extend(WidgetMethods, {
destroy: function () {
dumpn("Destroying the EventListenersView");
this.widget.removeEventListener("check", this._onCheck, false);
this.widget.removeEventListener("click", this._onClick, false);
this.widget.removeEventListener("check", this._onCheck);
this.widget.removeEventListener("click", this._onClick);
},
renderListeners: function (listeners) {

View File

@@ -119,18 +119,18 @@ SourcesView.prototype = Heritage.extend(WidgetMethods, {
}
this._editorContainer = document.getElementById("editor");
this._editorContainer.addEventListener("mousedown", this._onMouseDown, false);
this._editorContainer.addEventListener("mousedown", this._onMouseDown);
this.widget.addEventListener("select", this._onSourceSelect, false);
this.widget.addEventListener("select", this._onSourceSelect);
this._stopBlackBoxButton.addEventListener("click", this._onStopBlackBoxing, false);
this._cbPanel.addEventListener("popupshowing", this._onConditionalPopupShowing, false);
this._cbPanel.addEventListener("popupshown", this._onConditionalPopupShown, false);
this._cbPanel.addEventListener("popuphiding", this._onConditionalPopupHiding, false);
this._cbPanel.addEventListener("popuphidden", this._onConditionalPopupHidden, false);
this._cbTextbox.addEventListener("keypress", this._onConditionalTextboxKeyPress, false);
this._copyUrlMenuItem.addEventListener("command", this._onCopyUrlCommand, false);
this._newTabMenuItem.addEventListener("command", this._onNewTabCommand, false);
this._stopBlackBoxButton.addEventListener("click", this._onStopBlackBoxing);
this._cbPanel.addEventListener("popupshowing", this._onConditionalPopupShowing);
this._cbPanel.addEventListener("popupshown", this._onConditionalPopupShown);
this._cbPanel.addEventListener("popuphiding", this._onConditionalPopupHiding);
this._cbPanel.addEventListener("popuphidden", this._onConditionalPopupHidden);
this._cbTextbox.addEventListener("keypress", this._onConditionalTextboxKeyPress);
this._copyUrlMenuItem.addEventListener("command", this._onCopyUrlCommand);
this._newTabMenuItem.addEventListener("command", this._onNewTabCommand);
this._cbPanel.hidden = true;
this.allowFocusOnRightClick = true;
@@ -162,15 +162,15 @@ SourcesView.prototype = Heritage.extend(WidgetMethods, {
destroy: function () {
dumpn("Destroying the SourcesView");
this.widget.removeEventListener("select", this._onSourceSelect, false);
this._stopBlackBoxButton.removeEventListener("click", this._onStopBlackBoxing, false);
this._cbPanel.removeEventListener("popupshowing", this._onConditionalPopupShowing, false);
this._cbPanel.removeEventListener("popupshown", this._onConditionalPopupShown, false);
this._cbPanel.removeEventListener("popuphiding", this._onConditionalPopupHiding, false);
this._cbPanel.removeEventListener("popuphidden", this._onConditionalPopupHidden, false);
this._cbTextbox.removeEventListener("keypress", this._onConditionalTextboxKeyPress, false);
this._copyUrlMenuItem.removeEventListener("command", this._onCopyUrlCommand, false);
this._newTabMenuItem.removeEventListener("command", this._onNewTabCommand, false);
this.widget.removeEventListener("select", this._onSourceSelect);
this._stopBlackBoxButton.removeEventListener("click", this._onStopBlackBoxing);
this._cbPanel.removeEventListener("popupshowing", this._onConditionalPopupShowing);
this._cbPanel.removeEventListener("popupshown", this._onConditionalPopupShown);
this._cbPanel.removeEventListener("popuphiding", this._onConditionalPopupHiding);
this._cbPanel.removeEventListener("popuphidden", this._onConditionalPopupHidden);
this._cbTextbox.removeEventListener("keypress", this._onConditionalTextboxKeyPress);
this._copyUrlMenuItem.removeEventListener("command", this._onCopyUrlCommand);
this._newTabMenuItem.removeEventListener("command", this._onNewTabCommand);
this.DebuggerView.editor.off("popupOpen", this._onEditorContextMenuOpen, false);
},
@@ -697,12 +697,12 @@ SourcesView.prototype = Heritage.extend(WidgetMethods, {
BREAKPOINT_CONDITIONAL_POPUP_OFFSET_X,
BREAKPOINT_CONDITIONAL_POPUP_OFFSET_Y);
cbPanel.removeEventListener("popuphidden", openPopup, false);
cbPanel.removeEventListener("popuphidden", openPopup);
}
// Wait until the other cb panel is closed
if (!this._cbPanel.hidden) {
this._cbPanel.addEventListener("popuphidden", openPopup, false);
this._cbPanel.addEventListener("popuphidden", openPopup);
} else {
openPopup();
}
@@ -782,8 +782,8 @@ SourcesView.prototype = Heritage.extend(WidgetMethods, {
container.setAttribute("align", "center");
container.setAttribute("flex", "1");
container.addEventListener("click", this._onBreakpointClick, false);
checkbox.addEventListener("click", this._onBreakpointCheckboxClick, false);
container.addEventListener("click", this._onBreakpointClick);
checkbox.addEventListener("click", this._onBreakpointCheckboxClick);
container.appendChild(checkbox);
container.appendChild(bpDetailContainer);
@@ -861,7 +861,7 @@ SourcesView.prototype = Heritage.extend(WidgetMethods, {
command.id = commandId;
command.setAttribute("label", label);
command.addEventListener("command", () => this[func](location), false);
command.addEventListener("command", () => this[func](location));
menuitem.id = menuitemId;
menuitem.setAttribute("command", commandId);