Bug 208027 - WebIDBServer resume should return early if suspend does not happen
Summary: WebIDBServer resume should return early if suspend does not happen
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sihui Liu
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-20 13:02 PST by Sihui Liu
Modified: 2020-02-20 16:20 PST (History)
6 users (show)

See Also:


Attachments
Patch (1.46 KB, patch)
2020-02-20 13:06 PST, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch for landing (1.42 KB, patch)
2020-02-20 15:32 PST, Sihui Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sihui Liu 2020-02-20 13:02:54 PST
<rdar://problem/59617654>
Comment 1 Sihui Liu 2020-02-20 13:06:20 PST
Created attachment 391323 [details]
Patch
Comment 2 Geoffrey Garen 2020-02-20 15:17:53 PST
Comment on attachment 391323 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391323&action=review

r=me

> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.cpp:106
> +    // Lock is not held by suspend.

I'm not sure this comment adds information. I guess this change was motivated by a crash unlocking. But it will always be true that we do not want to resume if we did not suspend, regardless of what logic or behavior follows this check; the check is not particular to the lock.
Comment 3 Sihui Liu 2020-02-20 15:32:56 PST
Created attachment 391342 [details]
Patch for landing
Comment 4 WebKit Commit Bot 2020-02-20 16:20:16 PST
Comment on attachment 391342 [details]
Patch for landing

Clearing flags on attachment: 391342

Committed r257103: <https://trac.webkit.org/changeset/257103>
Comment 5 WebKit Commit Bot 2020-02-20 16:20:17 PST
All reviewed patches have been landed.  Closing bug.