[Webkit-unassigned] [Bug 6494] New: Crash when assigning a new function to a DOMParser object

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Jan 11 09:09:20 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6494

           Summary: Crash when assigning a new function to a DOMParser
                    object
           Product: WebKit
           Version: 412+
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: mike at silverorange.com


When I assign a new function to an instance of the DOMParser class Safari
crashes. This crash also happens on OSX 10.3 w/ Webkit 312.

To reproduce:

 var parser = new DOMParser();
 parser.loadXML = function(document_string)
 {
   return parser.parseFromString(document_string, 'text/xml');
 }

To work-around:

 var parser = new function {}
 var dom_parser = new DOMParser();
 parser.loadXML = function(document_string)
 {
   return dom_parser.parseFromString(document_string, 'text/xml');
 }

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list