Closed Bug 1769159 Opened 4 years ago Closed 3 years ago

iframe can't access parent when it hidden

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 100
defect

Tracking

()

RESOLVED INCOMPLETE

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

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Attached file iframe.html —
Attached file test.html —

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!

Flags: needinfo?(mhor273)

Close as INCOMPLETE as we aren't able to move forward with hearing back from comment 4.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Flags: needinfo?(mhor273)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: