Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5614 closed bug (invalid)

isObject causes security violation in AIR if DOM event handler in call stack

Reported by: jhartikainen Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.4a1
Keywords: isobject, air Cc:
Blocked by: Blocking:


The isObject function is causing a security violation in Adobe AIR 2.0, if the call to it was triggered by a DOM event like onclick:

Error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (Function constructor)

at app:/jquery.js : 339

The problem should be reproducible by creating a new AIR application and adding the following code:

window.onclick = function() { $.isObject('foo'); };

Clicking anywhere should now cause the mentioned error to appear.

Change History (2)

comment:1 Changed 13 years ago by john

Resolution: invalid
Status: newclosed

Umm, I'm not sure where isObject is coming from - it's not in jQuery.

comment:2 Changed 13 years ago by jhartikainen

See here: http://code.jquery.com/jquery-nightly.js Search for "isObject". As far as I can tell it is there

Note: See TracTickets for help on using tickets.