WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158606
ErrorEvent / ProgressEvent should be exposed to workers
https://bugs.webkit.org/show_bug.cgi?id=158606
Summary
ErrorEvent / ProgressEvent should be exposed to workers
Chris Dumez
Reported
2016-06-09 20:55:40 PDT
ErrorEvent should be exposed to workers:
https://html.spec.whatwg.org/multipage/webappapis.html#errorevent
Test:
http://w3c-test.org/workers/semantics/interface-objects/001.worker
Attachments
Patch
(5.36 KB, patch)
2016-06-09 22:14 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-06-09 22:14:26 PDT
Created
attachment 280992
[details]
Patch
Alex Christensen
Comment 2
2016-06-10 00:15:55 PDT
Comment on
attachment 280992
[details]
Patch Actually, I'm not sure. ErrorEvent::createForBindings uses an AtomicString, and can't that only be used from the main thread?
Chris Dumez
Comment 3
2016-06-10 07:23:54 PDT
(In reply to
comment #2
)
> Comment on
attachment 280992
[details]
> Patch > > Actually, I'm not sure. ErrorEvent::createForBindings uses an AtomicString, > and can't that only be used from the main thread?
Using AtomicString in other threads is fine. What you cannot do is pass them to other threads. AtomicStrings are per thread AFAIK.
Brady Eidson
Comment 4
2016-06-10 09:04:31 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > Comment on
attachment 280992
[details]
> > Patch > > > > Actually, I'm not sure. ErrorEvent::createForBindings uses an AtomicString, > > and can't that only be used from the main thread? > > Using AtomicString in other threads is fine. What you cannot do is pass them > to other threads. AtomicStrings are per thread AFAIK.
This is correct - Each thread has its own AtomicString table, and its safe to use them within a given thread.
Chris Dumez
Comment 5
2016-06-10 09:18:14 PDT
Comment on
attachment 280992
[details]
Patch Clearing flags on attachment: 280992 Committed
r201926
: <
http://trac.webkit.org/changeset/201926
>
Chris Dumez
Comment 6
2016-06-10 09:18:18 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug