###Problem
jQuery and other libraries often use a poor man's bind:
// jQuery's proxy method.
let outer = {
fn: {
proxy: function(fn) {
return function() {
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>test</string> | |
</array> | |
<key>name</key> | |
<string>Mozilla Test Output</string> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>zzz</string> | |
</array> | |
<key>name</key> |
diff --git a/toolkit/devtools/server/actors/childtab.js b/toolkit/devtools/server/actors/childtab.js | |
--- a/toolkit/devtools/server/actors/childtab.js | |
+++ b/toolkit/devtools/server/actors/childtab.js | |
@@ -24,16 +24,18 @@ let { TabActor } = require("devtools/ser | |
*/ | |
function ContentActor(connection, chromeGlobal) | |
{ | |
this._chromeGlobal = chromeGlobal; | |
TabActor.call(this, connection, chromeGlobal); | |
this.traits.reconfigure = false; |
# HG changeset patch | |
# Parent d92174bd091849c9256d8e5841fd3e19e3e22aad | |
# User Michael Ratcliffe <[email protected]> | |
# Date 1415801786 0 | |
Bug 1091796 - Add a telemetry probe to track dark theme usage r=pbrosset,bgrins,me | |
diff --git a/browser/base/content/browser-devedition.js b/browser/base/content/browser-devedition.js | |
--- a/browser/base/content/browser-devedition.js | |
+++ b/browser/base/content/browser-devedition.js |
[53015] ###!!! ABORT: file /Users/mratcliffe/Desktop/fx-team/ipc/chromium/src/base/histogram.cc, line 732 | |
#01: (anonymous namespace)::JSHistogram_Add(JSContext*, unsigned int, JS::Value*) (Telemetry.cpp:1205, in XUL) | |
#02: js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) (jscntxtinlines.h:232, in XUL) | |
#03: Interpret(JSContext*, js::RunState&) (Interpreter.cpp:2517, in XUL) | |
#04: js::RunScript(JSContext*, js::RunState&) (Interpreter.cpp:432, in XUL) | |
#05: js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) (Interpreter.cpp:501, in XUL) | |
#06: js::CallOrConstructBoundFunction(JSContext*, unsigned int, JS::Value*) (jsfun.cpp:1572, in XUL) | |
#07: js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) (jscntxtinlines.h:232, in XUL) | |
#08: Interpret(JSContext*, js::RunState&) (Interpreter.cpp:2517, in XUL) | |
#09: js::RunScript(JSContext*, js::RunState&) (Interpreter.cpp:432, in XUL) |
###Problem
jQuery and other libraries often use a poor man's bind:
// jQuery's proxy method.
let outer = {
fn: {
proxy: function(fn) {
return function() {
// A listener is added in rule-view.js: | |
this.valueSpan.addEventListener("click", (event) => { | |
let target = event.target; | |
if (target.nodeName === "a") { | |
event.stopPropagation(); | |
event.preventDefault(); | |
this.browserWindow.openUILinkIn(target.href, "tab"); | |
} | |
}, false); |
/** | |
* Why would "node-highlight" be emitted before showBoxModel() is called. | |
* | |
* From logging I can clearly see initInspector > "node-highlight" > showBoxModel | |
**/ | |
highlightNodeFront: function(nodeFront, options={}) { | |
let deferred = promise.defer(); | |
... | |
this.toolbox.initInspector().then(() => { |
/* Any copyright is dedicated to the Public Domain. | |
* http://creativecommons.org/publicdomain/zero/1.0/ */ | |
// Tests that disabling JavaScript for a tab works as it should. | |
const TEST_URI = "http://mochi.test:8888/browser/browser/devtools/framework/" + | |
"test/browser_toolbox_options_disable_cache.html"; | |
let doc; | |
let toolbox; |
let docShell = window.QueryInterface(Ci.nsIInterfaceRequestor) | |
.getInterface(Ci.nsIWebNavigation) | |
.QueryInterface(Ci.nsIDocShell); | |
docShell.defaultLoadFlags = Ci.nsIRequest.LOAD_BYPASS_CACHE | | |
Ci.nsIRequest.INHIBIT_CACHING; | |
window.location.reload(true); |