WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
213625
[iOS] Network process is crashing when launching TJMaxx app due to invalid NetworkProcess::DestroySession IPC message
https://bugs.webkit.org/show_bug.cgi?id=213625
Summary
[iOS] Network process is crashing when launching TJMaxx app due to invalid Ne...
Chris Dumez
Reported
2020-06-25 15:43:31 PDT
Network process is crashing when launching TJMaxx app due to invalid NetworkProcess::DestroySession IPC message.
Attachments
Patch
(6.00 KB, patch)
2020-06-25 15:58 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(6.84 KB, patch)
2020-06-25 18:03 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(5.65 KB, patch)
2020-06-26 09:54 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2020-06-25 15:43:43 PDT
<
rdar://problem/64737890
>
Chris Dumez
Comment 2
2020-06-25 15:58:28 PDT
Created
attachment 402822
[details]
Patch
Geoffrey Garen
Comment 3
2020-06-25 16:02:14 PDT
Comment on
attachment 402822
[details]
Patch r=me
EWS
Comment 4
2020-06-25 16:43:43 PDT
Committed
r263545
: <
https://trac.webkit.org/changeset/263545
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 402822
[details]
.
Darin Adler
Comment 5
2020-06-25 17:02:10 PDT
Comment on
attachment 402822
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=402822&action=review
> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:125 > + return [WKWebsiteDataStore defaultDataStore];
I think we need to retain the value we are returning here. And release or dealloc self.
> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:127 > + return nil;
I think we need to release or dealloc self here.
Chris Dumez
Comment 6
2020-06-25 17:08:16 PDT
Reopening based on Darin's comments.
Chris Dumez
Comment 7
2020-06-25 17:10:31 PDT
Reverted
r263545
for reason: Patch will need refining Committed
r263547
: <
https://trac.webkit.org/changeset/263547
>
Chris Dumez
Comment 8
2020-06-25 18:03:05 PDT
Created
attachment 402835
[details]
Patch
Alex Christensen
Comment 9
2020-06-26 09:42:32 PDT
Comment on
attachment 402835
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=402835&action=review
> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:124 > + if (!(self = [super init]))
Why don't we just call _initWithConfiguration with a non-persistent configuration instead of all this mess?
Chris Dumez
Comment 10
2020-06-26 09:49:09 PDT
Comment on
attachment 402835
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=402835&action=review
>> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:124 >> + if (!(self = [super init])) > > Why don't we just call _initWithConfiguration with a non-persistent configuration instead of all this mess?
That sounds like a good idea. Let me give this a try: auto configuration = adoptNS([[_WKWebsiteDataStoreConfiguration alloc] initNonPersistentConfiguration]); return [WKWebsiteDataStore _initWithConfiguration:configuration.get()];
Darin Adler
Comment 11
2020-06-26 09:49:12 PDT
Comment on
attachment 402835
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=402835&action=review
> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:127 > + _bypassWebsiteDataStoreDestructor = YES;
Why is a boolean needed rather than a null check?
> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:128 > + [self autorelease];
Why autorelease rather than release or dealloc?
> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:131 > + // FIXME: We should eventually drop this and always return nil.
Not sure we really need this comment. I think linkedOnOrAfter above makes the point about our long term goals. And I think we should eventually drop this and always *raise an exception*.
Alex Christensen
Comment 12
2020-06-26 09:54:16 PDT
Created
attachment 402877
[details]
Patch
Alex Christensen
Comment 13
2020-06-26 09:56:12 PDT
Comment on
attachment 402877
[details]
Patch ObjC doesn't really like calling another initializer from init, but this does the same thing.
Chris Dumez
Comment 14
2020-06-26 09:56:57 PDT
(In reply to Alex Christensen from
comment #12
)
> Created
attachment 402877
[details]
> Patch
Ok, let me validate this patch on device to make sure the app is happy with it.
Chris Dumez
Comment 15
2020-06-26 10:11:51 PDT
(In reply to Chris Dumez from
comment #14
)
> (In reply to Alex Christensen from
comment #12
) > > Created
attachment 402877
[details]
> > Patch > > Ok, let me validate this patch on device to make sure the app is happy with > it.
Yes, this works fine.
EWS
Comment 16
2020-06-26 10:37:30 PDT
Committed
r263570
: <
https://trac.webkit.org/changeset/263570
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 402877
[details]
.
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