Opened 8 years ago

Closed 3 years ago

#14255 closed defect (patchwelcome)

Dojox: dojox.layout.ContentPane loads iframes twice

Reported by: curamuser Owned by:
Priority: high Milestone: 1.13
Component: DojoX Layout Version: 1.7.0
Keywords: dojox ContentPane iframe IE9 Cc:
Blocked By: Blocking:

Description

Browser: Internet Explorer Version: 9.0.8112.164.21 Update Versions: 9.0.3 OS and OS Version: Windows XP SP3

Steps to re-produce:

  1. Open IE9 and ensure Developer Tools are open and capturing network traffic is enabled (this is required to illustrate the issue)
  2. Load the attached file, "dojox-contentpane-test.html" in IE9
  3. Click the "Add Tab" button. This results in a new tab being added to the tab container with content from an iframe.
  4. In developers tools note the following problems:
    • In the Network panel the iframe source has been requested twice
    • This in turn leads to a Javascript error: SCRIPT5009: 'Array' is undefined

Analysis to date: To the end user nothing out of the ordinary has occurred (apart from possibly a slowdown in performance).

The initial theory was that it was an IE9 specific issue with parsing or creating iframe elements dynamically and adding them to the DOM. However, the two "Create iframe" buttons illustrate iframes being created and both work as expected with the iframe src only being requested once.

Switching IE9 back into IE8 compatibility mode "fixes" the issue and the iframe is only loaded once. (fyi, IE10 platform preview exhibits the same problem as IE9)

The Javascript error is obviously not the root issue, it is only used to help illustrate the page loading twice. (I guess the first request is interrupted and leaves the Javascript engine in a enexpected state where it doesn't even recognise objects such as "Array")

Based on this we believe this to be a bug in the Dojox ContentPane or one if it's associated parsing classes. We will continue to debug the issue and post more information when available.

Attachments (3)

dojox-contentpane-test.html (3.0 KB) - added by curamuser 8 years ago.
sample-tab-content.html (277 bytes) - added by curamuser 8 years ago.
sample-iframe-content.html (375 bytes) - added by curamuser 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by curamuser

Attachment: dojox-contentpane-test.html added

Changed 8 years ago by curamuser

Attachment: sample-tab-content.html added

Changed 8 years ago by curamuser

Attachment: sample-iframe-content.html added

comment:1 Changed 8 years ago by bill

Milestone: tbd

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 4+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.