Bug 158606 - ErrorEvent / ProgressEvent should be exposed to workers
Summary: ErrorEvent / ProgressEvent should be exposed to workers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-09 20:55 PDT by Chris Dumez
Modified: 2016-06-10 09:18 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.36 KB, patch)
2016-06-09 22:14 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Chris Dumez 2016-06-09 22:14:26 PDT
Created attachment 280992 [details]
Patch
Comment 2 Alex Christensen 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?
Comment 3 Chris Dumez 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.
Comment 4 Brady Eidson 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.
Comment 5 Chris Dumez 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>
Comment 6 Chris Dumez 2016-06-10 09:18:18 PDT
All reviewed patches have been landed.  Closing bug.