iframe can't access parent when it hidden
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: mhor273, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
-
first page
1-create PHP page use IIS as a server
2-this page contain a HTML document
3-in the body of this document put an button and hidden iframe by css using "display:none;" without src (src="") and id = "go_to_iframe"
4-when user click on the button put an second page link in hidden iframe using jquery ($("#go_to_iframe").attr("src",secondPageLink); ) -
second page
1-create second PHP page use IIS as a server
2-this page contain a HTML document
3-this document contain a form with action for any link like action="https://www.google.com/"
4-set a target for this form target= "_parent"
5-after load a document submit this form
Actual results:
1-because the second page was loaded in hidden iframe firefox can't apply the action of form on the parent
2-remove "display:none;" firefox will working right
3-the case appear only on firefox browser and working on (chrome & opera & edge)
Expected results:
1-firefox should access the parent of hidden iframe and apply actions on it
2-firefox should load the form action on first page not in iframe
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
I follow the same setup in comment #0, see attachments.
But I could not reproduce the issue.
Hi Mohammad, does the attached test page matches your? If not, could you provide the link or a test page that shows the issue, so we are able to reproduce it. Thank!
Comment 5•3 years ago
|
||
Close as INCOMPLETE as we aren't able to move forward with hearing back from comment 4.
Updated•2 years ago
|
Description
•