cancel
Showing results for 
Search instead for 
Did you mean: 

Firefox 31 can not get value from child iframe in parent website

Highlighted
New User

Firefox 31 can not get value from child iframe in parent website

Firefox 31 can not get value from child iframe in parent website.

In all previous Firefox versions, I could get a field value from an iframe within my own website. But now I can't.

All other browsers: Explorer, Chrome, and Opera work just fine. Firefox stopped working as of version 31.

13 REPLIES
Site Administrator

Re: Firefox 31 can not get value from child iframe in parent website

Please try Troubleshoot Firefox issues using Safe Mode Please make sure there are no add ons blocking the content

Please try to allow insecure content: To allow insecure content to be displayed in all secure pages, enter about:config in the address bar and double-click on this preference, to toggle it from true to false:

security.mixed_content.block_active_content

Last resort: I wonder if this has to do with the single origin policy. There was a new security https://blog.mozilla.org/security/201.../exciting-updates-to-certificate-verification-in-gecko/ update for certificate verification.


Please post back with your results/ or an example url for further investigation. Thank you.

Mozilla Support Contributor

Re: Firefox 31 can not get value from child iframe in parent website

Could you post a link to a page demonstrating this problem, either the actual page, or a reduced test case?

New User

Re: Firefox 31 can not get value from child iframe in parent website

Yes I have made two pages to demonstrate the problem....

1.

If you go to http://os.verticalbrowser.com/index.htm


and click on the blue "Play AutoSurf" button it will automatically rotate some links....


2.

But if you go to http://os.verticalbrowser.com/indexOLD.htm

the blue button does nothing... it no longer responds to my iframe......

(I put some browser sniffing code in the first example to switch to another page that works because it is a less complicated iframe but has less features.....)


Thanks,

New User

Re: Firefox 31 can not get value from child iframe in parent website

Yes I have made two pages to demonstrate the problem....

1.

If you go to http://os.verticalbrowser.com/index.htm


and click on the blue "Play AutoSurf" button it will automatically rotate some links....

2.

But if you go to http://os.verticalbrowser.com/indexOLD.htm

the blue button does nothing... it no longer responds to my iframe......

(I put some browser sniffing code in the first example to switch to another page that works because it is a less complicated iframe but has less features.....)


Thanks,

Mozilla Support Contributor

Re: Firefox 31 can not get value from child iframe in parent website

This is little complicated for a Sunday afternoon peek...

The script on the "Play AutoSurf" button runs doPlay(). Here is the first problem:

thetitle=surfframe.document.Auto12Surf.slotTitle.value;

Experimenting in the web console:

surfframe.document.Auto12Surf.slotTitle.value
=> TypeError: surfframe.document is undefined
surfframe.nodeName
=> "IFRAME"
surfframe.contentDocument.Auto12Surf.slotTitle.value
=> "AutoSurf Play List"

Do all browsers support contentDocument now? If not, or to minimize your code changes, you could try putting the following somewhere in your code that runs on load (i.e., global context):

if (!surfframe.document) surfframe.document = surfframe.contentDocument;

Does that fix it?

New User

Re: Firefox 31 can not get value from child iframe in parent website

changing .document to .contentDocument in the code got it to partially work with Firefox 31 (it still freezes later on) but all previous versions of Firefox don't work now...

New User

Re: Firefox 31 can not get value from child iframe in parent website

It is an iframe within a DIV....... I could access it in all previous versions of Firefox, but now it just hangs....

New User

Re: Firefox 31 can not get value from child iframe in parent website

It is an iframe within a DIV....... I could access it in all previous versions of Firefox, but now it just hangs.... I have made two pages to demonstrate the problem....

1.

If you go to http://os.verticalbrowser.com/index.htm


and click on the blue "Play AutoSurf" button it will automatically rotate some links....

2.

But if you go to http://os.verticalbrowser.com/indexOLD.htm

the blue button does nothing... it no longer responds to my iframe......

(I put some browser sniffing code in the first example to switch to another page that works because it is a less complicated iframe but has less features.....)


Thanks,

Mozilla Support Contributor

Re: Firefox 31 can not get value from child iframe in parent website

Could you test in Firefox 32 and see whether the problem continues?