Bug Tracker

Modify

Ticket #8700 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.