Closed
Bug 1430709
Opened 7 years ago
Closed 6 years ago
Iframe resize event is not getting fired
Categories
(Core :: Web Painting, defect, P2)
Tracking
()
RESOLVED
DUPLICATE
of bug 1295245
People
(Reporter: yogkamble9, Unassigned)
Details
Attachments
(1 file)
6.17 KB,
text/html
|
Details |
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.
Comment 1•7 years ago
|
||
Thanks for reporting this issue, Yogesh. We will triage it and have priority assigned then.
Severity: blocker → normal
Priority: P1 → --
Comment 2•7 years ago
|
||
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.
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: DOM: Events → Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•