Skip to content

Instantly share code, notes, and snippets.

// This works
frame.addEventListener("load", event => {
// handler
}, true);
// But this doesn't, why?
const { when } = require("sdk/event/utils");
when("load", frame).then(event => {
// handler
});
@janodvarko
janodvarko / gist:4cd1b45acc3789fb8c11
Created May 14, 2015 15:26
Can't run karma tests
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'karma-tests' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prekarma-tests', 'karma-tests', 'postkarma-tests' ]
5 info prekarma-tests [email protected]
6 info karma-tests [email protected]
diff --git a/devtools/client/netmonitor/src/assets/styles/search.css b/devtools/client/netmonitor/src/assets/styles/search.css
--- a/devtools/client/netmonitor/src/assets/styles/search.css
+++ b/devtools/client/netmonitor/src/assets/styles/search.css
@@ -1,29 +1,36 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+.search-panel .treeTable {
+ width: 100%;
Exception { name: "NS_ERROR_FAILURE", message: "Failed to open input source 'file:///'", result: 2147500037, filename: "resource://devtools/shared/DevToolsUtils.js", lineNumber: 678, columnNumber: 0, data: XPCWrappedNative_NoHelper, stack: "mainThreadFetch/<@resource://devtools/shared/DevToolsUtils.js:678:15\nmainThreadFetch@resource://devtools/shared/DevToolsUtils.js:530:10\n_fetchURLContents@resource://devtools/server/actors/utils/TabSources.js:580:22\nurlContents@resource://devtools/server/actors/utils/TabSources.js:547:17\n_resurrectSource@resource://devtools/server/actors/thread.js:2033:69\naddAllSources@resource://devtools/server/actors/thread.js:1334:14\nonSources@resource://devtools/server/actors/thread.js:1340:10\nonPacket@resource://devtools/server/debugger-server-connection.js:378:58\nreceiveMessage@resource://devtools/shared/transport/child-transport.js:66:16\nMessageListener.receiveMessage*_addListener@resource://devtools/shared/transport/child-transport.js:40:14\nready@resource://devtools/shared
@janodvarko
janodvarko / gist:ad6c2f11df3e186689913394d90840ea
Created September 5, 2019 11:41
TypeError: this._debuggerSourcesSeen
TypeError: this._debuggerSourcesSeen is null: _addSource@resource://devtools/server/actors/thread.js:1998:7
addAllSources@resource://devtools/server/actors/thread.js:1324:12
_onWindowReady@resource://devtools/server/actors/thread.js:1727:12
emit@resource://devtools/shared/event-emitter.js:190:24
emit@resource://devtools/shared/event-emitter.js:271:18
_windowReady@resource://devtools/server/actors/targets/browsing-context.js:1371:10
DebuggerProgressListener.prototype.onWindowCreated<@resource://devtools/server/actors/targets/browsing-context.js:1669:23
exports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:111:22
EventListener.handleEvent*watch@resource://devtools/server/actors/targets/browsing-context.js:1590:13
_watchDocshells@resource://devtools/server/actors/targets/browsing-context.js:633:28