NEW 53601
Unexpected treatment of exceptions thrown in to string conversion by HTMLDocument::write and HTMLDocument::writeln methods
https://bugs.webkit.org/show_bug.cgi?id=53601
Summary Unexpected treatment of exceptions thrown in to string conversion by HTMLDocu...
anton muhin
Reported 2011-02-02 09:12:35 PST
Created attachment 80918 [details] 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.
Attachments
Change to layout tests which revealed the problem (2.40 KB, patch)
2011-02-02 09:12 PST, anton muhin
no flags
Note You need to log in before you can comment on or make changes to this bug.