WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195484
[iOS] Block access to backboardd service
https://bugs.webkit.org/show_bug.cgi?id=195484
Summary
[iOS] Block access to backboardd service
Per Arne Vollan
Reported
2019-03-08 14:50:15 PST
This bug is addressing blocking the backboardd service "com.apple.backboard.hid.services".
Attachments
Patch
(8.77 KB, patch)
2019-03-08 15:00 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(9.23 KB, patch)
2019-03-08 15:16 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(9.91 KB, patch)
2019-03-11 12:21 PDT
,
Per Arne Vollan
bfulgham
: review+
Details
Formatted Diff
Diff
Patch
(10.26 KB, patch)
2019-03-11 13:53 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(10.44 KB, patch)
2019-03-12 11:08 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-03-08 14:51:05 PST
<
rdar://problem/48726709
>
Per Arne Vollan
Comment 2
2019-03-08 15:00:37 PST
Created
attachment 364076
[details]
Patch
Per Arne Vollan
Comment 3
2019-03-08 15:16:53 PST
Created
attachment 364081
[details]
Patch
Brent Fulgham
Comment 4
2019-03-11 09:47:31 PDT
In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphoneos/DerivedSources/WebKit2/unified-sources/UnifiedSource31-mm.mm:7: /Volumes/Data/EWS/WebKit/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:405:134: error: use of undeclared identifier 'UIBacklightLevelChangedNotification' CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), this, backlightLevelDidChangeCallback, (CFStringRef)UIBacklightLevelChangedNotification, nullptr, CFNotificationSuspensionBehaviorCoalesce); ^ /Volumes/Data/EWS/WebKit/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:457:104: error: use of undeclared identifier 'UIBacklightLevelChangedNotification' CFNotificationCenterRemoveObserver(CFNotificationCenterGetDarwinNotifyCenter(), this, (CFStringRef)UIBacklightLevelChangedNotification, nullptr);
Brent Fulgham
Comment 5
2019-03-11 09:48:46 PDT
Comment on
attachment 364081
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364081&action=review
> Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:403 > + CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), this, backlightLevelDidChangeCallback, (CFStringRef)UIBacklightLevelChangedNotification, nullptr, CFNotificationSuspensionBehaviorCoalesce);
You might need to forward declare UIBacklightLevelChangedNotification, perhaps in an SPI file. Or you might just be missing a relevant include.
Per Arne Vollan
Comment 6
2019-03-11 12:21:19 PDT
Created
attachment 364275
[details]
Patch
Per Arne Vollan
Comment 7
2019-03-11 12:21:58 PDT
(In reply to Brent Fulgham from
comment #5
)
> Comment on
attachment 364081
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=364081&action=review
> > > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:403 > > + CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), this, backlightLevelDidChangeCallback, (CFStringRef)UIBacklightLevelChangedNotification, nullptr, CFNotificationSuspensionBehaviorCoalesce); > > You might need to forward declare UIBacklightLevelChangedNotification, > perhaps in an SPI file. Or you might just be missing a relevant include.
Thanks! I have updated the patch.
Brent Fulgham
Comment 8
2019-03-11 12:28:45 PDT
Comment on
attachment 364275
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364275&action=review
> Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:711 > +
I think you should have a FIXME comment referencing the radar where the relevant backlight code will be improved in the future so we don't have to do this silly swizzling.
Per Arne Vollan
Comment 9
2019-03-11 13:53:01 PDT
Created
attachment 364284
[details]
Patch
Per Arne Vollan
Comment 10
2019-03-11 13:55:03 PDT
(In reply to Brent Fulgham from
comment #8
)
> Comment on
attachment 364275
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=364275&action=review
> > > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:711 > > + > > I think you should have a FIXME comment referencing the radar where the > relevant backlight code will be improved in the future so we don't have to > do this silly swizzling.
Done. Thanks for reviewing!
WebKit Commit Bot
Comment 11
2019-03-11 15:15:57 PDT
Comment on
attachment 364284
[details]
Patch Clearing flags on attachment: 364284 Committed
r242745
: <
https://trac.webkit.org/changeset/242745
>
Ryan Haddad
Comment 12
2019-03-11 22:25:07 PDT
Rolled out in
https://trac.webkit.org/r242775
because it broke internal builds. Details in radar.
Per Arne Vollan
Comment 13
2019-03-12 11:08:52 PDT
Created
attachment 364411
[details]
Patch
WebKit Commit Bot
Comment 14
2019-03-12 11:51:18 PDT
Comment on
attachment 364411
[details]
Patch Clearing flags on attachment: 364411 Committed
r242807
: <
https://trac.webkit.org/changeset/242807
>
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