[Webkit-unassigned] [Bug 68978] New: message-event-constructor.html crashes and fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 28 00:09:24 PDT 2011


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

           Summary: message-event-constructor.html crashes and fails
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: haraken at chromium.org
                CC: ap at webkit.org, sam at webkit.org, abarth at webkit.org,
                    dominicc at chromium.org


Created an attachment (id=108975)
 --> (https://bugs.webkit.org/attachment.cgi?id=108975&action=review)
Failed test cases

I added message-event-constructor.html in the bug 68883, but some tests are crashing or failing. This bug is similar to the bug 68345.

- The following test cases are failing, as you can see in the attached file. The IDL type of MessageEvent.data should be 'any' (http://www.whatwg.org/specs/web-apps/current-work/#messageevent), and the IDL spec of 'any' (http://www.w3.org/TR/WebIDL/#es-any) says that the following test cases should pass.

    shouldBe("new MessageEvent('eventType', { data: test_object }).data", "test_object");
    shouldBe("new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [channel.port1, channel.port2, channel.port2] }).data", "test_object");

- When we pass a DOM object (i.e. an unserializable object) as follows, then DRT crashes. This crash happens only in DRT.

    shouldBe("new MessageEvent('eventType', { data: document }).data", "document");

The reason for these failures and crash is that MessageEvent.data is implemented just as SerializedScriptValue, and thus it cannot handle ScriptValue.

-- 
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