RESOLVED FIXED 204967
Make it possible to add regression tests for blocked XPC services
https://bugs.webkit.org/show_bug.cgi?id=204967
Summary Make it possible to add regression tests for blocked XPC services
Per Arne Vollan
Reported 2019-12-06 16:23:03 PST
On macOS and iOS, it should be possible to add regression tests for blocked mach services.
Attachments
Patch (2.85 KB, patch)
2019-12-06 16:26 PST, Per Arne Vollan
no flags
Patch (2.91 KB, patch)
2019-12-06 16:41 PST, Per Arne Vollan
no flags
Patch (3.31 KB, patch)
2019-12-09 10:50 PST, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2019-12-06 16:23:28 PST
Per Arne Vollan
Comment 2 2019-12-06 16:26:48 PST
Per Arne Vollan
Comment 3 2019-12-06 16:41:55 PST
Alexey Proskuryakov
Comment 4 2019-12-06 17:19:21 PST
Comment on attachment 385058 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385058&action=review > Source/WebCore/ChangeLog:9 > + to Internals, which checks whether the WebContent process has access to mach lookup for a given global Good idea! I do not see why this should be limited to WebContent - sandbox_check can check other processes too. May be worth adding a universal method right away.
Per Arne Vollan
Comment 5 2019-12-09 10:50:08 PST
Per Arne Vollan
Comment 6 2019-12-09 10:51:49 PST
(In reply to Alexey Proskuryakov from comment #4) > Comment on attachment 385058 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=385058&action=review > > > Source/WebCore/ChangeLog:9 > > + to Internals, which checks whether the WebContent process has access to mach lookup for a given global > > Good idea! I do not see why this should be limited to WebContent - > sandbox_check can check other processes too. May be worth adding a universal > method right away. Credits go to Geoff and Darin :) I have added a process name parameter to the method. Thanks for reviewing!
Brent Fulgham
Comment 7 2019-12-10 15:00:50 PST
Comment on attachment 385167 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385167&action=review > Source/WebCore/testing/Internals.cpp:5337 > + if (process == "com.apple.WebKit.WebContent") What about WebContent.Development?
Per Arne Vollan
Comment 8 2019-12-10 15:08:47 PST
(In reply to Brent Fulgham from comment #7) > Comment on attachment 385167 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=385167&action=review > > > Source/WebCore/testing/Internals.cpp:5337 > > + if (process == "com.apple.WebKit.WebContent") > > What about WebContent.Development? This string will be passed from the layout test html file, and will be the same for both debug and release builds, so I don't think we need to include a check for WebContent.Development in this case. Thanks for reviewing!
Brent Fulgham
Comment 9 2019-12-10 15:15:15 PST
Comment on attachment 385167 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385167&action=review R=me >>> Source/WebCore/testing/Internals.cpp:5337 >>> + if (process == "com.apple.WebKit.WebContent") >> >> What about WebContent.Development? > > This string will be passed from the layout test html file, and will be the same for both debug and release builds, so I don't think we need to include a check for WebContent.Development in this case. > > Thanks for reviewing! Very good!
Per Arne Vollan
Comment 10 2019-12-10 15:18:03 PST
(In reply to Brent Fulgham from comment #9) > Comment on attachment 385167 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=385167&action=review > > R=me > > >>> Source/WebCore/testing/Internals.cpp:5337 > >>> + if (process == "com.apple.WebKit.WebContent") > >> > >> What about WebContent.Development? > > > > This string will be passed from the layout test html file, and will be the same for both debug and release builds, so I don't think we need to include a check for WebContent.Development in this case. > > > > Thanks for reviewing! > > Very good! Thanks for reviewing :)
WebKit Commit Bot
Comment 11 2019-12-10 15:39:21 PST
Comment on attachment 385167 [details] Patch Clearing flags on attachment: 385167 Committed r253353: <https://trac.webkit.org/changeset/253353>
WebKit Commit Bot
Comment 12 2019-12-10 15:39:23 PST
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.