Bug 207459

Summary: [watchOS] Notification listener is never unregistered
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, mjs, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
mjs: review+
Patch none

Per Arne Vollan
Reported 2020-02-10 07:16:21 PST
On watchOS, the backlight changed notification is registered in WebProcessPool::registerNotificationObservers(), but not unregistered in WebProcessPool::unregisterNotificationObservers().
Attachments
Patch (1.88 KB, patch)
2020-02-10 07:22 PST, Per Arne Vollan
mjs: review+
Patch (8.63 KB, patch)
2020-02-10 14:46 PST, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2020-02-10 07:17:29 PST
Per Arne Vollan
Comment 2 2020-02-10 07:22:15 PST
Maciej Stachowiak
Comment 3 2020-02-10 11:14:22 PST
Comment on attachment 390250 [details] Patch Maybe worth making an API test in case they are run there some day, or in case we make this mistake on another platform? Code change looks fine but I suggest adding a test.
Per Arne Vollan
Comment 4 2020-02-10 12:51:11 PST
(In reply to Maciej Stachowiak from comment #3) > Comment on attachment 390250 [details] > Patch > > Maybe worth making an API test in case they are run there some day, or in > case we make this mistake on another platform? > > Code change looks fine but I suggest adding a test. Thanks for reviewing! I will look into adding a test.
Per Arne Vollan
Comment 5 2020-02-10 14:46:39 PST
WebKit Commit Bot
Comment 6 2020-02-10 15:49:20 PST
Comment on attachment 390297 [details] Patch Clearing flags on attachment: 390297 Committed r256225: <https://trac.webkit.org/changeset/256225>
Note You need to log in before you can comment on or make changes to this bug.