Ticket #5334 (closed defect: invalid)

Opened 12 months ago

Last modified 5 months ago

Testing for "instanceof Array" does not work across page boundaries (iframe-to-iframe)

Reported by: guest Owned by: anonymous
Priority: normal Milestone: 1.3
Component: General Version: 0.9
Severity: normal Keywords:
Cc:

Description (last modified by ttrenka) (diff)

Because each page has a global context with its own "Array" function, if code on one page passes an array to a function on a separate page, the test "array instanceof Array" will fail. Thus, a Dojo API that behaves differently for array-valued parameters will do the wrong thing in that case.

Change History

Changed 9 months ago by dylan

  • milestone set to 1.3

Changed 5 months ago by ttrenka

  • status changed from new to closed
  • resolution set to invalid
  • description modified (diff)

Not sure what or why this ticket was filed; Internet Explorer (at least) does not allow you to pass objects by reference across window boundaries as it is.

This just sounds more like a JS+DOM gotcha, and less a real issue with anything in Dojo--since all intended actions that happen cross-window-boundary are tested before release to ensure they are working as advertised.

Closing this.

Note: See TracTickets for help on using tickets.