WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
119855
[WK2] NetworkProcess should use a temporary storage session for tests
https://bugs.webkit.org/show_bug.cgi?id=119855
Summary
[WK2] NetworkProcess should use a temporary storage session for tests
Alexey Proskuryakov
Reported
2013-08-15 11:52:18 PDT
Both DumpRenderTree and single WebProcess WebKitTestRunner switch loader to a private testing session to avoid interfering with regular browsing storage, or leaking information between runs. We should do this for NetworkProcess, too.
Attachments
proposed patch
(17.90 KB, patch)
2013-08-15 12:01 PDT
,
Alexey Proskuryakov
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2013-08-15 12:01:59 PDT
Created
attachment 208834
[details]
proposed patch
Darin Adler
Comment 2
2013-08-15 12:17:44 PDT
Comment on
attachment 208834
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=208834&action=review
> Source/WebKit2/UIProcess/WebContext.cpp:1083 > +void WebContext::useTestingNetworkSession() > +{ > + ASSERT(m_processes.isEmpty()); > +#if ENABLE(NETWORK_PROCESS) > + ASSERT(!m_networkProcess); > +#endif > + > + m_useTestingNetworkSession = true; > +}
Would be nice to do nothing if called incorrectly. Silently in release builds, after the assertion in debug builds.
> Source/WebKit2/UIProcess/WebContext.h:470 > + bool m_useTestingNetworkSession;
I would name this m_shouldUseTestingNetworkSession or m_usesTestingNetworkSession. The way it’s named here sounds like a verb phrase, not an adjective phrase.
Alexey Proskuryakov
Comment 3
2013-08-15 15:25:13 PDT
Committed
r154144
with proposed changes.
Ryosuke Niwa
Comment 4
2013-08-16 14:48:05 PDT
This patch appears to have broken http/tests/navigation/post-frames-goback1.html on WK2 builders:
http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK2%20(Tests)/r154201%20(10857)/results.html
http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fnavigation%2Fpost-frames-goback1.html
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