http://trac.webkit.org/changeset/128081
https://bugs.webkit.org/show_bug.cgi?id=96134
New test http/tests/media/video-donottrack.html fails to run on Apple test bots.
Source/WebCore:
* html/HTMLMediaElement.cpp:
* html/HTMLMediaElement.h:
(HTMLMediaElement):
* loader/FrameLoaderClient.h:
* platform/graphics/MediaPlayer.h:
(MediaPlayer):
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL):
Source/WebKit/mac:
* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebView/WebDelegateImplementationCaching.h:
(WebFrameLoadDelegateImplementationCache):
* WebView/WebDelegateImplementationCaching.mm:
* WebView/WebView.mm:
(-[WebView _cacheFrameLoadDelegateImplementations]):
Source/WebKit2:
* Shared/APIClientTraits.h:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
(InjectedBundlePageLoaderClient):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
(WebFrameLoaderClient):
* WebProcess/qt/QtBuiltinBundlePage.cpp:
(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
Tools:
* DumpRenderTree/TestRunner.cpp:
(TestRunner::TestRunner):
(TestRunner::staticFunctions):
* DumpRenderTree/TestRunner.h:
(TestRunner):
* DumpRenderTree/mac/FrameLoadDelegate.mm:
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::InjectedBundlePage):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
(InjectedBundlePage):
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::TestRunner):
* WebKitTestRunner/InjectedBundle/TestRunner.h:
(TestRunner):
LayoutTests:
* http/tests/media/resources/video-donottrack-check-donottrack.php: Removed.
* http/tests/media/video-donottrack-expected.txt: Removed.
* http/tests/media/video-donottrack.html: Removed.
* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/qt/TestExpectations:
* platform/win/Skipped:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128129
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-09-10 Jer Noble <jer.noble@apple.com>
+
+ Unreviewed; rolling out r128081.
+ http://trac.webkit.org/changeset/128081
+ https://bugs.webkit.org/show_bug.cgi?id=96134
+
+ New test http/tests/media/video-donottrack.html fails to run on Apple test bots.
+
+ * http/tests/media/resources/video-donottrack-check-donottrack.php: Removed.
+ * http/tests/media/video-donottrack-expected.txt: Removed.
+ * http/tests/media/video-donottrack.html: Removed.
+ * platform/chromium/TestExpectations:
+ * platform/efl/TestExpectations:
+ * platform/gtk/TestExpectations:
+ * platform/qt/TestExpectations:
+ * platform/win/Skipped:
+
2012-09-10 Fady Samuel <fsamuel@chromium.org>
Mark gradient-with-scaled-ancestor.html as flaky
+++ /dev/null
-<?php
- $dnt = $_SERVER["HTTP_DNT"];
- if (!isset($dnt) || stripos($dnt, "1") === false)
- die;
-
- $fileName = $_GET["name"];
- $type = $_GET["type"];
-
- $_GET = array();
- $_GET['name'] = $fileName;
- $_GET['type'] = $type;
- @include("./serve-video.php");
-?>
+++ /dev/null
- Tests that the media player will send the relevant referer when requesting the media file.
-EVENT(canplay)
-END OF TEST
-
+++ /dev/null
-<!DOCTYPE html>
-<html>
- <head>
- <script src=../../media-resources/video-test.js></script>
- <script src=../../media-resources/media-file.js></script>
- <script>
- function runTest () {
- if (window.testRunner)
- window.testRunner.setShouldSendDoNotTrackHTTPHeader(true);
-
- findMediaElement();
- var movie = findMediaFile('video', 'test');
- var type = mimeTypeForExtension(movie.split('.').pop());
-
- source = document.getElementById('source');
- source.src = 'http://127.0.0.1:8000/media/resources/video-donottrack-check-donottrack.php?name=' + movie + '&type=' + type;
- source.type = type;
-
- waitForEventAndFail('error');
- waitForEventAndEnd('canplay');
- video.load();
- }
- </script>
- </head>
- <body onload="runTest()">
- <video id="video">
- <source id="source">
- </video>
- Tests that the media player will send the relevant referer when requesting the media file.<br/>
- </body>
-</html>
// Windows is missing the green box. Started to pass in roll to WebKit r50313
BUGCR8729 WIN : http/tests/multipart/invalid-image-data.html = IMAGE+TEXT
-BUGWK96287 SKIP : http/tests/media/video-donottrack.html = TIMEOUT
-
// -----------------------------------------------------------------
// MAC PORT TESTS
// -----------------------------------------------------------------
// The EFL port has no support for accessibility features
BUGWKEFL SKIP : accessibility = TEXT
-// Missing DNT support for HTMLMediaElement
-BUGWK96292 : http/tests/media/video-donottrack.html = TEXT
-
//////////////////////////////////////////////////////////////////////////////////////////
// CRASHES
//////////////////////////////////////////////////////////////////////////////////////////
BUGWK96226 : fast/spatial-navigation/snav-fully-aligned-vertically.html = TEXT
BUGWK96226 : fast/spatial-navigation/snav-imagemap-overlapped-areas.html = TEXT
-BUGWK96290 : http/tests/media/video-donottrack.html = TEXT
-
//////////////////////////////////////////////////////////////////////////////////////////
// End of Tests failing
//////////////////////////////////////////////////////////////////////////////////////////
BUGWK94005 : css2.1/20110323/word-spacing-remove-space-006.htm = IMAGE
BUGWK94006 : fast/css/word-spacing-characters-complex-text.html = IMAGE
-// Added by bug 96134
-BUGWK96292 : http/tests/media/video-donottrack.html = TEXT
# Windows does not have global selection.
editing/pasteboard/paste-global-selection.html
-
-# https://bugs.webkit.org/show_bug.cgi?id=96293
-http/tests/media/video-donottrack.html
+2012-09-10 Jer Noble <jer.noble@apple.com>
+
+ Unreviewed; rolling out r128081.
+ http://trac.webkit.org/changeset/128081
+ https://bugs.webkit.org/show_bug.cgi?id=96134
+
+ New test http/tests/media/video-donottrack.html fails to run on Apple test bots.
+
+ * html/HTMLMediaElement.cpp:
+ * html/HTMLMediaElement.h:
+ (HTMLMediaElement):
+ * loader/FrameLoaderClient.h:
+ * platform/graphics/MediaPlayer.h:
+ (MediaPlayer):
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL):
+
2012-09-10 Dimitri Glazkov <dglazkov@chromium.org>
Reduce the number of treeScope queries when matching rules.
return mediaPlayerOwningDocument()->view()->windowClipRect();
}
-bool HTMLMediaElement::mediaPlayerShouldSendDoNotTrackHTTPHeader() const
-{
- Frame* frame = document()->frame();
- if (!frame)
- return false;
-
- FrameLoaderClient* client = frame->loader()->client();
- if (!client)
- return false;
-
- return client->shouldSendDoNotTrackHTTPHeader();
-}
-
void HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture()
{
m_restrictions = NoRestrictions;
virtual bool mediaPlayerIsPaused() const OVERRIDE;
virtual HostWindow* mediaPlayerHostWindow() OVERRIDE;
virtual IntRect mediaPlayerWindowClipRect() OVERRIDE;
- virtual bool mediaPlayerShouldSendDoNotTrackHTTPHeader() const OVERRIDE;
#if PLATFORM(WIN) && USE(AVFOUNDATION)
virtual GraphicsDeviceAdapter* mediaPlayerGraphicsDeviceAdapter(const MediaPlayer*) const OVERRIDE;
virtual void dispatchWillDisconnectDOMWindowExtensionFromGlobalObject(DOMWindowExtension*) { }
virtual void dispatchDidReconnectDOMWindowExtensionToGlobalObject(DOMWindowExtension*) { }
virtual void dispatchWillDestroyGlobalObjectForDOMWindowExtension(DOMWindowExtension*) { }
-
- virtual bool shouldSendDoNotTrackHTTPHeader() const { return false; }
};
} // namespace WebCore
virtual bool mediaPlayerIsPaused() const { return true; }
virtual HostWindow* mediaPlayerHostWindow() { return 0; }
virtual IntRect mediaPlayerWindowClipRect() { return IntRect(); }
-
- virtual bool mediaPlayerShouldSendDoNotTrackHTTPHeader() const { return false; }
};
class MediaPlayerSupportsTypeClient {
String engineDescription() const;
- bool shouldSendDoNotTrackHTTPHeader() const;
-
private:
MediaPlayer(MediaPlayerClient*);
void loadWithNextMediaEngine(MediaPlayerFactory*);
if (!userAgent.isEmpty())
[headerFields.get() setObject:userAgent forKey:@"User-Agent"];
- if (player()->mediaPlayerClient()->mediaPlayerShouldSendDoNotTrackHTTPHeader())
- [headerFields.get() setObject:@"1" forKey:@"DNT"];
-
if ([headerFields.get() count])
[options.get() setObject:headerFields.get() forKey:@"AVURLAssetHTTPHeaderFieldsKey"];
#endif
+2012-09-10 Jer Noble <jer.noble@apple.com>
+
+ Unreviewed; rolling out r128081.
+ http://trac.webkit.org/changeset/128081
+ https://bugs.webkit.org/show_bug.cgi?id=96134
+
+ New test http/tests/media/video-donottrack.html fails to run on Apple test bots.
+
+ * WebCoreSupport/WebFrameLoaderClient.h:
+ * WebCoreSupport/WebFrameLoaderClient.mm:
+ * WebView/WebDelegateImplementationCaching.h:
+ (WebFrameLoadDelegateImplementationCache):
+ * WebView/WebDelegateImplementationCaching.mm:
+ * WebView/WebView.mm:
+ (-[WebView _cacheFrameLoadDelegateImplementations]):
+
2012-09-07 Jon Lee <jonlee@apple.com>
Update notifications to latest spec
#if PLATFORM(MAC)
virtual RemoteAXObjectRef accessibilityRemoteObject() OVERRIDE { return 0; }
#endif
-
- virtual bool shouldSendDoNotTrackHTTPHeader() const OVERRIDE;
RetainPtr<WebFramePolicyListener> setUpPolicyListener(WebCore::FramePolicyFunction);
}
#endif
-bool WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader() const
-{
- WebView *webView = getWebView(m_webFrame.get());
- WebFrameLoadDelegateImplementationCache* implementations = WebViewGetFrameLoadDelegateImplementations(webView);
-
- if (implementations->shouldSendDoNotTrackHTTPHeaderFunc)
- return CallFrameLoadDelegateReturningBoolean(YES, implementations->shouldSendDoNotTrackHTTPHeaderFunc, webView, @selector(webViewShouldSendDoNotTrackHTTPHeader:));
- return false;
-}
-
@implementation WebFramePolicyListener
+ (void)initialize
{
IMP didDisplayInsecureContentFunc;
IMP didRunInsecureContentFunc;
IMP didDetectXSSFunc;
- IMP shouldSendDoNotTrackHTTPHeaderFunc;
};
struct WebScriptDebugDelegateImplementationCache {
id CallResourceLoadDelegate(IMP, WebView *, SEL, id, NSInteger, id);
id CallResourceLoadDelegate(IMP, WebView *, SEL, id, id, NSInteger, id);
-BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL);
BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL, id);
BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL, id, id);
BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL, id, id, id);
return CallDelegate(implementation, self, self->_private->resourceProgressDelegate, selector, object1, object2, integer, object3);
}
-BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector)
-{
- @try {
- return reinterpret_cast<BOOL (*)(id, SEL, WebView *)>(objc_msgSend)(self->_private->resourceProgressDelegate, selector, self);
- } @catch(id exception) {
- ReportDiscardedDelegateException(selector, exception);
- }
- return result;
-}
-
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1)
{
@try {
cache->didDisplayInsecureContentFunc = getMethod(delegate, @selector(webViewDidDisplayInsecureContent:));
cache->didRunInsecureContentFunc = getMethod(delegate, @selector(webView:didRunInsecureContent:));
cache->didDetectXSSFunc = getMethod(delegate, @selector(webView:didDetectXSS:));
- cache->shouldSendDoNotTrackHTTPHeaderFunc = getMethod(delegate, @selector(webViewShouldSendDoNotTrackHTTPHeader:));
}
- (void)_cacheScriptDebugDelegateImplementations
+2012-09-10 Jer Noble <jer.noble@apple.com>
+
+ Unreviewed; rolling out r128081.
+ http://trac.webkit.org/changeset/128081
+ https://bugs.webkit.org/show_bug.cgi?id=96134
+
+ New test http/tests/media/video-donottrack.html fails to run on Apple test bots.
+
+ * Shared/APIClientTraits.h:
+ * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
+ * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
+ * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
+ (InjectedBundlePageLoaderClient):
+ * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+ * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
+ (WebFrameLoaderClient):
+ * WebProcess/qt/QtBuiltinBundlePage.cpp:
+ (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
+
2012-09-07 Jon Lee <jonlee@apple.com>
Update notifications to latest spec
};
template<> struct APIClientTraits<WKBundlePageLoaderClient> {
- static const size_t interfaceSizesByVersion[5];
+ static const size_t interfaceSizesByVersion[4];
};
template<> struct APIClientTraits<WKBundlePageResourceLoadClient> {
typedef bool (*WKBundlePageShouldForceUniversalAccessFromLocalURLCallback)(WKBundlePageRef, WKStringRef url, const void* clientInfo);
typedef void (*WKBundlePageDidReceiveIntentForFrameCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKBundleIntentRequestRef intentRequest, WKTypeRef* userData, const void* clientInfo);
typedef void (*WKBundlePageRegisterIntentServiceForFrameCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKIntentServiceInfoRef serviceInfo, WKTypeRef* userData, const void* clientInfo);
-typedef bool (*WKBundlePageShouldSendDoNotTrackHTTPHeaderCallback)(WKBundlePageRef page, const void* clientInfo);
struct WKBundlePageLoaderClient {
int version;
// Version 3
WKBundlePageDidReceiveIntentForFrameCallback didReceiveIntentForFrame;
WKBundlePageRegisterIntentServiceForFrameCallback registerIntentServiceForFrame;
-
- // Version 4
- WKBundlePageShouldSendDoNotTrackHTTPHeaderCallback shouldSendDoNotTrackHTTPHeader;
};
typedef struct WKBundlePageLoaderClient WKBundlePageLoaderClient;
-enum { kWKBundlePageLoaderClientCurrentVersion = 4 };
+enum { kWKBundlePageLoaderClientCurrentVersion = 3 };
enum {
WKBundlePagePolicyActionPassThrough,
return m_client.shouldForceUniversalAccessFromLocalURL(toAPI(page), toAPI(url.impl()), m_client.clientInfo);
}
-bool InjectedBundlePageLoaderClient::shouldSendDoNotTrackHTTPHeader(WebPage* page)
-{
- if (!m_client.shouldSendDoNotTrackHTTPHeader)
- return false;
-
- return m_client.shouldSendDoNotTrackHTTPHeader(toAPI(page), m_client.clientInfo);
-}
-
} // namespace WebKit
void willDestroyGlobalObjectForDOMWindowExtension(WebPage*, WebCore::DOMWindowExtension*);
bool shouldForceUniversalAccessFromLocalURL(WebPage*, const String& url);
- bool shouldSendDoNotTrackHTTPHeader(WebPage*);
};
} // namespace WebKit
return webPage->injectedBundleLoaderClient().shouldForceUniversalAccessFromLocalURL(webPage, url.string());
}
-bool WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader() const
-{
- WebPage* webPage = m_frame->page();
- if (!webPage)
- return false;
-
- return webPage->injectedBundleLoaderClient().shouldSendDoNotTrackHTTPHeader(webPage);
-}
-
PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext()
{
RefPtr<WebFrameNetworkingContext> context = WebFrameNetworkingContext::create(m_frame);
virtual bool shouldForceUniversalAccessFromLocalURL(const WebCore::KURL&) OVERRIDE;
- virtual bool shouldSendDoNotTrackHTTPHeader() const OVERRIDE;
-
virtual PassRefPtr<WebCore::FrameNetworkingContext> createNetworkingContext() OVERRIDE;
WebFrame* m_frame;
0, // shouldForceUniversalAccessFromLocalURL
0, // didReceiveIntentForFrame
0, // registerIntentServiceForFrame
- 0, // shouldSendDoNotTrackHTTPHeader
};
WKBundlePageSetPageLoaderClient(m_page, &loaderClient);
}
+2012-09-10 Jer Noble <jer.noble@apple.com>
+
+ Unreviewed; rolling out r128081.
+ http://trac.webkit.org/changeset/128081
+ https://bugs.webkit.org/show_bug.cgi?id=96134
+
+ New test http/tests/media/video-donottrack.html fails to run on Apple test bots.
+
+ * DumpRenderTree/TestRunner.cpp:
+ (TestRunner::TestRunner):
+ (TestRunner::staticFunctions):
+ * DumpRenderTree/TestRunner.h:
+ (TestRunner):
+ * DumpRenderTree/mac/FrameLoadDelegate.mm:
+ * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
+ * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
+ (WTR::InjectedBundlePage::InjectedBundlePage):
+ * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
+ (InjectedBundlePage):
+ * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
+ (WTR::TestRunner::TestRunner):
+ * WebKitTestRunner/InjectedBundle/TestRunner.h:
+ (TestRunner):
+
2012-09-10 Christophe Dumez <christophe.dumez@intel.com>
TestExpectationsChecker._determine_port_from_expectations_path() does not support cascaded TestExpectations
, m_shouldPaintBrokenImage(true)
, m_shouldStayOnPageAfterHandlingBeforeUnload(false)
, m_areLegacyWebNotificationPermissionRequestsIgnored(false)
- , m_customFullScreenBehavior(false)
+ , m_customFullScreenBehavior(false)
, m_hasPendingWebNotificationClick(false)
- , m_shouldSendDoNotTrackHTTPHeader(false)
, m_testPathOrURL(testPathOrURL)
, m_expectedPixelHash(expectedPixelHash)
, m_titleTextDirection("ltr")
return JSValueMakeUndefined(context);
}
-static JSValueRef setShouldSendDoNotTrackHTTPHeaderCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
-{
- if (argumentCount < 1)
- return JSValueMakeUndefined(context);
-
- TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject));
- controller->setShouldSendDoNotTrackHTTPHeader(JSValueToBoolean(context, arguments[0]));
- return JSValueMakeUndefined(context);
-}
-
static JSValueRef numberOfPendingGeolocationPermissionRequestsCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject));
{ "denyWebNotificationPermission", denyWebNotificationPermissionCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "removeAllWebNotificationPermissions", removeAllWebNotificationPermissionsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "simulateWebNotificationClick", simulateWebNotificationClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
- { "setShouldSendDoNotTrackHTTPHeader", setShouldSendDoNotTrackHTTPHeaderCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ 0, 0, 0 }
};
bool hasPendingWebNotificationClick() const { return m_hasPendingWebNotificationClick; }
- void setShouldSendDoNotTrackHTTPHeader(bool value) { m_shouldSendDoNotTrackHTTPHeader = value; }
- bool shouldSendDoNotTrackHTTPHeader() const { return m_shouldSendDoNotTrackHTTPHeader; }
-
private:
TestRunner(const std::string& testPathOrURL, const std::string& expectedPixelHash);
bool m_areLegacyWebNotificationPermissionRequestsIgnored;
bool m_customFullScreenBehavior;
bool m_hasPendingWebNotificationClick;
- bool m_shouldSendDoNotTrackHTTPHeader;
std::string m_authenticationUsername;
std::string m_authenticationPassword;
printf ("postProgressFinishedNotification\n");
}
-- (BOOL)webViewShouldSendDoNotTrackHTTPHeader:(WebView*)sender
-{
- return gTestRunner->shouldSendDoNotTrackHTTPHeader();
-}
-
@end
void denyWebNotificationPermission(in DOMString origin);
void removeAllWebNotificationPermissions();
void simulateWebNotificationClick(in object notification);
-
- // Do Not Track support
- void setShouldSendDoNotTrackHTTPHeader(in boolean flag);
};
}
didFinishProgress, // didFinishProgress
0, // shouldForceUniversalAccessFromLocalURL
didReceiveIntentForFrame, // didReceiveIntentForFrame
- registerIntentServiceForFrame, // registerIntentServiceForFrame
- shouldSendDoNotTrackHTTPHeader
+ registerIntentServiceForFrame // registerIntentServiceForFrame
};
WKBundlePageSetPageLoaderClient(m_page, &loaderClient);
#endif
}
-bool InjectedBundlePage::shouldSendDoNotTrackHTTPHeader(WKBundlePageRef page, const void* clientInfo)
-{
- return static_cast<InjectedBundlePage*>(const_cast<void*>(clientInfo))->shouldSendDoNotTrackHTTPHeader();
-}
-
void InjectedBundlePage::didFinishDocumentLoadForFrame(WKBundlePageRef page, WKBundleFrameRef frame, WKTypeRef*, const void* clientInfo)
{
static_cast<InjectedBundlePage*>(const_cast<void*>(clientInfo))->didFinishDocumentLoadForFrame(frame);
InjectedBundle::shared().stringBuilder()->append("postProgressFinishedNotification\n");
}
-bool InjectedBundlePage::shouldSendDoNotTrackHTTPHeader()
-{
- return InjectedBundle::shared().testRunner()->shouldSendDoNotTrackHTTPHeader();
-}
-
enum FrameNamePolicy { ShouldNotIncludeFrameName, ShouldIncludeFrameName };
static void dumpFrameScrollPosition(WKBundleFrameRef frame, FrameNamePolicy shouldIncludeFrameName = ShouldNotIncludeFrameName)
static bool shouldCacheResponse(WKBundlePageRef, WKBundleFrameRef, uint64_t identifier, const void*);
static void didReceiveIntentForFrame(WKBundlePageRef, WKBundleFrameRef, WKBundleIntentRequestRef, WKTypeRef*, const void*);
static void registerIntentServiceForFrame(WKBundlePageRef, WKBundleFrameRef, WKIntentServiceInfoRef, WKTypeRef*, const void*);
- static bool shouldSendDoNotTrackHTTPHeader(WKBundlePageRef, const void*);
void didStartProvisionalLoadForFrame(WKBundleFrameRef);
void didReceiveServerRedirectForProvisionalLoadForFrame(WKBundleFrameRef);
void dumpAllFramesText();
void dumpAllFrameScrollPositions();
- bool shouldSendDoNotTrackHTTPHeader();
-
WKBundlePageRef m_page;
WKRetainPtr<WKBundleScriptWorldRef> m_world;
WKRetainPtr<WKBundleBackForwardListItemRef> m_previousTestBackForwardListItem;
, m_customFullScreenBehavior(false)
, m_userStyleSheetEnabled(false)
, m_userStyleSheetLocation(adoptWK(WKStringCreateWithUTF8CString("")))
- , m_shouldSendDoNotTrackHTTPHeader(false)
{
platformInitialize();
}
void setPageVisibility(JSStringRef state);
void resetPageVisibility();
- bool shouldSendDoNotTrackHTTPHeader() const { return m_shouldSendDoNotTrackHTTPHeader; }
- void setShouldSendDoNotTrackHTTPHeader(bool flag) { m_shouldSendDoNotTrackHTTPHeader = flag; }
-
private:
static const double waitToDumpWatchdogTimerInterval;
WKRetainPtr<WKStringRef> m_userStyleSheetLocation;
PlatformTimerRef m_waitToDumpWatchdogTimer;
-
- bool m_shouldSendDoNotTrackHTTPHeader;
};
} // namespace WTR