This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Any copyright is dedicated to the Public Domain. | |
* http://creativecommons.org/publicdomain/zero/1.0/ */ | |
Components.utils.import("resource:///modules/devtools/gcli.jsm"); | |
var helloCommandSpec = { | |
name: 'hello', | |
description: 'Show a message', | |
params: [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debuggr = new Debugger(gBrowser.selectedBrowser.contentWindow); | |
debuggr.onEnterFrame = function(frame) { | |
alert(frame.callee.name + "(" + frame.arguments.join(", ") + ")"); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
TODO: | |
- zoom level menu | |
- need to find a way to re-start the update | |
- add color tools | |
- integrate better in Firefox | |
- crosshair has a 1px offset | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Any copyright is dedicated to the Public Domain. | |
* http://creativecommons.org/publicdomain/zero/1.0/ */ | |
// Tests that the break command works as it should | |
const TEST_URI = "http://example.com/browser/browser/devtools/shared/test/browser_gcli_break.html"; | |
function test() { | |
DeveloperToolbarTest.test(TEST_URI, function(browser, tab) { | |
testBreakCommands(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var s = { | |
foo: 'bar' | |
}; | |
for (prop in s) { | |
console.log(prop + '=' + s[prop]); | |
} | |
// foo=bar as expected | |
var proxy = Proxy.create({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2009-2011 Mozilla Foundation and contributors | |
* Licensed under the New BSD license. See LICENSE.txt or: | |
* http://opensource.org/licenses/BSD-3-Clause | |
*/ | |
/** | |
* Define a module along with a payload. | |
* @param moduleName Name for the payload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dirs=( \ | |
$FIREFOX_HOME/obj/browser/themes \ | |
$FIREFOX_HOME/obj/browser/devtools \ | |
$FIREFOX_HOME/obj/browser/base \ | |
$FIREFOX_HOME/obj/browser/app \ | |
) | |
cd ##### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// document is browser.xul | |
var p = document.createElementNS('p', XHTML); | |
p.foo = { hello:'world' }; | |
console.log(p.foo.hello); // world | |
document.body.appendChild(p); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/bin/python2.7 /Users/joe/Projects/mozilla/firefox/mozilla-central/config/pythonpath.py -I../../config /Users/joe/Projects/mozilla/firefox/mozilla-central/config/expandlibs_exec.py --uselist -- g++-4.2 -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fno-strict-aliasing -fpascal-strings -fno-common -fshort-wchar -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -g -O3 -fomit-frame-pointer -fPIC -o XUL nsStaticXULComponents.o nsUnicharUtils.o nsBidiUtils.o nsRDFResource.o -framework Cocoa -lobjc -framework ExceptionHandling -Wl,-executable_path,/Users/joe/Projects/mozilla/firefox/mozilla-central/obj-ff-mac-dbg/dist/bin -Wl,-dead_strip ../../toolkit/xre/libxulapp_s.a ../../staticlib/components/libnecko.a ../../staticlib/components/libuconv.a ../../staticlib/components/libi18n.a ../../staticlib/components/libchardet.a ../../staticlib/components/libjar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A combined status is the worser of the provided statuses. The statuses | |
* can be provided either as a set of arguments or a single array | |
*/ | |
combine: function() { | |
var combined = Status.VALID; | |
for (var i = 0; i < arguments; i++) { | |
var status = arguments[i]; | |
if (Array.isArray(status) { | |
status = Status.combine(status); |
NewerOlder