Closed Bug 1430709 Opened 7 years ago Closed 6 years ago

Iframe resize event is not getting fired

Categories

(Core :: Web Painting, defect, P2)

57 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1295245

People

(Reporter: yogkamble9, Unassigned)

Details

Attachments

(1 file)

Attached file HTMLPage1.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 Steps to reproduce: I created a simple iframe at runtime onload of document and added resize event listener to it. function registerResizeDetector() { let resizeDetector = document.createElement('iframe'); resizeDetector.style.width = "100%"; resizeDetector.style.height = "100%"; resizeDetector.style.position = "absolute"; resizeDetector.style.border = "0"; resizeDetector.style.visibility = "hidden"; resizeDetector.src = "about:blank"; document.body.appendChild(resizeDetector); var iframeWin = resizeDetector.contentWindow; iframeWin.addEventListener('resize', function () { alert('resize'); }); } Actual results: Resize event is not getting fired, but it works for all other browser. Expected results: Resize event should get fired.
Severity: normal → blocker
Priority: -- → P1
Version: 58 Branch → 57 Branch
Component: Untriaged → DOM: Events
Product: Firefox → Core
Thanks for reporting this issue, Yogesh. We will triage it and have priority assigned then.
Severity: blocker → normal
Priority: P1 → --
The key issue is that the resize event isn't dispatched if visibility is set to hidden.
Priority: -- → P2
Hi, This issue is very critical for us. Can you provide me estimated time to fix this issue or any possible workaround. Thanks & regards, Yogesh K.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Component: DOM: Events → Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: