WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
203963
Port ServiceWorkerContainer to the HTML5 event loop
https://bugs.webkit.org/show_bug.cgi?id=203963
Summary
Port ServiceWorkerContainer to the HTML5 event loop
Chris Dumez
Reported
2019-11-07 09:33:45 PST
Port ServiceWorkerContainer to the HTML5 event loop.
Attachments
Patch
(4.10 KB, patch)
2019-11-07 09:34 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2019-11-07 09:34:28 PST
Created
attachment 383058
[details]
Patch
Ryosuke Niwa
Comment 2
2019-11-07 13:38:42 PST
Comment on
attachment 383058
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=383058&action=review
> Source/WebCore/workers/service/ServiceWorkerContainer.h:145 > + bool m_shouldDeferMessageEvents { false }; > + Vector<Ref<Event>> m_deferredMessageEvents;
Hm... how does GC keep wrappers for objects held by this event alive?
Chris Dumez
Comment 3
2019-11-07 13:52:40 PST
(In reply to Ryosuke Niwa from
comment #2
)
> Comment on
attachment 383058
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=383058&action=review
> > > Source/WebCore/workers/service/ServiceWorkerContainer.h:145 > > + bool m_shouldDeferMessageEvents { false }; > > + Vector<Ref<Event>> m_deferredMessageEvents; > > Hm... how does GC keep wrappers for objects held by this event alive?
I don't think we have any logic to keep those wrappers alive currently. This is not a regression in this patch though.
Ryosuke Niwa
Comment 4
2019-11-07 13:54:35 PST
(In reply to Chris Dumez from
comment #3
)
> (In reply to Ryosuke Niwa from
comment #2
) > > Comment on
attachment 383058
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=383058&action=review
> > > > > Source/WebCore/workers/service/ServiceWorkerContainer.h:145 > > > + bool m_shouldDeferMessageEvents { false }; > > > + Vector<Ref<Event>> m_deferredMessageEvents; > > > > Hm... how does GC keep wrappers for objects held by this event alive? > > I don't think we have any logic to keep those wrappers alive currently. This > is not a regression in this patch though.
Okay, sounds like a bug we should track somewhere. How do we track these bugs for service workers?
Chris Dumez
Comment 5
2019-11-07 13:55:53 PST
(In reply to Ryosuke Niwa from
comment #4
)
> (In reply to Chris Dumez from
comment #3
) > > (In reply to Ryosuke Niwa from
comment #2
) > > > Comment on
attachment 383058
[details]
> > > Patch > > > > > > View in context: > > >
https://bugs.webkit.org/attachment.cgi?id=383058&action=review
> > > > > > > Source/WebCore/workers/service/ServiceWorkerContainer.h:145 > > > > + bool m_shouldDeferMessageEvents { false }; > > > > + Vector<Ref<Event>> m_deferredMessageEvents; > > > > > > Hm... how does GC keep wrappers for objects held by this event alive? > > > > I don't think we have any logic to keep those wrappers alive currently. This > > is not a regression in this patch though. > > Okay, sounds like a bug we should track somewhere. How do we track these > bugs for service workers?
It is unclear to me at this point that we want to keep those wrappers alive though. You're talking about wrappers to MessagePorts I assume?
Ryosuke Niwa
Comment 6
2019-11-07 14:10:02 PST
(In reply to Chris Dumez from
comment #5
)
> (In reply to Ryosuke Niwa from
comment #4
) > > (In reply to Chris Dumez from
comment #3
) > > > (In reply to Ryosuke Niwa from
comment #2
) > > > > Comment on
attachment 383058
[details]
> > > > Patch > > > > > > > > View in context: > > > >
https://bugs.webkit.org/attachment.cgi?id=383058&action=review
> > > > > > > > > Source/WebCore/workers/service/ServiceWorkerContainer.h:145 > > > > > + bool m_shouldDeferMessageEvents { false }; > > > > > + Vector<Ref<Event>> m_deferredMessageEvents; > > > > > > > > Hm... how does GC keep wrappers for objects held by this event alive? > > > > > > I don't think we have any logic to keep those wrappers alive currently. This > > > is not a regression in this patch though. > > > > Okay, sounds like a bug we should track somewhere. How do we track these > > bugs for service workers? > > It is unclear to me at this point that we want to keep those wrappers alive > though. You're talking about wrappers to MessagePorts I assume?
Yeah, MessagePorts and other transferred objects. Because you can postMessage to yourself, or some other window, right? In those cases, it's totally observable as to whether the wrapper has changed or not.
WebKit Commit Bot
Comment 7
2019-11-07 14:36:52 PST
Comment on
attachment 383058
[details]
Patch Clearing flags on attachment: 383058 Committed
r252206
: <
https://trac.webkit.org/changeset/252206
>
WebKit Commit Bot
Comment 8
2019-11-07 14:36:53 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2019-11-07 14:37:19 PST
<
rdar://problem/56998897
>
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