https://bugs.webkit.org/show_bug.cgi?id=138098
Reviewed by Anders Carlsson.
Source/WebCore:
* platform/network/cf/NetworkStorageSessionCFNet.cpp:
(WebCore::NetworkStorageSession::switchToNewTestingSession):
Create a separate session for each WKTR/DRT process when testing.
Source/WebKit2:
* NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
* WebProcess/com.apple.WebProcess.sb.in:
Update for the new name of testing session. Memory regions are now of the form
"WebKit Test-<pid>-0".
LayoutTests:
* platform/mac-wk1/TestExpectations: Removed the test from expectations. It's still
skipped on WK2, because we don't yet implement the necessary WKTR functionality.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175232
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2014-10-27 Alexey Proskuryakov <ap@apple.com>
+ http/tests/cookies/third-party-cookie-relaxing.html is flaky on bots
+ https://bugs.webkit.org/show_bug.cgi?id=138098
+
+ Reviewed by Anders Carlsson.
+
+ * platform/mac-wk1/TestExpectations: Removed the test from expectations. It's still
+ skipped on WK2, because we don't yet implement the necessary WKTR functionality.
+
+2014-10-27 Alexey Proskuryakov <ap@apple.com>
+
Add [ Yosemite ] modifier to a couple of tests in section 7.
These two tests fail with PPT, so they are expected to pass on 10.8. Our current
webkit.org/b/132421 fast/multicol/fixed-stack.html [ ImageOnlyFailure ]
[ MountainLion Mavericks ] fast/multicol/fixed-stack.html [ Pass ]
-# Failing itermittently on Yosemite Release WK1 bots.
-webkit.org/b/138098 http/tests/cookies/third-party-cookie-relaxing.html [ Pass Failure ]
-[ MountainLion Mavericks ] http/tests/cookies/third-party-cookie-relaxing.html [ Pass ]
-
### END OF (1) Failures with bug reports
########################################
+2014-10-27 Alexey Proskuryakov <ap@apple.com>
+
+ http/tests/cookies/third-party-cookie-relaxing.html is flaky on bots
+ https://bugs.webkit.org/show_bug.cgi?id=138098
+
+ Reviewed by Anders Carlsson.
+
+ * platform/network/cf/NetworkStorageSessionCFNet.cpp:
+ (WebCore::NetworkStorageSession::switchToNewTestingSession):
+ Create a separate session for each WKTR/DRT process when testing.
+
2014-10-27 Chris Dumez <cdumez@apple.com>
Use separate HashMaps for common and uncommon headers in HTTPHeaderMap
void NetworkStorageSession::switchToNewTestingSession()
{
- // Set a private session for testing to avoid interfering with global cookies. This should be different from private browsing session.
- // FIXME: It looks like creating a new session with the same identifier may be just creating a reference to the same storage. See <rdar://problem/11571450> and <rdar://problem/12384380>.
+ // Session name should be short enough for shared memory region name to be under the limit, otehrwise sandbox rules won't work (see <rdar://problem/13642852>).
+ String sessionName = String::format("WebKit Test-%u", static_cast<uint32_t>(getpid()));
#if PLATFORM(COCOA)
- defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(CFSTR("Private WebKit Session")))));
+ defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(sessionName.createCFString().get()))));
#else
- defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(CFSTR("Private WebKit Session"), defaultNetworkStorageSession()->platformSession()))));
+ defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(sessionName.createCFString().get(), defaultNetworkStorageSession()->platformSession()))));
#endif
}
+2014-10-27 Alexey Proskuryakov <ap@apple.com>
+
+ http/tests/cookies/third-party-cookie-relaxing.html is flaky on bots
+ https://bugs.webkit.org/show_bug.cgi?id=138098
+
+ Reviewed by Anders Carlsson.
+
+ * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
+ * WebProcess/com.apple.WebProcess.sb.in:
+ Update for the new name of testing session. Memory regions are now of the form
+ "WebKit Test-<pid>-0".
+
2014-10-27 Chris Dumez <cdumez@apple.com>
Use separate HashMaps for common and uncommon headers in HTTPHeaderMap
(allow ipc-posix-shm-read-data
(ipc-posix-name "FNetwork.defaultStorageSession")
(ipc-posix-name-regex #"\.PrivateBrowsing-")
- (ipc-posix-name-regex #"^Private WebKit Session-"))
+ (ipc-posix-name-regex #"^WebKit Test-"))
;; Various services required by CFNetwork and other frameworks
(allow mach-lookup
(allow ipc-posix-shm-read-data
(ipc-posix-name "FNetwork.defaultStorageSession")
(ipc-posix-name-regex #"\.PrivateBrowsing-")
- (ipc-posix-name-regex #"^Private WebKit Session-"))
+ (ipc-posix-name-regex #"^WebKit Test-"))
;; ColorSync
;; FIXME: Remove names with underscores when possible (see <rdar://problem/13072721>).