Commit
…ty Change' in the watch panel
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,10 @@ define([ | |
"firebug/lib/url", | ||
"firebug/chrome/window", | ||
"firebug/lib/css", | ||
"firebug/lib/wrapper", | ||
"firebug/chrome/plugin", | ||
], | ||
function(Obj, Arr, CompilationUnit, Events, Url, Win, Css) { | ||
function(Obj, Arr, CompilationUnit, Events, Url, Win, Css, Wrapper) { | ||
|
||
// ********************************************************************************************* // | ||
// Constants | ||
|
@@ -227,7 +228,8 @@ Firebug.TabContext.prototype = | |
|
||
getCurrentGlobal: function() | ||
{ | ||
return this.stoppedGlobal || this.baseWindow || this.window; | ||
var global = this.stoppedGlobal || this.baseWindow || this.window; | ||
return Wrapper.getContentView(global); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fflorent
Member
|
||
}, | ||
|
||
destroy: function(state) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -394,7 +394,7 @@ Firebug.DOMBasePanel.prototype = Obj.extend(Panel, | |
|
||
getContextMenuItems: function(object, target) | ||
{ | ||
Trace.sysout("dom.getContextMenuItems;", object); | ||
Trace.sysout("dom.getContextMenuItems; " + object, object); | ||
This comment has been minimized.
Sorry, something went wrong.
simonlindholm
Member
|
||
|
||
var row = Dom.getAncestorByClass(target, "memberRow"); | ||
|
||
|
@@ -483,13 +483,16 @@ Firebug.DOMBasePanel.prototype = Obj.extend(Panel, | |
|
||
if (!isDomMemeber && member && member.breakable) | ||
{ | ||
var bps = this.context.dom.breakpoints; | ||
var hasBreakpoint = bps.findBreakpoint(rowObject, rowName); | ||
|
||
items.push( | ||
"-", | ||
{ | ||
label: "dom.label.breakOnPropertyChange", | ||
tooltiptext: "dom.tip.Break_On_Property_Change", | ||
type: "checkbox", | ||
checked: this.context.dom.breakpoints.findBreakpoint(rowObject, rowName), | ||
checked: hasBreakpoint, | ||
command: Obj.bindFixed(this.breakOnProperty, this, row) | ||
} | ||
); | ||
|
@@ -530,6 +533,8 @@ Firebug.DOMBasePanel.prototype = Obj.extend(Panel, | |
|
||
rebuild: function(update, scrollTop) | ||
{ | ||
Trace.sysout("domBasePanel.rebuild; " + this.selection, this.selection); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
Events.dispatch(this.fbListeners, "onBeforeDomUpdateSelection", [this]); | ||
|
||
var members = this.getMembers(this.selection, 0); | ||
|
@@ -981,6 +986,9 @@ Firebug.DOMBasePanel.prototype = Obj.extend(Panel, | |
return; | ||
|
||
// Create new or remove an existing breakpoint. | ||
// xxxHonza: This action can be executed from within the DOM side panel | ||
// in which case we need to ensure that the breakpoint column in the DOM | ||
// main panel is properly updated. | ||
var breakpoints = this.context.dom.breakpoints; | ||
var bp = breakpoints.findBreakpoint(object, name); | ||
if (bp) | ||
|
This doesn't match our current usages (e.g. DebuggerLib.getDebuggeeGlobal does Wrapper.getContentView on the return value, and that's just the first one I checked). I think we should attempt to use wrapped values everywhere except the places where we handle generic content objects. So e.g. all globals and elements should be wrapped unless otherwise mentioned.