Skip to content

Commit

Permalink
Initial integration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed May 15, 2012
1 parent eae2759 commit 0174b8d
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 1,947 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "extension/httpmonitor"]
path = extension/httpmonitor
url = git@github.com:firebug/httpmonitor.git
1 change: 1 addition & 0 deletions extension/chrome.manifest
@@ -1,5 +1,6 @@
content firebug content/firebug/
content firebug content/firebug/ contentaccessible=yes
content firebug-httpmonitor httpmonitor/content/httpmonitor/

# Maps resource://firebug/* to files in modules/*
# resource firebug modules/
Expand Down
21 changes: 12 additions & 9 deletions extension/content/firebug/lib/object.js
Expand Up @@ -27,17 +27,20 @@ Obj.bindFixed = function() // fn, thisObject, args => thisObject.fn(args);

Obj.extend = function(l, r)
{
if (!l || !r)
var newOb = {};
for (var i=0; i<arguments.length; i++)
{
FBTrace.sysout("object.extend; ERROR", [l, r]);
throw new Error("Obj.extend on undefined object");
}
var arg = arguments[i];

var newOb = {};
for (var n in l)
newOb[n] = l[n];
for (var n in r)
newOb[n] = r[n];
if (!arg)
{
FBTrace.sysout("object.extend; ERROR", arguments);
throw new Error("Obj.extend on undefined object");
}

for (var n in arg)
newOb[n] = arg[n];
}
return newOb;
};

Expand Down
4 changes: 4 additions & 0 deletions extension/content/firebug/main.js
Expand Up @@ -54,6 +54,10 @@ paths["firebug/firefox/window"] = "firebug/chrome/window";
paths["firebug/firefox/firefox"] = "firebug/chrome/firefox";
paths["firebug/net/httpLib"] = "firebug/lib/http";

// HTTP Monitor
paths["httpmonitor/lib/trace"] = "firebug/lib/trace";
paths["httpmonitor/lib/locale"] = "firebug/lib/locale";

var originalLoad = require.load;
require.load = function(context, fullName, url)
{
Expand Down
3 changes: 2 additions & 1 deletion extension/content/firebug/moduleConfig.js
Expand Up @@ -23,7 +23,8 @@ Firebug.getModuleLoaderConfig = function(baseConfig)

baseConfig.paths = baseConfig.paths || {
"arch": baseConfig.arch,
"firebug": "chrome://firebug/content"
"firebug": "chrome://firebug/content",
"httpmonitor": "chrome://firebug-httpmonitor/content"
};

var config = {};
Expand Down

0 comments on commit 0174b8d

Please sign in to comment.