Bug Tracker

Opened 8 years ago

Closed 8 years ago

#8700 closed bug (invalid)

Using conditional expression on drop down menu causes Safari to crash

Reported by: greg@… Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

If you accidentally set a variable to a dropdown element, instead of the value, and then try using a conditional expression on it, Safari crashes.

Example:

myVar = $('#myDropDown'); //Note that .val() is omitted

if (myVar == 0) {
  doSomething();
}

Obviously this is my fault (or any developer) for not being careful. But it shouldn't crash the browser. Firefox gives the following error:

Error: uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object"  nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)"  location: "JS frame :: http://localhost/npsd/common/js/jquery-1.4.2.min.js :: f :: line 132"  data: no]

Change History (1)

comment:1 Changed 8 years ago by dmethvin

Resolution: invalid
Status: newclosed

This is a browser bug and should be reported to Safari developers.

Note: See TracTickets for help on using tickets.