Bug 143278 - [WK2][iOS] We should prevent NetworkProcess suspension while it has pending SQL transactions
Summary: [WK2][iOS] We should prevent NetworkProcess suspension while it has pending S...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on: 143249 143451
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-31 14:59 PDT by Chris Dumez
Modified: 2015-04-06 13:00 PDT (History)
8 users (show)

See Also:


Attachments
Patch (27.50 KB, patch)
2015-03-31 15:26 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (29.86 KB, patch)
2015-04-02 14:34 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (29.82 KB, patch)
2015-04-03 10:07 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.
Description Chris Dumez 2015-03-31 14:59:58 PDT
We should prevent NetworkProcess suspension while it has pending SQL transactions, similarly to what we already do for WebProcesses.

Radar: <rdar://problem/20180799>
Comment 1 Chris Dumez 2015-03-31 15:26:33 PDT
Created attachment 249861 [details]
Patch
Comment 2 WebKit Commit Bot 2015-03-31 15:29:35 PDT
Attachment 249861 [details] did not pass style-queue:


ERROR: Source/WebKit2/Shared/WebSQLiteDatabaseTracker.cpp:48:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2015-04-02 14:34:19 PDT
Created attachment 250009 [details]
Patch
Comment 4 Chris Dumez 2015-04-02 14:34:52 PDT
No longer using Supplements, as per Anders' feedback via IRC.
Comment 5 WebKit Commit Bot 2015-04-02 14:36:42 PDT
Attachment 250009 [details] did not pass style-queue:


ERROR: Source/WebKit2/Shared/WebSQLiteDatabaseTracker.cpp:43:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Anders Carlsson 2015-04-03 09:58:47 PDT
Comment on attachment 250009 [details]
Patch

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

Do you really need to make the trackers be unique pointers? Can't they be plain members of the WebProcess and NetworkProcess classes?

> Source/WebKit2/WebProcess/WebProcess.h:382
> +    std::unique_ptr<WebSQLiteDatabaseTracker> m_webSQLiteDatabaseManager;

Should be DatabaseTracker, not DatabaseManager.
Comment 7 Chris Dumez 2015-04-03 10:07:05 PDT
Created attachment 250086 [details]
Patch
Comment 8 WebKit Commit Bot 2015-04-03 10:09:06 PDT
Attachment 250086 [details] did not pass style-queue:


ERROR: Source/WebKit2/Shared/WebSQLiteDatabaseTracker.cpp:43:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 WebKit Commit Bot 2015-04-03 10:55:38 PDT
Comment on attachment 250086 [details]
Patch

Clearing flags on attachment: 250086

Committed r182323: <http://trac.webkit.org/changeset/182323>
Comment 10 WebKit Commit Bot 2015-04-03 10:55:45 PDT
All reviewed patches have been landed.  Closing bug.