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)
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.
Comment 1•11 years ago
|
||
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.
Reporter | ||
Comment 2•11 years ago
|
||
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
Assignee | ||
Comment 3•11 years ago
|
||
(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.
Reporter | ||
Comment 4•11 years ago
|
||
I was using Gecko 28 on both sides.
Comment 5•11 years ago
|
||
I need more information here. Paul can you repro the bug Julien is reporting?
Assignee | ||
Comment 6•11 years ago
|
||
I believe it's a oop issue. I'll look at this.
Assignee: nobody → paul
Assignee | ||
Comment 7•11 years ago
|
||
Julien, can you still reproduce? (I fixed some oop issues last week).
Flags: needinfo?(felash)
Reporter | ||
Comment 8•11 years ago
|
||
No, it works well now !
Using "$0" still doesn't work though ;)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(felash)
Resolution: --- → WORKSFORME
Reporter | ||
Comment 9•11 years ago
|
||
I forgot the most important: thanks !
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•