[Webkit-unassigned] [Bug 85698] New: [Worker] The onerror in WorkerContext should have the same parameter with Worker

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 5 00:08:57 PDT 2012


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

           Summary: [Worker] The onerror in WorkerContext should have the
                    same parameter with Worker
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: li.yin at intel.com


The Worker can register the onerror event handler like this:
worker.onerror = function (evt) {  //suppose worker is a Worker object
   //evt is a ErrorEvent object.
   ...
}

But in WorkerContext, we must use the onerror like that:
onerror = function (message, filename, lineno) {
   ...
}

It looks very strange.
>From Worker spec http://www.w3.org/TR/2012/CR-workers-20120501/#the-global-scope, 
both of them inherit EventTarget, maybe they use the same parameter should be more reasonable.
In addition the test case from Microsoft fails because of this.
http://samples.msdn.microsoft.com/ietestcenter/WebWorkers/WorkerGlobalScope_ErrorEvent_message.htm

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