javascript cannot access from within IFRAME to parent document javascript after IFRAME refresh

RESOLVED INCOMPLETE

Status

()

Core
DOM
RESOLVED INCOMPLETE
6 years ago
2 years ago

People

(Reporter: mod, Unassigned)

Tracking

({testcase-wanted})

10 Branch
x86_64
Windows 7
testcase-wanted
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
Build ID: 20120129021758

Steps to reproduce:

I am programming a LMS system that user SCORM objects. Using JQuery I load the SCORM HTML into the <DIV> and display it. The SCORM objects are loaded in the iframe [iframeA] within a <DIV>. 
The content of iframeA is HTML page with other iframeB. 
There are javascripts in iframeB, that looks up standard SCORM javascript functions located in iframeA. (this is common implementation of SCORM standards) 
Funtions in iframeA are used to initiallize SCORM package and display it to user, sends result back to server etc.


Actual results:

When I close the <DIV> and reopen it and resfresh the iframeA (or load different SCORM html) the javascript functions in iframeB cannot communicate with javascript functions in iframeA. Although it works perfect for the first time. 


Expected results:

it should always work fine does not matter if I refresh iframeA or load different SCORM content. it works in other browsers (tested in IE, Chrome, Opera)
I noticed this issue long time ago in other FF versions too.

Comment 1

6 years ago
Please provide a public URL or reduced test case that exhibits this issue.

Comment 2

3 years ago
mod, could you provide a testcase, please?
Component: Untriaged → DOM
Flags: needinfo?(kubica.ivan)
Keywords: testcase-wanted
Product: Firefox → Core
Considering the fact that the reporter did not provided more information on Aleksej and Tim requests, I will mark this issue as resolved - incomplete. 
If you can still reproduce this, feel free to reopen this bug and provide the requested information.

Thanks,
Cosmin.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(kubica.ivan)
Resolution: --- → INCOMPLETE

Comment 4

2 years ago
This happened to me. I got a "Unable to access attribute hide" error on the console, where "hide" is a Javascript function in the parent page. I'm not sure of the exact error message, as it now works. Reloading Firefox fixed the problem.
Hi Moses,

Could you please provide a reduced test case, where this issue is reproducible (https://goo.gl/cGyf0U)? Also, can you please test this on the latest Nightly (https://nightly.mozilla.org/) and tell me if this still reproduces for you ? When doing this please use a new fresh Firefox profile, maybe also in safe mode (https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems).

Thanks,
Cosmin.
Flags: needinfo?(moses)
Flags: needinfo?(moses)
You need to log in before you can comment on or make changes to this bug.