WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
203633
[iOS][WK2] Simplify process assertion handling for the network process and service worker processes
https://bugs.webkit.org/show_bug.cgi?id=203633
Summary
[iOS][WK2] Simplify process assertion handling for the network process and se...
Chris Dumez
Reported
2019-10-30 15:21:31 PDT
Simplify process assertion handling for the network process and service worker processes.
Attachments
Patch
(25.20 KB, patch)
2019-10-30 15:35 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(25.00 KB, patch)
2019-10-30 15:47 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(37.82 KB, patch)
2019-11-04 11:30 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(37.81 KB, patch)
2019-11-04 12:29 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2019-10-30 15:35:08 PDT
Created
attachment 382373
[details]
Patch
Chris Dumez
Comment 2
2019-10-30 15:47:54 PDT
Created
attachment 382375
[details]
Patch
Chris Dumez
Comment 3
2019-10-31 13:31:07 PDT
Comment on
attachment 382375
[details]
Patch ping review?
Chris Dumez
Comment 4
2019-11-04 08:22:02 PST
ping review?
Alex Christensen
Comment 5
2019-11-04 08:34:29 PST
Comment on
attachment 382375
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=382375&action=review
> Source/WebKit/UIProcess/ProcessThrottler.h:95 > + using ActivityVariant = Variant<std::nullptr_t, std::unique_ptr<BackgroundActivity>, std::unique_ptr<ForegroundActivity>>;
Could you use UniqueRef here? You use the non-std::nullptr_t types as if they are always non-null, and right now the nullptr constructor is quite ambiguous. I guess you only use the default constructor, but still...
Chris Dumez
Comment 6
2019-11-04 08:42:29 PST
(In reply to Alex Christensen from
comment #5
)
> Comment on
attachment 382375
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=382375&action=review
> > > Source/WebKit/UIProcess/ProcessThrottler.h:95 > > + using ActivityVariant = Variant<std::nullptr_t, std::unique_ptr<BackgroundActivity>, std::unique_ptr<ForegroundActivity>>; > > Could you use UniqueRef here? You use the non-std::nullptr_t types as if > they are always non-null, and right now the nullptr constructor is quite > ambiguous. I guess you only use the default constructor, but still...
I am on the fence about this. I think this would mean having backgroundActivity() / foregroundActivity() return a UniqueRef instead of a unique_ptr, and then a lot of call sites would need to call moveToUniquePtr() to store it as a data member.
Chris Dumez
Comment 7
2019-11-04 11:30:55 PST
Created
attachment 382754
[details]
Patch
Chris Dumez
Comment 8
2019-11-04 12:29:28 PST
Created
attachment 382760
[details]
Patch
WebKit Commit Bot
Comment 9
2019-11-04 13:36:33 PST
Comment on
attachment 382760
[details]
Patch Clearing flags on attachment: 382760 Committed
r252011
: <
https://trac.webkit.org/changeset/252011
>
WebKit Commit Bot
Comment 10
2019-11-04 13:36:35 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11
2019-11-04 13:37:20 PST
<
rdar://problem/56877865
>
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