Opened 13 years ago
Closed 10 years ago
#5166 closed bug (cantfix)
Dialog: iFrame being loaded 3 times in Firefox
Reported by: | bitwalker | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.10.0 |
Component: | ui.dialog | Version: | 1.7.2 |
Keywords: | firefox iframe | Cc: | |
Blocked by: | Blocking: |
Description
When using an iFrame in the div of a dialog, the iFrame is being requested 3 times (instead of once), when the dialog is being displayed. Reproducible in Firefox 3.5 and 3.6. Doesn't happen with Safari.
These multiple requests can have a major impact depending on the page which is being called.
To test, disable all browser caching (use about:config, search for cache) and monitor your web-server logs.
Since the documentation/demos don't include any iFrame examples I wonder if this is officially being supported at all.
Attachments (2)
Change History (16)
Changed 13 years ago by
Attachment: | modaliframe.html added |
---|
comment:2 Changed 13 years ago by
Component: | ui.core → ui.dialog |
---|
comment:3 Changed 13 years ago by
Milestone: | TBD → 1.8 |
---|
comment:4 Changed 13 years ago by
I think,
- #4534 solves a similar problem, but does not solve this problem.
- This problem is like #5575.
- It's a problem, but it's not a bug of the dialog.
There is no workaround in this component.
I think you counted,
- when dialog _create
- Appending uiDialogContent to uiDialog.
- Appending uiDialog to document body.
- when dialog destroy
- Appending uiDialogContent to document body.
I think it may be a workaround (outside this component):
- In the html source, set the src of the iframe to 'about:blank' or 'javascript:false'.
- Create dialog with {autoOpen:false}.
- Set the src of iframe.
- Open the dialog.
- Before desroying, Set the src to blank.
- 'about:blank' may have a problem with 'https:'.
- I have heard someone says 'javascript:' is slower than 'about:blank'.
comment:5 Changed 13 years ago by
I made a mistake.
I should have written like this:
- Appending uiDialogContent to uiDialog when dialog _create.
- Appending uiDialog to document body when dialog open.
- Appending uiDialogContent to document body when dialog destroy.
When {autoOpen:true}, 'dialog open' is called from 'dialog _create'.
comment:7 Changed 11 years ago by
I still have the same problem, but in my situation the iframe reload 2 times when I open it and 2 times when I close it. With this solution:
In the html source, set the src of the iframe to 'about:blank' or 'javascript:false'. Create dialog with {autoOpen:false}. Set the src of iframe. Open the dialog. Before desroying, Set the src to blank.
... I get rid of the 2 reloads during the close event, but still the iframe reload two times when I open the dialog, and only if I use an effect on the option "show".
comment:8 Changed 10 years ago by
Milestone: | 1.9.0 → 1.10.0 |
---|
comment:9 Changed 10 years ago by
Summary: | iFrame in dialog is being loaded 3 times in Firefox 3.x → Dialog: iFrame being loaded 3 times in Firefox 3.x |
---|
comment:11 Changed 10 years ago by
Status: | new → open |
---|
comment:12 Changed 10 years ago by
Reproducible in latest Firefox. I tend to close this as wontfix/cantfix and extend the documentation to say that iframes inside dialogs cause trouble.
comment:13 Changed 10 years ago by
Summary: | Dialog: iFrame being loaded 3 times in Firefox 3.x → Dialog: iFrame being loaded 3 times in Firefox |
---|
comment:14 Changed 10 years ago by
Resolution: | → cantfix |
---|---|
Status: | open → closed |
There's nothing we can do about this. You can track the Firefox bug at https://bugzilla.mozilla.org/show_bug.cgi?id=254144
I'll ping Mozilla about this to see if we can get some traction on the bug, but seeing as how it's been open for 8 years I wouldn't expect too much.
demo dialog page with iframe