Closed Bug 940333 Opened 11 years ago Closed 11 years ago

[Console][Remote] can't assign a remote element to a var

Categories

(DevTools :: Console, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: julienw, Assigned: paul)

References

Details

STR: * remote connect to a Firefox OS device * start an app and debug it * open the Web Console * run: var body = document.body * then: body <enter> Expected: * we see a link "[object HTMLBodyElement]" and we can click on it to inspect it * we can enter commands using "body.<property>" Actual: * we get an error: "ReferenceError: body is not defined" Additional notes: * This happens also when retrieving an object using getElementById or querySelector. * All this code works well in non remote pages * All these commands work as expected when we don't try to assign to a var I do this all the time when I try to inspect existing pages.
Julien, are you using firefox 21? did you try with newer versions? Paul, could this be a bug caused by incompatible versions of firefox desktop and the OS? It sounds to me like this is the case here.
Sorry, I've used a Nightly from today, should have mentioned that. (strangely, Bugzilla defaults to Firefox 21 for this field, even if I post the bug in Fx 27)
Version: 21 Branch → Trunk
(In reply to Mihai Sucan [:msucan] from comment #1) > Julien, are you using firefox 21? did you try with newer versions? > > Paul, could this be a bug caused by incompatible versions of firefox desktop > and the OS? Gecko 27 client side, gecko 26 server side.
I was using Gecko 28 on both sides.
I need more information here. Paul can you repro the bug Julien is reporting?
I believe it's a oop issue. I'll look at this.
Assignee: nobody → paul
Julien, can you still reproduce? (I fixed some oop issues last week).
Flags: needinfo?(felash)
No, it works well now ! Using "$0" still doesn't work though ;)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(felash)
Resolution: --- → WORKSFORME
I forgot the most important: thanks !
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.