RESOLVED FIXED 179804
The WebProcess should use the NSRunLoop runloop type.
https://bugs.webkit.org/show_bug.cgi?id=179804
Summary The WebProcess should use the NSRunLoop runloop type.
Per Arne Vollan
Reported 2017-11-16 16:15:43 PST
It currently uses the NSApplicationMain runloop type.
Attachments
Patch (3.02 KB, patch)
2017-11-16 16:18 PST, Per Arne Vollan
no flags
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (3.16 MB, application/zip)
2017-11-16 17:40 PST, EWS Watchlist
no flags
Patch (3.06 KB, patch)
2017-11-17 07:43 PST, Per Arne Vollan
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (2.78 MB, application/zip)
2017-11-17 08:58 PST, EWS Watchlist
no flags
Patch (2.49 KB, patch)
2017-11-17 14:31 PST, Per Arne Vollan
no flags
Patch (3.14 KB, patch)
2017-11-27 12:24 PST, Per Arne Vollan
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (2.75 MB, application/zip)
2017-11-27 13:17 PST, EWS Watchlist
no flags
Patch (4.93 KB, patch)
2017-11-27 15:53 PST, Per Arne Vollan
no flags
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 (2.95 MB, application/zip)
2017-11-27 19:40 PST, EWS Watchlist
no flags
Patch (3.12 KB, patch)
2017-11-28 09:42 PST, Per Arne Vollan
no flags
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 (2.97 MB, application/zip)
2017-11-28 10:41 PST, EWS Watchlist
no flags
Patch (4.38 KB, patch)
2017-11-29 09:45 PST, Per Arne Vollan
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (2.98 MB, application/zip)
2017-11-29 10:49 PST, EWS Watchlist
no flags
Patch (5.73 KB, patch)
2017-12-01 12:47 PST, Per Arne Vollan
no flags
Patch (5.91 KB, patch)
2017-12-04 09:27 PST, Per Arne Vollan
no flags
Patch (6.04 KB, patch)
2017-12-06 10:02 PST, Per Arne Vollan
no flags
Patch (6.11 KB, patch)
2017-12-06 10:07 PST, Per Arne Vollan
no flags
Patch (6.11 KB, patch)
2017-12-06 11:20 PST, Per Arne Vollan
no flags
Patch (6.19 KB, patch)
2017-12-06 13:40 PST, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2017-11-16 16:18:29 PST
Brent Fulgham
Comment 2 2017-11-16 16:38:55 PST
Comment on attachment 327123 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=327123&action=review > Source/WebKit/Shared/mac/ChildProcessMac.mm:77 > +void ChildProcess::launchServicesCheckIn() It looks like you need a stub here for iOS as well as other processes.
EWS Watchlist
Comment 3 2017-11-16 17:40:15 PST
Comment on attachment 327123 [details] Patch Attachment 327123 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5266430 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 4 2017-11-16 17:40:16 PST
Created attachment 327136 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Per Arne Vollan
Comment 5 2017-11-17 07:43:19 PST
Per Arne Vollan
Comment 6 2017-11-17 07:51:27 PST
(In reply to Brent Fulgham from comment #2) > Comment on attachment 327123 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=327123&action=review > > > Source/WebKit/Shared/mac/ChildProcessMac.mm:77 > > +void ChildProcess::launchServicesCheckIn() > > It looks like you need a stub here for iOS as well as other processes. Thanks! Updated patch. It seems some media tests are failing on mac-WK2.
Brent Fulgham
Comment 7 2017-11-17 08:37:01 PST
(In reply to Per Arne Vollan from comment #6) > > It looks like you need a stub here for iOS as well as other processes. > > Thanks! Updated patch. It seems some media tests are failing on mac-WK2. Interesting. Far less breakage than I feared. Let's keep pushing! :-)
EWS Watchlist
Comment 8 2017-11-17 08:58:36 PST
Comment on attachment 327170 [details] Patch Attachment 327170 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5275158 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 9 2017-11-17 08:58:37 PST
Created attachment 327177 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Per Arne Vollan
Comment 10 2017-11-17 14:31:12 PST
Per Arne Vollan
Comment 11 2017-11-27 12:24:28 PST
EWS Watchlist
Comment 12 2017-11-27 13:17:36 PST
Comment on attachment 327658 [details] Patch Attachment 327658 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5377936 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 13 2017-11-27 13:17:38 PST
Created attachment 327665 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Per Arne Vollan
Comment 14 2017-11-27 15:53:24 PST
EWS Watchlist
Comment 15 2017-11-27 19:40:37 PST
Comment on attachment 327707 [details] Patch Attachment 327707 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5383493 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 16 2017-11-27 19:40:38 PST
Created attachment 327721 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Per Arne Vollan
Comment 17 2017-11-28 09:42:45 PST
EWS Watchlist
Comment 18 2017-11-28 10:41:25 PST
Comment on attachment 327759 [details] Patch Attachment 327759 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5391115 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 19 2017-11-28 10:41:26 PST
Created attachment 327764 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Brent Fulgham
Comment 20 2017-11-28 10:44:00 PST
Comment on attachment 327759 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=327759&action=review > Source/WebKit/Shared/mac/ChildProcessMac.mm:83 > + [NSApp finishLaunching]; I'm not sure if we want to be making these calls in the final version of this patch. The goal would be to get away from NSApplication/NSApp entirely.
Per Arne Vollan
Comment 21 2017-11-29 09:45:48 PST
EWS Watchlist
Comment 22 2017-11-29 09:48:00 PST
Attachment 327867 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 23 2017-11-29 10:49:58 PST
Comment on attachment 327867 [details] Patch Attachment 327867 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5405055 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 24 2017-11-29 10:49:59 PST
Created attachment 327872 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Per Arne Vollan
Comment 25 2017-12-01 12:47:31 PST
Per Arne Vollan
Comment 26 2017-12-04 09:27:24 PST
Brent Fulgham
Comment 27 2017-12-04 11:13:03 PST
Brent Fulgham
Comment 28 2017-12-04 11:15:29 PST
Comment on attachment 328351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328351&action=review r=me, but please run that one change by AX people. > Source/WebCore/ChangeLog:4 > + https://bugs.webkit.org/show_bug.cgi?id=179804 <rdar://problem/14012823> > Source/WebKit/ChangeLog:4 > + https://bugs.webkit.org/show_bug.cgi?id=179804 <rdar://problem/14012823> > Source/WebKit/Platform/IPC/mac/ConnectionMac.mm:590 > + return; Does this early return cause accessibility stuff to fail? We should confirm with James Craig or someone else on the accessibility team.
Brent Fulgham
Comment 29 2017-12-04 11:16:30 PST
@James and Chris: Can you check the change in IPC/mac/ConnectionMac.mm to see if it's likely to cause a problem in the WebContent process. I suspect not, but wanted to double-check.
chris fleizach
Comment 30 2017-12-04 12:31:44 PST
Comment on attachment 328351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328351&action=review >> Source/WebKit/Platform/IPC/mac/ConnectionMac.mm:590 >> + return; > > Does this early return cause accessibility stuff to fail? We should confirm with James Craig or someone else on the accessibility team. pretty sure this is wrong
Per Arne Vollan
Comment 31 2017-12-06 10:02:30 PST
Per Arne Vollan
Comment 32 2017-12-06 10:07:47 PST
chris fleizach
Comment 33 2017-12-06 11:10:16 PST
Comment on attachment 328581 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328581&action=review > Source/WebKit/Platform/IPC/mac/ConnectionMac.mm:590 > + if (NSApp && [NSApp isRunning]) if (NSApp isRunning) is a sufficient check
Per Arne Vollan
Comment 34 2017-12-06 11:19:22 PST
(In reply to chris fleizach from comment #33) > Comment on attachment 328581 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328581&action=review > > > Source/WebKit/Platform/IPC/mac/ConnectionMac.mm:590 > > + if (NSApp && [NSApp isRunning]) > > if (NSApp isRunning) > > is a sufficient check I will update the patch. Thanks for reviewing, all!
Per Arne Vollan
Comment 35 2017-12-06 11:20:24 PST
Brent Fulgham
Comment 36 2017-12-06 13:38:55 PST
Comment on attachment 328599 [details] Patch Looks good. Let's give it a whirl!
Per Arne Vollan
Comment 37 2017-12-06 13:40:21 PST
Per Arne Vollan
Comment 38 2017-12-06 13:46:00 PST
(In reply to Brent Fulgham from comment #36) > Comment on attachment 328599 [details] > Patch > > Looks good. Let's give it a whirl! Thanks Brent! Didn't see this before I uploaded another patch with just minor modifications. Could you look at it once more?
Brent Fulgham
Comment 39 2017-12-06 13:46:37 PST
Comment on attachment 328617 [details] Patch This still looks fine. Feel free to land if EWS is still green with this revised version.
WebKit Commit Bot
Comment 40 2017-12-06 14:24:34 PST
Comment on attachment 328617 [details] Patch Clearing flags on attachment: 328617 Committed r225597: <https://trac.webkit.org/changeset/225597>
WebKit Commit Bot
Comment 41 2017-12-06 14:24:36 PST
All reviewed patches have been landed. Closing bug.
Simon Fraser (smfr)
Comment 42 2017-12-13 12:35:48 PST
Comment on attachment 328617 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328617&action=review > Source/WebCore/ChangeLog:9 > + The WebProcess should use the NSRunLoop runloop type. > + https://bugs.webkit.org/show_bug.cgi?id=179804 > + <rdar://problem/14012823> > + > + Reviewed by NOBODY (OOPS!). > + > + No new tests. Why? There's no explanatory text here at all.
Brent Fulgham
Comment 43 2017-12-13 12:56:35 PST
(In reply to Simon Fraser (smfr) from comment #42) > > Source/WebCore/ChangeLog:9 > > + The WebProcess should use the NSRunLoop runloop type. > > + https://bugs.webkit.org/show_bug.cgi?id=179804 > > + <rdar://problem/14012823> > > Why? There's no explanatory text here at all. This is part of an effort to make it harder to use the WebContent process as an attack target by reducing the number of system services it has access to. NSApplication was designed years and years ago to be the basis for full-featured user applications. It's really inappropriate for something like the WebContent process, and it's an important hardening step for us to move away from it. We should have put these comments in the ChangeLog so you would have better context.
Jonathan Bedard
Comment 44 2018-01-23 16:52:31 PST
*** Bug 170688 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.