[Webkit-unassigned] [Bug 53601] New: Unexpected treatment of exceptions thrown in to string conversion by HTMLDocument::write and HTMLDocument::writeln methods

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 2 09:12:35 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53601

           Summary: Unexpected treatment of exceptions thrown in to string
                    conversion by HTMLDocument::write and
                    HTMLDocument::writeln methods
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: antonm at chromium.org
                CC: abarth at webkit.org


Created an attachment (id=80918)
 --> (https://bugs.webkit.org/attachment.cgi?id=80918&action=review)
Change to layout tests which revealed the problem

In the attachment you may find minor modifications to the corresponding layout tests.

The problem is Safari (and Chromium as well), silently ignore exceptions thrown while converting objects into strings (substituting such arguments with empty strings) and rethrow pending exception after real write is performed.  Firefox (4.0b9) behaves as expected: it throws exception and does no write.

Interesting case might be to throw several exceptions and see what happens.

I've got a patch for v8 bindings: https://bugs.webkit.org/show_bug.cgi?id=53596 (with "correct" expectations).

And btw, this problem should plague v8 bindings.  Maybe the situation is similar in JSC bindings.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list