Summary: | Inform WebKit and WebCore if a page is controlled by automation | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Timothy Hatcher <timothy> | ||||
Component: | WebKit2 | Assignee: | Timothy Hatcher <timothy> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | andersca, bburg, commit-queue, graouts, joepeck, mattbaker, mitz, nvasilyev, thorton, timothy, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Timothy Hatcher
2016-03-03 16:22:50 PST
Created attachment 272793 [details]
Patch
Comment on attachment 272793 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=272793&action=review r=me > Source/WebKit2/UIProcess/API/C/WKPagePrivate.h:88 > +WK_EXPORT bool WKPageGetIsControlledByAutomation(WKPageRef page); > +WK_EXPORT void WKPageSetControlledByAutomation(WKPageRef page, bool controlled); It seems a little roundabout to require a WK2 API for a client to decide the page is for automation. I realize that is the case right now, but perhaps we should file a bug / have a comment somewhere that we should move to having automation pages in their own process pool, so it is guaranteed / known in WebKit what pages are automation without requiring client involvement. Comment on attachment 272793 [details] Patch Clearing flags on attachment: 272793 Committed r197564: <http://trac.webkit.org/changeset/197564> All reviewed patches have been landed. Closing bug. Comment on attachment 272793 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=272793&action=review >> Source/WebKit2/UIProcess/API/C/WKPagePrivate.h:88 >> +WK_EXPORT void WKPageSetControlledByAutomation(WKPageRef page, bool controlled); > > It seems a little roundabout to require a WK2 API for a client to decide the page is for automation. I realize that is the case right now, but perhaps we should file a bug / have a comment somewhere that we should move to having automation pages in their own process pool, so it is guaranteed / known in WebKit what pages are automation without requiring client involvement. While in general I agree that it would be nice to confine automation pages to their own process pool, this may not be feasible for all ports. I'l file a bug internally to get feedback. <rdar://problem/24996361> |