Closed
Bug 801476
Opened 13 years ago
Closed 13 years ago
cannot get radio by name from browser environment
Categories
(DevTools Graveyard :: Scratchpad, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: noitidart, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0
Build ID: 20121010144125
Steps to reproduce:
1) Go here: http://www.quirksmode.org/js/formex.html
2) Open scratchpad (default environment of Content)
3) Paste the following then run it:
document.forms.example.why[0].checked = true
4) You see it checks the first radio
4.5) Click on "Reset" on the html form to clear the radio selection
5) Change scratchpad environemnt to Browser
6) Change code to:
gBrowser.contentDocument.forms.example.why[0].checked = true
7) Run it and you get:
/*
Exception: gBrowser.contentDocument.forms.example is undefined
@Scratchpad:2
*/
Actual results:
/*
Exception: gBrowser.contentDocument.forms.example is undefined
@Scratchpad:2
*/
Expected results:
It should have checked the radio button.
Sorry the error is:
Exception: gBrowser.contentDocument.forms.example.why is undefined
I'm not able to reproduce the issue in Nightly 19, so I guess it's already fixed.
Could you try too?
Whiteboard: DUPEME
Thanks Loic I'll try I don't have nightly but i'll try to get it. Does it interfere with my current stable release installation?
No, you can use the same profile with the current release and Nightly. But it's better to use different profiles. In addition, Nightly is installed in a different folder.
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
You can change the target link of the Nightly shortcut in Windows as:
"C:\Program Files\Nightly\firefox.exe" -P "another_profile" -no-remote
Comment 5•13 years ago
|
||
I've tried to reproduce the issue on the latest Nightly, Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/19.0 Firefox/19.0, Build ID: 20121022030551.
I get a different exception message:
/*
Exception: gBrowser.contentDocument.forms is undefined
@Scratchpad/5:10
*/
Updated•13 years ago
|
Component: Untriaged → Developer Tools: Scratchpad
Comment 6•13 years ago
|
||
I can't reproduce it either. Manuela, did you by any chance change the active tab before running the scratchpad?
Comment 7•13 years ago
|
||
No, I didn't change the active tab before running the scratchpad.
Comment 8•13 years ago
|
||
This works for me as well, using today's Nightly.
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Oh gosh sorry I forgot to re try this im going to try later tonight
Updated•8 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•