@@ -31,7 +31,7 @@ const OBJECT_PREVIEW_MAX_ITEMS = 10;
31
31
// on the backend (in case of remote device debugging).
32
32
const baseUrl = "resource://firequery-at-binaryage-dot-com/" ;
33
33
const { getTrace } = Cu . import ( baseUrl + "node_modules/firebug.sdk/lib/core/actor.js" ) ;
34
- const Trace = getTrace ( ) ;
34
+ const Trace = getTrace ( DebuggerServer . parentMessageManager ) ;
35
35
//const Trace = {sysout: () => {}};
36
36
37
37
/**
@@ -316,7 +316,7 @@ var FireQueryActor = ActorClass(
316
316
// Pass only a flag that says whether there are any jQuery
317
317
// data associated or not. The data itself will be fetched
318
318
// on demand (when displayed e.g. in a tooltip)
319
- form . setFormProperty ( "hasJQueryData" , ! ! data )
319
+ form . setFormProperty ( "hasJQueryData" , ! ! data ) ;
320
320
321
321
let json = data ? JSON . stringify ( data ) : "" ;
322
322
Trace . sysout ( "FireQueryActor.onNodeActorForm; " + json , arguments ) ;
@@ -370,9 +370,14 @@ function hasJQueryData(object) {
370
370
// xxxHonza: Can be removed as soon as Firefox 41 is the
371
371
// minimum required version.
372
372
let originalForm = NodeActor . prototype . form ;
373
- NodeActor . prototype . form = function ( ) {
373
+ NodeActor . prototype . form = function ( detail ) {
374
374
let form = originalForm . apply ( this , arguments ) ;
375
375
376
+ // The return value doesn't always have to be a form object.
377
+ if ( detail === "actorid" ) {
378
+ return form ;
379
+ }
380
+
376
381
// form.setFormProperty has been introduced in Bug 1036949
377
382
// (released in Firefox 41)
378
383
// The content of the following if block is taken from the
0 commit comments