WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
183306
Notify the NetworkProcess when a session is servicing an automation client
https://bugs.webkit.org/show_bug.cgi?id=183306
Summary
Notify the NetworkProcess when a session is servicing an automation client
Brent Fulgham
Reported
2018-03-02 16:22:48 PST
Network loads servicing WebDriver are done through an ephemeral session. While this is great for protecting a developer's machine from sharing state with test runs, it has the unintended effect of blocking certain logging operations. We do not log content in ephemeral sessions to protect user privacy. However, ephemeral sessions generated by WebDriver should participate in logging so that proper testing (with logging) can be done. This patch signals the NetworkProcess when an ephemeral session (created for automation purposes) is created, so that it can allow logging.
Attachments
Patch
(5.63 KB, patch)
2018-03-02 16:35 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(5.63 KB, patch)
2018-03-02 17:28 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(5.97 KB, patch)
2018-03-03 09:59 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(6.42 KB, patch)
2018-03-03 10:09 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2018-03-02 16:35:29 PST
Created
attachment 334940
[details]
Patch
Brent Fulgham
Comment 2
2018-03-02 17:28:37 PST
Created
attachment 334943
[details]
Patch
Blaze Burg
Comment 3
2018-03-02 20:32:49 PST
Comment on
attachment 334940
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=334940&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:427 > + if (m_controlledByAutomation)
This won't work because the member isn't set in the constructor. You should put this message send in the setter.
Blaze Burg
Comment 4
2018-03-02 20:33:36 PST
Comment on
attachment 334943
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=334943&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:427 > + if (m_controlledByAutomation)
Ditto to previous comment.
Brent Fulgham
Comment 5
2018-03-03 09:22:51 PST
Comment on
attachment 334943
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=334943&action=review
>> Source/WebKit/UIProcess/WebPageProxy.cpp:427 >> + if (m_controlledByAutomation) > > Ditto to previous comment.
Doesn't it get assigned on Line 373 above?
Brent Fulgham
Comment 6
2018-03-03 09:59:30 PST
Created
attachment 334961
[details]
Patch
Brent Fulgham
Comment 7
2018-03-03 10:00:52 PST
(In reply to Brent Fulgham from
comment #5
)
> Comment on
attachment 334943
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=334943&action=review
> > >> Source/WebKit/UIProcess/WebPageProxy.cpp:427 > >> + if (m_controlledByAutomation) > > > > Ditto to previous comment. > > Doesn't it get assigned on Line 373 above?
I guess you meant that it's only ever set by the API; we never set automation through the page configuration directly.
Brent Fulgham
Comment 8
2018-03-03 10:09:18 PST
Created
attachment 334962
[details]
Patch
Blaze Burg
Comment 9
2018-03-03 13:31:47 PST
Comment on
attachment 334962
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=334962&action=review
r=me
> Source/WebKit/UIProcess/WebPageProxy.cpp:1288 > + m_process->processPool().sendToNetworkingProcess(Messages::NetworkProcess::SetSessionIsControlledByAutomation(m_websiteDataStore->sessionID(), m_controlledByAutomation));
This looks good!
WebKit Commit Bot
Comment 10
2018-03-03 15:27:22 PST
Comment on
attachment 334962
[details]
Patch Clearing flags on attachment: 334962 Committed
r229201
: <
https://trac.webkit.org/changeset/229201
>
WebKit Commit Bot
Comment 11
2018-03-03 15:27:24 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12
2018-03-03 15:28:19 PST
<
rdar://problem/38107474
>
Brent Fulgham
Comment 13
2018-03-03 15:52:48 PST
This is actually: <
rdar://problem/37835783
>
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