WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
238860
ServiceWorkerDownloadTask starts listening for IPC in constructor
https://bugs.webkit.org/show_bug.cgi?id=238860
Summary
ServiceWorkerDownloadTask starts listening for IPC in constructor
Kimmo Kinnunen
Reported
2022-04-06 04:04:06 PDT
ServiceWorkerDownloadTask starts listening for IPC in constructor
Attachments
Patch
(6.88 KB, patch)
2022-04-06 04:10 PDT
,
Kimmo Kinnunen
no flags
Details
Formatted Diff
Diff
Patch
(6.88 KB, patch)
2022-04-06 04:12 PDT
,
Kimmo Kinnunen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kimmo Kinnunen
Comment 1
2022-04-06 04:10:07 PDT
Created
attachment 456803
[details]
Patch
Kimmo Kinnunen
Comment 2
2022-04-06 04:12:05 PDT
Created
attachment 456804
[details]
Patch
youenn fablet
Comment 3
2022-04-06 04:48:07 PDT
Comment on
attachment 456804
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=456804&action=review
> Source/WebKit/ChangeLog:10 > + virtual function table of the `this` object has not been constructed fully yet. This means
I am not sure this is entirely exact, ServiceWorkerDownloadTask is the derived class. In any case, calling virtual methods in constructor is probably best be avoided.
Kimmo Kinnunen
Comment 4
2022-04-06 06:06:10 PDT
(In reply to youenn fablet from
comment #3
)
> > Source/WebKit/ChangeLog:10 > > + virtual function table of the `this` object has not been constructed fully yet. This means > > I am not sure this is entirely exact, ServiceWorkerDownloadTask is the > derived class. > In any case, calling virtual methods in constructor is probably best be > avoided.
This is exactly the case with the derived classes. vptr is not thread-safe -- it will be correct only after all constructors have returned.
EWS
Comment 5
2022-04-06 09:01:24 PDT
Committed
r292471
(
249322@main
): <
https://commits.webkit.org/249322@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 456804
[details]
.
Radar WebKit Bug Importer
Comment 6
2022-04-06 09:02:26 PDT
<
rdar://problem/91356880
>
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