WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173115
[iOS] LowPowerModeNotifier notifies client on non-main thread
https://bugs.webkit.org/show_bug.cgi?id=173115
Summary
[iOS] LowPowerModeNotifier notifies client on non-main thread
Chris Dumez
Reported
2017-06-08 14:50:02 PDT
LowPowerModeNotifier notifies client on non-main thread which clients do not expect and this is causing crashes.
Attachments
Patch
(1.63 KB, patch)
2017-06-08 14:53 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(1.90 KB, patch)
2017-06-08 18:29 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(1.93 KB, patch)
2017-06-08 19:01 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-06-08 14:50:19 PDT
<
rdar://problem/32644703
>
Chris Dumez
Comment 2
2017-06-08 14:53:35 PDT
Created
attachment 312348
[details]
Patch
Ryosuke Niwa
Comment 3
2017-06-08 17:05:18 PDT
Comment on
attachment 312348
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=312348&action=review
> Source/WebCore/platform/ios/LowPowerModeNotifierIOS.mm:64 > + dispatch_async(dispatch_get_main_queue(), ^ {
Why don't we just use callOnMainThread??
Chris Dumez
Comment 4
2017-06-08 18:08:42 PDT
Comment on
attachment 312348
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=312348&action=review
>> Source/WebCore/platform/ios/LowPowerModeNotifierIOS.mm:64 >> + dispatch_async(dispatch_get_main_queue(), ^ { > > Why don't we just use callOnMainThread??
We can but this is iOS specific code anyway.
Chris Dumez
Comment 5
2017-06-08 18:29:23 PDT
Created
attachment 312367
[details]
Patch
Chris Dumez
Comment 6
2017-06-08 19:01:43 PDT
Created
attachment 312369
[details]
Patch
Ryosuke Niwa
Comment 7
2017-06-08 19:52:47 PDT
(In reply to Chris Dumez from
comment #4
)
> Comment on
attachment 312348
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=312348&action=review
> > >> Source/WebCore/platform/ios/LowPowerModeNotifierIOS.mm:64 > >> + dispatch_async(dispatch_get_main_queue(), ^ { > > > > Why don't we just use callOnMainThread?? > > We can but this is iOS specific code anyway.
Sure but I think using callOnMainThread here would make the code read better.
WebKit Commit Bot
Comment 8
2017-06-08 19:59:45 PDT
Comment on
attachment 312369
[details]
Patch Clearing flags on attachment: 312369 Committed
r217959
: <
http://trac.webkit.org/changeset/217959
>
WebKit Commit Bot
Comment 9
2017-06-08 19:59:46 PDT
All reviewed patches have been landed. Closing bug.
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