Changeset 128081 in webkit
- Timestamp:
- Sep 10, 2012 11:11:04 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r128080 r128081 1 2012-09-07 Jer Noble <jer.noble@apple.com> 2 3 <audio> and <video> should send Do Not Track when appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=96134 5 6 Reviewed by Eric Carlson. 7 8 Add a new HTTP test ensuring the DNT header is passed correctly during video tests. 9 10 * http/tests/media/resources/video-donottrack-check-donottrack.php: Added. 11 * http/tests/media/video-donottrack-expected.txt: Added. 12 * http/tests/media/video-donottrack.html: Added. 13 14 Skip the new tests on platforms which do not support it: 15 * platform/chromium/TestExpectations: 16 * platform/efl/TestExpectations: 17 * platform/gtk/TestExpectations: 18 * platform/qt/TestExpectations: 19 * platform/win/Skipped: 20 1 21 2012-08-31 Jon Lee <jonlee@apple.com> 2 22 -
trunk/LayoutTests/platform/chromium/TestExpectations
r128075 r128081 1473 1473 BUGCR8729 WIN : http/tests/multipart/invalid-image-data.html = IMAGE+TEXT 1474 1474 1475 BUGWK96287 : http/tests/media/video-donottrack.html = TEXT 1476 1475 1477 // ----------------------------------------------------------------- 1476 1478 // MAC PORT TESTS -
trunk/LayoutTests/platform/efl/TestExpectations
r128049 r128081 166 166 // The EFL port has no support for accessibility features 167 167 BUGWKEFL SKIP : accessibility = TEXT 168 169 // Missing DNT support for HTMLMediaElement 170 BUGWK96292 : http/tests/media/video-donottrack.html = TEXT 168 171 169 172 ////////////////////////////////////////////////////////////////////////////////////////// -
trunk/LayoutTests/platform/gtk/TestExpectations
r128044 r128081 1317 1317 BUGWK96226 : fast/spatial-navigation/snav-imagemap-overlapped-areas.html = TEXT 1318 1318 1319 BUGWK96290 : http/tests/media/video-donottrack.html = TEXT 1320 1319 1321 ////////////////////////////////////////////////////////////////////////////////////////// 1320 1322 // End of Tests failing -
trunk/LayoutTests/platform/qt/TestExpectations
r127935 r128081 139 139 BUGWK94006 : fast/css/word-spacing-characters-complex-text.html = IMAGE 140 140 141 // Added by bug 96134 142 BUGWK96292 : http/tests/media/video-donottrack.html = TEXT -
trunk/LayoutTests/platform/win/Skipped
r128041 r128081 2219 2219 # Windows does not have global selection. 2220 2220 editing/pasteboard/paste-global-selection.html 2221 2222 # https://bugs.webkit.org/show_bug.cgi?id=96293 2223 http/tests/media/video-donottrack.html -
trunk/Source/WebCore/ChangeLog
r128080 r128081 1 2012-09-07 Jer Noble <jer.noble@apple.com> 2 3 <audio> and <video> should send Do Not Track when appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=96134 5 6 Reviewed by Eric Carlson. 7 8 Add a FrameLoaderClient function to determine whether the DNT header should be sent, 9 and plumb that new function down into the MediaPlayerPrivateAVFoundationObjC class. 10 11 Test: http/tests/media/video-donottrack.html 12 13 * html/HTMLMediaElement.cpp: 14 (WebCore::HTMLMediaElement::mediaPlayerShouldSendDoNotTrackHTTPHeader): 15 Pass the question on through to the FrameLoaderClient. 16 * html/HTMLMediaElement.h: 17 * loader/FrameLoaderClient.h: 18 (WebCore::FrameLoaderClient::shouldSendDoNotTrackHTTPHeader): 19 Call through to the implementation in WebKit or WebKit2. 20 * platform/graphics/MediaPlayer.h: 21 (WebCore::MediaPlayerClient::mediaPlayerShouldSendDoNotTrackHTTPHeader): 22 Pass the question on to the HTMLMediaElement. 23 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 24 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): 25 If we should send the DNT header, add it to the header options array 26 when creating the AVAsset. 27 1 28 2012-08-31 Jon Lee <jonlee@apple.com> 2 29 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r127949 r128081 4488 4488 } 4489 4489 4490 bool HTMLMediaElement::mediaPlayerShouldSendDoNotTrackHTTPHeader() const 4491 { 4492 Frame* frame = document()->frame(); 4493 if (!frame) 4494 return false; 4495 4496 FrameLoaderClient* client = frame->loader()->client(); 4497 if (!client) 4498 return false; 4499 4500 return client->shouldSendDoNotTrackHTTPHeader(); 4501 } 4502 4490 4503 void HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture() 4491 4504 { -
trunk/Source/WebCore/html/HTMLMediaElement.h
r127035 r128081 434 434 virtual HostWindow* mediaPlayerHostWindow() OVERRIDE; 435 435 virtual IntRect mediaPlayerWindowClipRect() OVERRIDE; 436 virtual bool mediaPlayerShouldSendDoNotTrackHTTPHeader() const OVERRIDE; 436 437 437 438 #if PLATFORM(WIN) && USE(AVFOUNDATION) -
trunk/Source/WebCore/loader/FrameLoaderClient.h
r120168 r128081 344 344 virtual void dispatchDidReconnectDOMWindowExtensionToGlobalObject(DOMWindowExtension*) { } 345 345 virtual void dispatchWillDestroyGlobalObjectForDOMWindowExtension(DOMWindowExtension*) { } 346 347 virtual bool shouldSendDoNotTrackHTTPHeader() const { return false; } 346 348 }; 347 349 -
trunk/Source/WebCore/platform/graphics/MediaPlayer.h
r127675 r128081 203 203 virtual HostWindow* mediaPlayerHostWindow() { return 0; } 204 204 virtual IntRect mediaPlayerWindowClipRect() { return IntRect(); } 205 206 virtual bool mediaPlayerShouldSendDoNotTrackHTTPHeader() const { return false; } 205 207 }; 206 208 … … 419 421 420 422 String engineDescription() const; 423 424 bool shouldSendDoNotTrackHTTPHeader() const; 421 425 422 426 private: -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r125318 r128081 297 297 if (!userAgent.isEmpty()) 298 298 [headerFields.get() setObject:userAgent forKey:@"User-Agent"]; 299 300 if (player()->mediaPlayerClient()->mediaPlayerShouldSendDoNotTrackHTTPHeader()) 301 [headerFields.get() setObject:@"1" forKey:@"DNT"]; 299 302 300 303 if ([headerFields.get() count]) -
trunk/Source/WebKit/mac/ChangeLog
r127958 r128081 1 2012-09-07 Jer Noble <jer.noble@apple.com> 2 3 <audio> and <video> should send Do Not Track when appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=96134 5 6 Reviewed by Eric Carlson. 7 8 Add support for the shouldSendDoNotTrackHTTPHeader by passing the request 9 on to the WebFrameLoadDelegate. 10 11 * WebCoreSupport/WebFrameLoaderClient.h: 12 * WebCoreSupport/WebFrameLoaderClient.mm: 13 (WebFrameLoaderClient::shouldSendDoNotTrackHeader): 14 Pass the question on to the WebFrameLoadDelegate. 15 * WebView/WebDelegateImplementationCaching.h: 16 (WebFrameLoadDelegateImplementationCache): 17 Add an entry for the delegate's webViewShouldSendDoNotTrackHeader method. 18 * WebView/WebDelegateImplementationCaching.mm: 19 (CallResourceLoadDelegateReturningBoolean): Added a 0-parameter overloaded function. 20 * WebView/WebView.mm: 21 (-[WebView _cacheFrameLoadDelegateImplementations]): initialize the 22 cached value for shouldSendDoNotTrackHeaderFunc. 23 1 24 2012-09-07 Benjamin Poulain <bpoulain@apple.com> 2 25 -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.h
r115926 r128081 228 228 virtual RemoteAXObjectRef accessibilityRemoteObject() OVERRIDE { return 0; } 229 229 #endif 230 231 virtual bool shouldSendDoNotTrackHTTPHeader() const OVERRIDE; 230 232 231 233 RetainPtr<WebFramePolicyListener> setUpPolicyListener(WebCore::FramePolicyFunction); -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
r127876 r128081 1981 1981 #endif 1982 1982 1983 bool WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader() const 1984 { 1985 WebView *webView = getWebView(m_webFrame.get()); 1986 WebFrameLoadDelegateImplementationCache* implementations = WebViewGetFrameLoadDelegateImplementations(webView); 1987 1988 if (implementations->shouldSendDoNotTrackHTTPHeaderFunc) 1989 return CallResourceLoadDelegateReturningBoolean(YES, implementations->shouldSendDoNotTrackHTTPHeaderFunc, webView, @selector(webViewShouldSendDoNotTrackHTTPHeader:)); 1990 return false; 1991 } 1992 1983 1993 @implementation WebFramePolicyListener 1984 1994 + (void)initialize -
trunk/Source/WebKit/mac/WebView/WebDelegateImplementationCaching.h
r99096 r128081 79 79 IMP didRunInsecureContentFunc; 80 80 IMP didDetectXSSFunc; 81 IMP shouldSendDoNotTrackHTTPHeaderFunc; 81 82 }; 82 83 … … 136 137 id CallResourceLoadDelegate(IMP, WebView *, SEL, id, id, NSInteger, id); 137 138 139 BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL); 138 140 BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL, id); 139 141 BOOL CallResourceLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL, id, id); -
trunk/Source/WebKit/mac/WebView/WebDelegateImplementationCaching.mm
r127306 r128081 501 501 } 502 502 503 BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector) 504 { 505 @try { 506 return reinterpret_cast<BOOL (*)(id, SEL, WebView *)>(objc_msgSend)(self->_private->resourceProgressDelegate, selector, self); 507 } @catch(id exception) { 508 ReportDiscardedDelegateException(selector, exception); 509 } 510 return result; 511 } 512 503 513 BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1) 504 514 { -
trunk/Source/WebKit/mac/WebView/WebView.mm
r127639 r128081 1630 1630 cache->didRunInsecureContentFunc = getMethod(delegate, @selector(webView:didRunInsecureContent:)); 1631 1631 cache->didDetectXSSFunc = getMethod(delegate, @selector(webView:didDetectXSS:)); 1632 cache->shouldSendDoNotTrackHTTPHeaderFunc = getMethod(delegate, @selector(webViewShouldSendDoNotTrackHTTPHeader:)); 1632 1633 } 1633 1634 -
trunk/Source/WebKit2/ChangeLog
r128063 r128081 1 2012-09-07 Jer Noble <jer.noble@apple.com> 2 3 <audio> and <video> should send Do Not Track when appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=96134 5 6 Reviewed by Eric Carlson. 7 8 Add support for the shouldSendDoNotTrackHTTPHeader by passing the request 9 on to the WebFrameLoadDelegate. 10 11 * Shared/APIClientTraits.cpp: Increment the interfaceSizes for 12 WKBundlePageLoaderClient by the value of the new functions. 13 * Shared/APIClientTraits.h: Ditto. 14 * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Add a new API to 15 WKBundlePageLoaderClient and bump the version number. 16 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp: 17 (WebKit::InjectedBundlePageLoaderClient::shouldSendDoNotTrackHTTPHeader): 18 Pass the question on to the client. 19 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: 20 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 21 (WebKit::WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader): 22 Pass the question on to the bundle. 23 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: 24 * WebProcess/qt/QtBuiltinBundlePage.cpp: 25 (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage): 26 Add an entry for the new function in the Qt loader client. 27 1 28 2012-09-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 29 -
trunk/Source/WebKit2/Shared/APIClientTraits.h
r126311 r128081 44 44 45 45 template<> struct APIClientTraits<WKBundlePageLoaderClient> { 46 static const size_t interfaceSizesByVersion[ 4];46 static const size_t interfaceSizesByVersion[5]; 47 47 }; 48 48 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h
r125670 r128081 112 112 typedef void (*WKBundlePageDidReceiveIntentForFrameCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKBundleIntentRequestRef intentRequest, WKTypeRef* userData, const void* clientInfo); 113 113 typedef void (*WKBundlePageRegisterIntentServiceForFrameCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKIntentServiceInfoRef serviceInfo, WKTypeRef* userData, const void* clientInfo); 114 typedef bool (*WKBundlePageShouldSendDoNotTrackHTTPHeaderCallback)(WKBundlePageRef page, const void* clientInfo); 114 115 115 116 struct WKBundlePageLoaderClient { … … 154 155 WKBundlePageDidReceiveIntentForFrameCallback didReceiveIntentForFrame; 155 156 WKBundlePageRegisterIntentServiceForFrameCallback registerIntentServiceForFrame; 157 158 // Version 4 159 WKBundlePageShouldSendDoNotTrackHTTPHeaderCallback shouldSendDoNotTrackHTTPHeader; 156 160 }; 157 161 typedef struct WKBundlePageLoaderClient WKBundlePageLoaderClient; 158 162 159 enum { kWKBundlePageLoaderClientCurrentVersion = 3};163 enum { kWKBundlePageLoaderClientCurrentVersion = 4 }; 160 164 161 165 enum { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
r123652 r128081 336 336 } 337 337 338 bool InjectedBundlePageLoaderClient::shouldSendDoNotTrackHTTPHeader(WebPage* page) 339 { 340 if (!m_client.shouldSendDoNotTrackHTTPHeader) 341 return false; 342 343 return m_client.shouldSendDoNotTrackHTTPHeader(toAPI(page), m_client.clientInfo); 344 } 345 338 346 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h
r123652 r128081 95 95 96 96 bool shouldForceUniversalAccessFromLocalURL(WebPage*, const String& url); 97 bool shouldSendDoNotTrackHTTPHeader(WebPage*); 97 98 }; 98 99 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r127420 r128081 1623 1623 } 1624 1624 1625 bool WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader() const 1626 { 1627 WebPage* webPage = m_frame->page(); 1628 if (!webPage) 1629 return false; 1630 1631 return webPage->injectedBundleLoaderClient().shouldSendDoNotTrackHTTPHeader(webPage); 1632 } 1633 1625 1634 PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext() 1626 1635 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h
r120301 r128081 242 242 virtual bool shouldForceUniversalAccessFromLocalURL(const WebCore::KURL&) OVERRIDE; 243 243 244 virtual bool shouldSendDoNotTrackHTTPHeader() const OVERRIDE; 245 244 246 virtual PassRefPtr<WebCore::FrameNetworkingContext> createNetworkingContext() OVERRIDE; 245 247 -
trunk/Source/WebKit2/WebProcess/qt/QtBuiltinBundlePage.cpp
r123374 r128081 79 79 0, // didReceiveIntentForFrame 80 80 0, // registerIntentServiceForFrame 81 0, // shouldSendDoNotTrackHTTPHeader 81 82 }; 82 83 WKBundlePageSetPageLoaderClient(m_page, &loaderClient); -
trunk/Tools/ChangeLog
r128077 r128081 1 2012-09-07 Jer Noble <jer.noble@apple.com> 2 3 <audio> and <video> should send Do Not Track when appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=96134 5 6 Reviewed by Eric Carlson. 7 8 Add a testRunner JS API for calling setShouldSendDoNotTrackHTTPHeader to DRT and 9 WTR. Add FrameLoaderClient client methods for retrieving that value. 10 11 * DumpRenderTree/TestRunner.cpp: 12 (setShouldSendDoNotTrackHTTPHeaderCallback): Pass through to the TestRunner. 13 (TestRunner::staticFunctions): Add the setShouldSendDoNotTrackHTTPHeader function. 14 * DumpRenderTree/TestRunner.h: 15 (TestRunner::setShouldSendDoNotTrackHTTPHeader): Simple setter. 16 (TestRunner::shouldSendDoNotTrackHTTPHeader): Simple getter. 17 * DumpRenderTree/mac/FrameLoadDelegate.mm: 18 (-[FrameLoadDelegate webViewShouldSendDoNotTrackHTTPHeader:]): 19 Pass the question on to the TestRunner. 20 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: 21 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 22 (WTR::InjectedBundlePage::InjectedBundlePage): 23 Add the setShouldSendDoNotTrackHTTPHeader client function. 24 (WTR::InjectedBundlePage::shouldSendDoNotTrackHTTPHeader): 25 Pass the question on to the TestRunner. 26 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: 27 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: 28 * WebKitTestRunner/InjectedBundle/TestRunner.h: 29 (WTR::TestRunner::shouldSendDoNotTrackHTTPHeader): Simple getter. 30 (WTR::TestRunner::setShouldSendDoNotTrackHTTPHeader): Simple Setter. 31 1 32 2012-09-10 Ojan Vafai <ojan@chromium.org> 2 33 -
trunk/Tools/DumpRenderTree/TestRunner.cpp
r127577 r128081 94 94 , m_shouldStayOnPageAfterHandlingBeforeUnload(false) 95 95 , m_areLegacyWebNotificationPermissionRequestsIgnored(false) 96 , m_customFullScreenBehavior(false) 96 , m_customFullScreenBehavior(false) 97 97 , m_hasPendingWebNotificationClick(false) 98 , m_shouldSendDoNotTrackHTTPHeader(false) 98 99 , m_testPathOrURL(testPathOrURL) 99 100 , m_expectedPixelHash(expectedPixelHash) … … 713 714 TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject)); 714 715 controller->notifyDone(); 716 return JSValueMakeUndefined(context); 717 } 718 719 static JSValueRef setShouldSendDoNotTrackHTTPHeaderCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 720 { 721 if (argumentCount < 1) 722 return JSValueMakeUndefined(context); 723 724 TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject)); 725 controller->setShouldSendDoNotTrackHTTPHeader(JSValueToBoolean(context, arguments[0])); 715 726 return JSValueMakeUndefined(context); 716 727 } … … 2328 2339 { "removeAllWebNotificationPermissions", removeAllWebNotificationPermissionsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2329 2340 { "simulateWebNotificationClick", simulateWebNotificationClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2341 { "setShouldSendDoNotTrackHTTPHeader", setShouldSendDoNotTrackHTTPHeaderCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2330 2342 { 0, 0, 0 } 2331 2343 }; -
trunk/Tools/DumpRenderTree/TestRunner.h
r127577 r128081 368 368 bool hasPendingWebNotificationClick() const { return m_hasPendingWebNotificationClick; } 369 369 370 void setShouldSendDoNotTrackHTTPHeader(bool value) { m_shouldSendDoNotTrackHTTPHeader = value; } 371 bool shouldSendDoNotTrackHTTPHeader() const { return m_shouldSendDoNotTrackHTTPHeader; } 372 370 373 private: 371 374 TestRunner(const std::string& testPathOrURL, const std::string& expectedPixelHash); … … 424 427 bool m_customFullScreenBehavior; 425 428 bool m_hasPendingWebNotificationClick; 429 bool m_shouldSendDoNotTrackHTTPHeader; 426 430 427 431 std::string m_authenticationUsername; -
trunk/Tools/DumpRenderTree/mac/FrameLoadDelegate.mm
r125516 r128081 431 431 } 432 432 433 @end 433 - (BOOL)webViewShouldSendDoNotTrackHTTPHeader:(WebView*)sender 434 { 435 return gTestRunner->shouldSendDoNotTrackHTTPHeader(); 436 } 437 438 @end -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
r127578 r128081 166 166 void removeAllWebNotificationPermissions(); 167 167 void simulateWebNotificationClick(in object notification); 168 169 // Do Not Track support 170 void setShouldSendDoNotTrackHTTPHeader(in boolean flag); 168 171 }; 169 172 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r127578 r128081 305 305 0, // shouldForceUniversalAccessFromLocalURL 306 306 didReceiveIntentForFrame, // didReceiveIntentForFrame 307 registerIntentServiceForFrame // registerIntentServiceForFrame 307 registerIntentServiceForFrame, // registerIntentServiceForFrame 308 shouldSendDoNotTrackHTTPHeader 308 309 }; 309 310 WKBundlePageSetPageLoaderClient(m_page, &loaderClient); … … 622 623 } 623 624 625 bool InjectedBundlePage::shouldSendDoNotTrackHTTPHeader(WKBundlePageRef page, const void* clientInfo) 626 { 627 return static_cast<InjectedBundlePage*>(const_cast<void*>(clientInfo))->shouldSendDoNotTrackHTTPHeader(); 628 } 629 624 630 void InjectedBundlePage::didFinishDocumentLoadForFrame(WKBundlePageRef page, WKBundleFrameRef frame, WKTypeRef*, const void* clientInfo) 625 631 { … … 775 781 776 782 InjectedBundle::shared().stringBuilder()->append("postProgressFinishedNotification\n"); 783 } 784 785 bool InjectedBundlePage::shouldSendDoNotTrackHTTPHeader() 786 { 787 return InjectedBundle::shared().testRunner()->shouldSendDoNotTrackHTTPHeader(); 777 788 } 778 789 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h
r127578 r128081 81 81 static void didReceiveIntentForFrame(WKBundlePageRef, WKBundleFrameRef, WKBundleIntentRequestRef, WKTypeRef*, const void*); 82 82 static void registerIntentServiceForFrame(WKBundlePageRef, WKBundleFrameRef, WKIntentServiceInfoRef, WKTypeRef*, const void*); 83 static bool shouldSendDoNotTrackHTTPHeader(WKBundlePageRef, const void*); 83 84 84 85 void didStartProvisionalLoadForFrame(WKBundleFrameRef); … … 169 170 void dumpAllFrameScrollPositions(); 170 171 172 bool shouldSendDoNotTrackHTTPHeader(); 173 171 174 WKBundlePageRef m_page; 172 175 WKRetainPtr<WKBundleScriptWorldRef> m_world; -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r127578 r128081 91 91 , m_userStyleSheetEnabled(false) 92 92 , m_userStyleSheetLocation(adoptWK(WKStringCreateWithUTF8CString(""))) 93 , m_shouldSendDoNotTrackHTTPHeader(false) 93 94 { 94 95 platformInitialize(); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r127578 r128081 236 236 void resetPageVisibility(); 237 237 238 bool shouldSendDoNotTrackHTTPHeader() const { return m_shouldSendDoNotTrackHTTPHeader; } 239 void setShouldSendDoNotTrackHTTPHeader(bool flag) { m_shouldSendDoNotTrackHTTPHeader = flag; } 240 238 241 private: 239 242 static const double waitToDumpWatchdogTimerInterval; … … 277 280 278 281 PlatformTimerRef m_waitToDumpWatchdogTimer; 282 283 bool m_shouldSendDoNotTrackHTTPHeader; 279 284 }; 280 285
Note: See TracChangeset
for help on using the changeset viewer.