haikuwebkit/LayoutTests/contentfiltering/allow-after-will-send-reque...

27 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

[Content Filtering] Load blocked pages more like other error pages are loaded https://bugs.webkit.org/show_bug.cgi?id=159485 <rdar://problem/26014076> Reviewed by Brady Eidson. Source/WebCore: Content filter blocked pages were being loaded by cancelling the provisional load of the page that was blocked and then scheduling a navigation to the content filter error page. Some clients would not expect a new, Web process-initiated provisional navigation to start after a cancellation, though, and this would put them in a bad state. This patch changes blocked page loading to behave more like loading other error pages. Specifically: 1. didFailProvisionalLoad is dispatched with a new, non-cancellation error code. 2. The blocked page is loaded immediately after dispatching didFailProvisionalLoad, which prevents FrameLoader from creating a new back-forward list item for the substitute data load. 3. A substitute data load initiated by the client for the blocked URL is ignored if ContentFilter will display its own error page. 4. A file: URL is used instead of a custom scheme for the base URL of the blocked page, since some clients expect this. Updated existing tests to capture frame load delegate callbacks and the back forward list. Added new API tests: ContentFiltering.LoadAlternate*. * English.lproj/Localizable.strings: Added a WebKitErrorFrameLoadBlockedByContentFilter description. * Resources/ContentFilterBlockedPage.html: Added. * WebCore.xcodeproj/project.pbxproj: Added ContentFilterBlockedPage.html as a frameowrk resource. * loader/ContentFilter.cpp: (WebCore::ContentFilter::continueAfterWillSendRequest): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::stopFilteringMainResource): Only set m_state to Stopped if not already Blocked, so that we don't forget this ContentFilter was blocked when calling cancelMailResourceLoad() in didDecide(). (WebCore::ContentFilter::continueAfterResponseReceived): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::continueAfterDataReceived): Ditto. (WebCore::ContentFilter::continueAfterNotifyFinished): Ditto. (WebCore::ContentFilter::didDecide): Moved code from DocumentLoader::contentFilterDidBlock() to here. Created a blockedByContentFilterError() and called cancelMainResourceLoad(). (WebCore::blockedPageURL): Returned a file: URL to ContentFilterBlockedPage.html in WebCore.framework. (WebCore::ContentFilter::continueAfterSubstituteDataRequest): If the substitute data load is for the same failingURL as the currently-displayed blocked page, ignore it. (WebCore::ContentFilter::handleProvisionalLoadFailure): Load the blocked page if m_state is Blocked and the ResourceError matches the error we used when previously calling cancelMainResourceLoad(). (WebCore::ContentFilter::unblockHandler): Deleted. (WebCore::ContentFilter::replacementData): Deleted. (WebCore::ContentFilter::unblockRequestDeniedScript): Deleted. * loader/ContentFilter.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::contentFilter): Returned m_contentFilter. (WebCore::DocumentLoader::installContentFilterUnblockHandler): Deleted. (WebCore::DocumentLoader::contentFilterDidBlock): Deleted. * loader/DocumentLoader.h: * loader/EmptyClients.h: Added a default implementation of blockedByContentFilterError(). * loader/FrameLoader.cpp: (WebCore::FrameLoader::load): If m_loadType was already RedirectWithLockedBackForwardList and we are loading subsitute data for a failing URL, continue to use RedirectWithLockedBackForwardList. This prevents a new back-forward list item from being created when loading a blocked page in a subframe. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Called ContentFilter::handleProvisionalLoadFailure() after dispatchDidFailProvisionalLoad(). (WebCore::FrameLoader::blockedByContentFilterError): Called FrameLoaderClient::blockedByContentFilterError(). * loader/FrameLoader.h: * loader/FrameLoaderClient.h: * loader/NavigationScheduler.cpp: (WebCore::ScheduledSubstituteDataLoad::ScheduledSubstituteDataLoad): Deleted. (WebCore::NavigationScheduler::scheduleSubstituteDataLoad): Deleted. * loader/NavigationScheduler.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): Ignored a substitute data load for a failing URL if ContentFilter::continueAfterSubstituteDataRequest() returns false. Source/WebKit/mac: * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter. * Misc/WebKitErrors.m: (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter. Source/WebKit2: * Shared/API/c/WKErrorRef.h: Defined kWKErrorCodeFrameLoadBlockedByContentFilter. * UIProcess/Cocoa/WebProcessProxyCocoa.mm: (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added the resource directories of WebCore.framework and WebKit.framework as paths with assumed read access. * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::hasAssumedReadAccessToURL): Checked platformPathsWithAssumedReadAccess() as well as m_localPathsWithAssumedReadAccess. (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added a non-Cocoa implementation. * UIProcess/WebProcessProxy.h: * WebProcess/WebCoreSupport/WebErrors.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::blockedByContentFilterError): Called WebKit::blockedByContentFilterError(). * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: (WebKit::blockedByContentFilterError): Returned a ResourceError for kWKErrorCodeFrameLoadBlockedByContentFilter. Tools: Added API tests for WebView and WKWebView to verify that alternate HTML loaded in response to a content filtering provisional navigation failure is ignored in preference of ContentFilter's own error page. * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: (-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]): (-[LoadAlternateNavigationDelegate webView:didFinishNavigation:]): (loadAlternateTest): (TEST): * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: (-[MockContentFilterEnabler initWithCoder:]): * TestWebKitAPI/Tests/mac/ContentFiltering.mm: Added. (-[LoadAlternateFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): (-[LoadAlternateFrameLoadDelegate webView:didFinishLoadForFrame:]): (TestWebKitAPI::loadAlternateTest): (TestWebKitAPI::TEST): LayoutTests: Changed allow-* and block-* tests from ref tests to text tests so that they can capture frame load delegate callbacks and the back forward list. * contentfiltering/allow-after-add-data-expected.html: Removed. * contentfiltering/allow-after-add-data-expected.txt: Added. * contentfiltering/allow-after-finished-adding-data-expected.html: Removed. * contentfiltering/allow-after-finished-adding-data-expected.txt: Added. * contentfiltering/allow-after-response-expected.html: Removed. * contentfiltering/allow-after-response-expected.txt: Added. * contentfiltering/allow-after-will-send-request-expected.html: Removed. * contentfiltering/allow-after-will-send-request-expected.txt: Added. * contentfiltering/allow-never-expected.html: Removed. * contentfiltering/allow-never-expected.txt: Added. * contentfiltering/block-after-add-data-expected.html: Removed. * contentfiltering/block-after-add-data-expected.txt: Added. * contentfiltering/block-after-add-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-add-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-response-expected.html: Removed. * contentfiltering/block-after-response-expected.txt: Added. * contentfiltering/block-after-response-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-response-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-expected.html: Removed. * contentfiltering/block-after-will-send-request-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: Added. * contentfiltering/block-never-expected.html: Removed. * contentfiltering/block-never-expected.txt: Added. * contentfiltering/resources/contentfiltering.js: Added testRunner calls to dump as text, dump frame load callbacks, and dump the back forward list. Changed from loading data: URLs to file: URLs in the test iframe. Canonical link: https://commits.webkit.org/177722@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-07-08 20:14:34 +00:00
main frame - didFinishDocumentLoadForFrame
ASSERT(!childItemWithTarget(child->target())) is hit in HistoryItem::addChildItem() https://bugs.webkit.org/show_bug.cgi?id=185322 Reviewed by Geoff Garen. LayoutTests/imported/w3c: Rebaseline layout tests due to frame name changes. * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_same_origin-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/002-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/005-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/007-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/009-expected.txt: Source/WebCore: We generate unique names for Frame to be used in HistoryItem. Those names not only need to be unique, they also need to be repeatable to avoid layout tests flakiness and for things like restoring form state from a HistoryItem. The previously generated frame names were relying on the Frame's index among a parent Frame's children. The issue was that we could end up with duplicate names because one could insert a Frame *before* an existing one. This is because the code would not take care of updating existing Frames' unique name on frame tree mutation. Updating frame tree names on mutation would be inefficient and is also not necessary. The approach chosen in this patch is to stop using the Frame's index and instead rely on an increasing counter stored on the top-frame's FrameTree. To make the names repeatable, we reset the counter on page navigation. * page/Frame.cpp: (WebCore::Frame::setDocument): * page/FrameTree.cpp: (WebCore::FrameTree::uniqueChildName const): (WebCore::FrameTree::generateUniqueName const): * page/FrameTree.h: (WebCore::FrameTree::resetFrameIdentifiers): LayoutTests: Rebaseline layout tests due to frame name changes. * applicationmanifest/display-mode-subframe-expected.txt: * contentfiltering/allow-after-add-data-expected.txt: * contentfiltering/allow-after-finished-adding-data-expected.txt: * contentfiltering/allow-after-response-expected.txt: * contentfiltering/allow-after-will-send-request-expected.txt: * contentfiltering/allow-never-expected.txt: * contentfiltering/block-after-add-data-expected.txt: * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-expected.txt: * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-response-expected.txt: * contentfiltering/block-after-response-then-allow-unblock-expected.txt: * contentfiltering/block-after-response-then-deny-unblock-expected.txt: * contentfiltering/block-after-will-send-request-expected.txt: * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: * contentfiltering/block-never-expected.txt: * fast/dom/Geolocation/callback-to-deleted-context-expected.txt: * fast/dom/Geolocation/disconnected-frame-expected.txt: * fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt: * fast/dom/Window/messageevent-source-postmessage-expected.txt: * fast/dom/Window/messageevent-source-postmessage-reified-expected.txt: * fast/dom/javascript-url-crash-function-expected.txt: * fast/encoding/meta-overrules-auto-expected.txt: * fast/events/before-unload-forbidden-navigation-expected.txt: * fast/events/before-unload-in-subframe-expected.txt: * fast/events/before-unload-with-subframes-expected.txt: * fast/events/focusingUnloadedFrame-expected.txt: * fast/events/onloadFrameCrash-expected.txt: * fast/events/onunload-not-on-body-expected.txt: * fast/events/pageshow-pagehide-expected.txt: * fast/events/stop-load-in-unload-handler-using-document-write-expected.txt: * fast/events/stop-load-in-unload-handler-using-window-stop-expected.txt: * fast/forms/form-and-frame-interaction-retains-values-expected.txt: * fast/frames/crash-when-child-iframe-forces-layout-during-unload-and-sibling-frame-has-mediaquery-expected.txt: * fast/frames/frame-element-name-expected.txt: * fast/frames/frame-src-attribute-expected.txt: * fast/frames/frame-unload-crash-expected.txt: * fast/frames/iframe-reparenting-unique-name-expected.txt: * fast/frames/iframe-set-inner-html-expected.txt: * fast/frames/layout-after-destruction-expected.txt: * fast/frames/long-names-in-nested-subframes-expected.txt: * fast/frames/page-unload-document-open-expected.txt: * fast/frames/reparent-in-unload-contentdocument-expected.txt: * fast/frames/sandboxed-iframe-noscript-expected.txt: * fast/frames/sandboxed-iframe-storage-expected.txt: * fast/frames/srcdoc/setting-src-does-nothing-expected.txt: * fast/frames/srcdoc/srcdoc-can-navigate-expected.txt: * fast/frames/srcdoc/srcdoc-loads-content-expected.txt: * fast/history/back-from-page-with-focused-iframe-expected.txt: * fast/history/history-back-initial-vs-final-url-expected.txt: * fast/history/redirect-via-iframe-expected.txt: * fast/loader/child-frame-add-after-back-forward-expected.txt: * fast/loader/dynamic-iframe-extra-back-forward-item-expected.txt: * fast/loader/fragment-navigation-base-blank-expected.txt: * fast/loader/frame-location-change-not-added-to-history-expected.txt: * fast/loader/frame-src-change-added-to-history-expected.txt: * fast/loader/frame-src-change-not-added-to-history-expected.txt: * fast/loader/frames-with-unload-handlers-in-page-cache-expected.txt: * fast/loader/grandparent-completion-starts-redirect-expected.txt: * fast/loader/iframe-meta-refresh-base-blank-expected.txt: * fast/loader/iframe-set-location-base-blank-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-async-delegate-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-expected.txt: * fast/loader/page-dismissal-modal-dialogs-expected.txt: * fast/loader/ping-error-expected.txt: * fast/loader/plain-text-document-expected.txt: * fast/loader/refresh-iframe-base-blank-expected.txt: * fast/loader/stateobjects/pushstate-frequency-iframe-expected.txt: * fast/loader/stateobjects/pushstate-in-iframe-expected.txt: * fast/loader/stateobjects/replacestate-frequency-iframe-expected.txt: * fast/loader/stateobjects/replacestate-in-iframe-expected.txt: * fast/loader/stop-provisional-loads-expected.txt: * fast/loader/subframe-removes-itself-expected.txt: * fast/loader/subframe-self-close-expected.txt: * fast/loader/unload-hyperlink-targeted-expected.txt: * fast/parser/double-write-from-closed-iframe-expected.txt: * fast/parser/iframe-sets-parent-to-javascript-url-expected.txt: * fast/parser/javascript-url-compat-mode-expected.txt: * fast/parser/move-during-parsing-expected.txt: * fast/parser/noscript-with-javascript-disabled-expected.txt: * fast/parser/pre-html5-parser-quirks-expected.txt: * fast/preloader/iframe-srcdoc-expected.txt: * fast/tokenizer/text-plain-expected.txt: * fast/xmlhttprequest/xmlhttprequest-no-file-access-expected.txt: * fast/xsl/xslt-text-expected.txt: * http/tests/appcache/x-frame-options-prevents-framing-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url-expected.txt: * http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-iframe-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: * http/tests/cookies/same-site/fetch-in-same-origin-service-worker-expected.txt: * http/tests/from-origin/document-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/document-from-origin-same-site-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-site-blocked-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-data-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-accepted-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/redirect-document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-cross-origin-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-same-origin-from-origin-same-blocked-expected.txt: * http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * http/tests/loading/basic-auth-remove-credentials-expected.txt: * http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * http/tests/loading/basic-credentials-sent-automatically-expected.txt: * http/tests/loading/pdf-commit-load-callbacks-expected.txt: * http/tests/loading/redirect-with-no-location-crash-expected.txt: * http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * http/tests/misc/last-modified-parsing-expected.txt: * http/tests/misc/policy-delegate-called-twice-expected.txt: * http/tests/misc/redirect-to-external-url-expected.txt: * http/tests/misc/webtiming-origins-expected.txt: Removed. * http/tests/navigation/back-to-slow-frame-expected.txt: * http/tests/navigation/forward-and-cancel-expected.txt: * http/tests/navigation/image-load-in-subframe-unload-handler-expected.txt: * http/tests/navigation/lockedhistory-iframe-expected.txt: * http/tests/navigation/post-frames-expected.txt: * http/tests/navigation/reload-subframe-frame-expected.txt: * http/tests/navigation/reload-subframe-iframe-expected.txt: * http/tests/navigation/reload-subframe-object-expected.txt: * http/tests/preload/download_resources_from_header_iframe-expected.txt: * http/tests/preload/download_resources_from_invalid_headers-expected.txt: * http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * http/tests/quicklook/document-domain-is-empty-string-expected.txt: * http/tests/quicklook/external-stylesheet-blocked-expected.txt: * http/tests/quicklook/hide-referer-on-navigation-expected.txt: * http/tests/quicklook/rtf-document-domain-is-empty-string-expected.txt: * http/tests/quicklook/same-origin-xmlhttprequest-allowed-expected.txt: * http/tests/quicklook/top-navigation-blocked-expected.txt: * http/tests/resourceLoadStatistics/add-blocking-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/add-partitioning-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: * http/tests/resourceLoadStatistics/remove-blocking-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/remove-partitioning-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-redirects-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-requests-expected.txt: * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt: * http/tests/security/appcache-in-private-browsing-expected.txt: * http/tests/security/appcache-switching-private-browsing-expected.txt: * http/tests/security/canvas-cors-with-two-hosts-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-meta-element-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-report-only-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-allow-same-origin-sandboxed-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-sandboxed-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-protocolless-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-crossorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-sameorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-01-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-02-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https-expected.txt: * http/tests/security/contentSecurityPolicy/WebAssembly-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-multiple-headers-expected.txt: * http/tests/security/contentSecurityPolicy/eval-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https-expected.txt: * http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt: * http/tests/security/contentSecurityPolicy/script-loads-with-img-src-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-inline-event-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-parsing-implicit-and-explicit-port-number-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-redirect-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-01-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-02-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-03-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-06-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-07-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-08-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-deprecated-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-none-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-02-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed2-expected.txt: * http/tests/security/cookies/first-party-cookie-allow-xslt-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-redirect-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-xslt-expected.txt: * http/tests/security/cross-frame-access-callback-explicit-domain-DENY-expected.txt: * http/tests/security/cross-frame-access-delete-expected.txt: * http/tests/security/cross-frame-access-frameelement-expected.txt: * http/tests/security/cross-frame-access-history-put-expected.txt: Removed. * http/tests/security/cross-frame-access-location-put-expected.txt: * http/tests/security/cross-frame-access-private-browsing-expected.txt: * http/tests/security/cross-origin-appcache-allowed-expected.txt: * http/tests/security/cross-origin-appcache-expected.txt: * http/tests/security/cross-origin-css-primitive-expected.txt: * http/tests/security/cross-origin-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-indexeddb-expected.txt: * http/tests/security/cross-origin-plugin-allowed-expected.txt: * http/tests/security/cross-origin-plugin-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * http/tests/security/cross-origin-session-storage-allowed-expected.txt: * http/tests/security/cross-origin-session-storage-third-party-blocked-expected.txt: * http/tests/security/cross-origin-websql-allowed-expected.txt: * http/tests/security/cross-origin-websql-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-expected.txt: * http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level-expected.txt: * http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-plugin-navigation-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-targeted-link-navigation-expected.txt: * http/tests/security/history-pushState-replaceState-from-sandboxed-iframe-expected.txt: * http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt: * http/tests/security/http-0.9/default-port-script-blocked-expected.txt: * http/tests/security/http-0.9/iframe-blocked-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-default-port-page-allowed-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-page-blocked-expected.txt: * http/tests/security/http-0.9/sandbox-should-not-persist-on-navigation-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-to-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-from-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/blob-url-in-iframe-expected.txt: * http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/private-browsing-http-auth-expected.txt: * http/tests/security/referrer-policy-always-expected.txt: * http/tests/security/referrer-policy-default-expected.txt: * http/tests/security/referrer-policy-https-always-expected.txt: * http/tests/security/referrer-policy-https-default-expected.txt: * http/tests/security/referrer-policy-https-never-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-https-origin-expected.txt: * http/tests/security/referrer-policy-https-unsafe-url-expected.txt: * http/tests/security/referrer-policy-invalid-expected.txt: * http/tests/security/referrer-policy-never-expected.txt: * http/tests/security/referrer-policy-no-referrer-expected.txt: * http/tests/security/referrer-policy-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-origin-expected.txt: * http/tests/security/referrer-policy-redirect-expected.txt: * http/tests/security/referrer-policy-rel-noreferrer-expected.txt: * http/tests/security/same-origin-appcache-blocked-expected.txt: * http/tests/security/same-origin-document-domain-storage-allowed-expected.txt: * http/tests/security/same-origin-storage-blocked-expected.txt: * http/tests/security/same-origin-websql-blocked-expected.txt: * http/tests/security/sandboxed-iframe-document-cookie-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-getCurrentPosition-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-watchPosition-expected.txt: * http/tests/security/srcdoc-inherits-referrer-expected.txt: * http/tests/security/srcdoc-inherits-referrer-for-forms-expected.txt: * http/tests/security/storage-blocking-loosened-local-storage-expected.txt: * http/tests/security/storage-blocking-loosened-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-websql-expected.txt: * http/tests/security/storage-blocking-strengthened-local-storage-expected.txt: * http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-websql-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-redirects-in-private-mode-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-requests-in-private-mode-expected.txt: * http/tests/security/window-properties-clear-domain-expected.txt: * http/tests/security/window-properties-clear-port-expected.txt: * http/tests/security/window-properties-pass-expected.txt: * http/tests/security/xss-DENIED-assign-location-href-javascript-expected.txt: * http/tests/security/xss-DENIED-defineProperty-expected.txt: * http/tests/security/xssAuditor/faux-script1-expected.txt: * http/tests/security/xssAuditor/faux-script2-expected.txt: * http/tests/security/xssAuditor/faux-script3-expected.txt: * http/tests/security/xssAuditor/malformed-HTML-expected.txt: * http/tests/security/xssAuditor/non-block-javascript-url-frame-expected.txt: * http/tests/security/xssAuditor/reflection-in-path-expected.txt: * http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * http/tests/security/xssAuditor/svg-animate-expected.txt: * http/tests/ssl/media-stream/get-user-media-different-host-expected.txt: * http/tests/ssl/media-stream/get-user-media-nested-expected.txt: * http/tests/ssl/media-stream/get-user-media-secure-connection-expected.txt: * http/tests/ssl/ping-with-unsafe-redirect-expected.txt: * http/tests/storageAccess/deny-storage-access-under-opener-expected.txt: * http/tests/storageAccess/grant-storage-access-under-opener-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-and-try-access-from-right-frame-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-but-try-access-from-wrong-frame-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-origin-null-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt: * http/tests/xmlhttprequest/frame-load-cancelled-abort-expected.txt: * http/tests/xmlhttprequest/frame-unload-abort-crash-expected.txt: * http/tests/xmlhttprequest/origin-exact-matching-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-004-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-005-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-006-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-007-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-008-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-009-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-010-expected.txt: * http/tests/xsl/xslt-transform-with-javascript-disabled-expected.txt: * imported/blink/fast/plugins/empty-url-object-expected.txt: * loader/stateobjects/pushstate-size-iframe-expected.txt: * loader/stateobjects/replacestate-size-iframe-expected.txt: * media/auto-play-in-sandbox-with-allow-scripts-expected.txt: * platform/ios-wk1/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios-wk1/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * platform/ios/http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * platform/ios/http/tests/quicklook/document-domain-is-empty-string-expected.txt: * platform/ios/http/tests/quicklook/external-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/hide-referer-on-navigation-expected.txt: * platform/ios/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios/quicklook/excel-expected.txt: * platform/ios/quicklook/excel-legacy-expected.txt: * platform/ios/quicklook/excel-macro-enabled-expected.txt: * platform/ios/quicklook/powerpoint-expected.txt: * platform/ios/quicklook/powerpoint-legacy-expected.txt: * platform/ios/quicklook/word-expected.txt: * platform/ios/quicklook/word-legacy-expected.txt: * platform/ios/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * platform/mac-wk2/plugins/resize-from-plugin-expected.txt: * platform/mac/fast/loader/webarchive-encoding-respected-expected.txt: * platform/mac/webarchive/adopt-attribute-styled-body-webarchive-expected.txt: * platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac/webarchive/test-duplicate-resources-expected.txt: * platform/win/plugins/resize-from-plugin-expected.txt: * platform/win/webarchive/loading/cache-expired-subresource-expected.txt: * platform/wk2/fast/loader/fragment-navigation-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-meta-refresh-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-set-location-base-blank-expected.txt: * platform/wk2/fast/loader/refresh-iframe-base-blank-expected.txt: * platform/wk2/fast/loader/subframe-removes-itself-expected.txt: * platform/wk2/http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-credentials-sent-automatically-expected.txt: * platform/wk2/http/tests/loading/redirect-with-no-location-crash-expected.txt: * platform/wk2/http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/http-0.9/iframe-blocked-expected.txt: * platform/wk2/http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * platform/wk2/webarchive/loading/javascript-url-iframe-crash-expected.txt: * platform/wk2/webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * platform/wk2/webarchive/loading/missing-data-expected.txt: * platform/wk2/webarchive/loading/object-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * platform/wk2/webarchive/loading/video-in-webarchive-expected.txt: * plugins/resize-from-plugin-expected.txt: * quicklook/excel-expected.txt: * quicklook/excel-legacy-expected.txt: * quicklook/excel-macro-enabled-expected.txt: * quicklook/keynote-09-expected.txt: * quicklook/multi-sheet-numbers-09-expected.txt: * quicklook/numbers-09-expected.txt: * quicklook/pages-09-expected.txt: * quicklook/powerpoint-expected.txt: * quicklook/powerpoint-legacy-expected.txt: * quicklook/word-expected.txt: * quicklook/word-legacy-expected.txt: * userscripts/user-script-all-frames-expected.txt: * userscripts/user-script-top-frame-only-expected.txt: * userscripts/user-style-all-frames-expected.txt: * userscripts/user-style-top-frame-only-expected.txt: * webarchive/loading/javascript-url-iframe-crash-expected.txt: * webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * webarchive/loading/missing-data-expected.txt: * webarchive/loading/object-expected.txt: * webarchive/loading/test-loading-archive-expected.txt: * webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * webarchive/loading/video-in-webarchive-expected.txt: Canonical link: https://commits.webkit.org/200851@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-07 18:55:15 +00:00
frame "<!--frame1-->" - didStartProvisionalLoadForFrame
frame "<!--frame1-->" - didCommitLoadForFrame
frame "<!--frame1-->" - didFinishDocumentLoadForFrame
frame "<!--frame1-->" - didHandleOnloadEventsForFrame
frame "<!--frame1-->" - didFinishLoadForFrame
frame "<!--frame1-->" - willPerformClientRedirectToURL: resources/pass.html
[Content Filtering] Load blocked pages more like other error pages are loaded https://bugs.webkit.org/show_bug.cgi?id=159485 <rdar://problem/26014076> Reviewed by Brady Eidson. Source/WebCore: Content filter blocked pages were being loaded by cancelling the provisional load of the page that was blocked and then scheduling a navigation to the content filter error page. Some clients would not expect a new, Web process-initiated provisional navigation to start after a cancellation, though, and this would put them in a bad state. This patch changes blocked page loading to behave more like loading other error pages. Specifically: 1. didFailProvisionalLoad is dispatched with a new, non-cancellation error code. 2. The blocked page is loaded immediately after dispatching didFailProvisionalLoad, which prevents FrameLoader from creating a new back-forward list item for the substitute data load. 3. A substitute data load initiated by the client for the blocked URL is ignored if ContentFilter will display its own error page. 4. A file: URL is used instead of a custom scheme for the base URL of the blocked page, since some clients expect this. Updated existing tests to capture frame load delegate callbacks and the back forward list. Added new API tests: ContentFiltering.LoadAlternate*. * English.lproj/Localizable.strings: Added a WebKitErrorFrameLoadBlockedByContentFilter description. * Resources/ContentFilterBlockedPage.html: Added. * WebCore.xcodeproj/project.pbxproj: Added ContentFilterBlockedPage.html as a frameowrk resource. * loader/ContentFilter.cpp: (WebCore::ContentFilter::continueAfterWillSendRequest): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::stopFilteringMainResource): Only set m_state to Stopped if not already Blocked, so that we don't forget this ContentFilter was blocked when calling cancelMailResourceLoad() in didDecide(). (WebCore::ContentFilter::continueAfterResponseReceived): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::continueAfterDataReceived): Ditto. (WebCore::ContentFilter::continueAfterNotifyFinished): Ditto. (WebCore::ContentFilter::didDecide): Moved code from DocumentLoader::contentFilterDidBlock() to here. Created a blockedByContentFilterError() and called cancelMainResourceLoad(). (WebCore::blockedPageURL): Returned a file: URL to ContentFilterBlockedPage.html in WebCore.framework. (WebCore::ContentFilter::continueAfterSubstituteDataRequest): If the substitute data load is for the same failingURL as the currently-displayed blocked page, ignore it. (WebCore::ContentFilter::handleProvisionalLoadFailure): Load the blocked page if m_state is Blocked and the ResourceError matches the error we used when previously calling cancelMainResourceLoad(). (WebCore::ContentFilter::unblockHandler): Deleted. (WebCore::ContentFilter::replacementData): Deleted. (WebCore::ContentFilter::unblockRequestDeniedScript): Deleted. * loader/ContentFilter.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::contentFilter): Returned m_contentFilter. (WebCore::DocumentLoader::installContentFilterUnblockHandler): Deleted. (WebCore::DocumentLoader::contentFilterDidBlock): Deleted. * loader/DocumentLoader.h: * loader/EmptyClients.h: Added a default implementation of blockedByContentFilterError(). * loader/FrameLoader.cpp: (WebCore::FrameLoader::load): If m_loadType was already RedirectWithLockedBackForwardList and we are loading subsitute data for a failing URL, continue to use RedirectWithLockedBackForwardList. This prevents a new back-forward list item from being created when loading a blocked page in a subframe. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Called ContentFilter::handleProvisionalLoadFailure() after dispatchDidFailProvisionalLoad(). (WebCore::FrameLoader::blockedByContentFilterError): Called FrameLoaderClient::blockedByContentFilterError(). * loader/FrameLoader.h: * loader/FrameLoaderClient.h: * loader/NavigationScheduler.cpp: (WebCore::ScheduledSubstituteDataLoad::ScheduledSubstituteDataLoad): Deleted. (WebCore::NavigationScheduler::scheduleSubstituteDataLoad): Deleted. * loader/NavigationScheduler.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): Ignored a substitute data load for a failing URL if ContentFilter::continueAfterSubstituteDataRequest() returns false. Source/WebKit/mac: * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter. * Misc/WebKitErrors.m: (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter. Source/WebKit2: * Shared/API/c/WKErrorRef.h: Defined kWKErrorCodeFrameLoadBlockedByContentFilter. * UIProcess/Cocoa/WebProcessProxyCocoa.mm: (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added the resource directories of WebCore.framework and WebKit.framework as paths with assumed read access. * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::hasAssumedReadAccessToURL): Checked platformPathsWithAssumedReadAccess() as well as m_localPathsWithAssumedReadAccess. (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added a non-Cocoa implementation. * UIProcess/WebProcessProxy.h: * WebProcess/WebCoreSupport/WebErrors.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::blockedByContentFilterError): Called WebKit::blockedByContentFilterError(). * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: (WebKit::blockedByContentFilterError): Returned a ResourceError for kWKErrorCodeFrameLoadBlockedByContentFilter. Tools: Added API tests for WebView and WKWebView to verify that alternate HTML loaded in response to a content filtering provisional navigation failure is ignored in preference of ContentFilter's own error page. * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: (-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]): (-[LoadAlternateNavigationDelegate webView:didFinishNavigation:]): (loadAlternateTest): (TEST): * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: (-[MockContentFilterEnabler initWithCoder:]): * TestWebKitAPI/Tests/mac/ContentFiltering.mm: Added. (-[LoadAlternateFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): (-[LoadAlternateFrameLoadDelegate webView:didFinishLoadForFrame:]): (TestWebKitAPI::loadAlternateTest): (TestWebKitAPI::TEST): LayoutTests: Changed allow-* and block-* tests from ref tests to text tests so that they can capture frame load delegate callbacks and the back forward list. * contentfiltering/allow-after-add-data-expected.html: Removed. * contentfiltering/allow-after-add-data-expected.txt: Added. * contentfiltering/allow-after-finished-adding-data-expected.html: Removed. * contentfiltering/allow-after-finished-adding-data-expected.txt: Added. * contentfiltering/allow-after-response-expected.html: Removed. * contentfiltering/allow-after-response-expected.txt: Added. * contentfiltering/allow-after-will-send-request-expected.html: Removed. * contentfiltering/allow-after-will-send-request-expected.txt: Added. * contentfiltering/allow-never-expected.html: Removed. * contentfiltering/allow-never-expected.txt: Added. * contentfiltering/block-after-add-data-expected.html: Removed. * contentfiltering/block-after-add-data-expected.txt: Added. * contentfiltering/block-after-add-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-add-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-response-expected.html: Removed. * contentfiltering/block-after-response-expected.txt: Added. * contentfiltering/block-after-response-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-response-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-expected.html: Removed. * contentfiltering/block-after-will-send-request-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: Added. * contentfiltering/block-never-expected.html: Removed. * contentfiltering/block-never-expected.txt: Added. * contentfiltering/resources/contentfiltering.js: Added testRunner calls to dump as text, dump frame load callbacks, and dump the back forward list. Changed from loading data: URLs to file: URLs in the test iframe. Canonical link: https://commits.webkit.org/177722@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-07-08 20:14:34 +00:00
main frame - didHandleOnloadEventsForFrame
main frame - didFinishLoadForFrame
ASSERT(!childItemWithTarget(child->target())) is hit in HistoryItem::addChildItem() https://bugs.webkit.org/show_bug.cgi?id=185322 Reviewed by Geoff Garen. LayoutTests/imported/w3c: Rebaseline layout tests due to frame name changes. * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_same_origin-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/002-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/005-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/007-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/009-expected.txt: Source/WebCore: We generate unique names for Frame to be used in HistoryItem. Those names not only need to be unique, they also need to be repeatable to avoid layout tests flakiness and for things like restoring form state from a HistoryItem. The previously generated frame names were relying on the Frame's index among a parent Frame's children. The issue was that we could end up with duplicate names because one could insert a Frame *before* an existing one. This is because the code would not take care of updating existing Frames' unique name on frame tree mutation. Updating frame tree names on mutation would be inefficient and is also not necessary. The approach chosen in this patch is to stop using the Frame's index and instead rely on an increasing counter stored on the top-frame's FrameTree. To make the names repeatable, we reset the counter on page navigation. * page/Frame.cpp: (WebCore::Frame::setDocument): * page/FrameTree.cpp: (WebCore::FrameTree::uniqueChildName const): (WebCore::FrameTree::generateUniqueName const): * page/FrameTree.h: (WebCore::FrameTree::resetFrameIdentifiers): LayoutTests: Rebaseline layout tests due to frame name changes. * applicationmanifest/display-mode-subframe-expected.txt: * contentfiltering/allow-after-add-data-expected.txt: * contentfiltering/allow-after-finished-adding-data-expected.txt: * contentfiltering/allow-after-response-expected.txt: * contentfiltering/allow-after-will-send-request-expected.txt: * contentfiltering/allow-never-expected.txt: * contentfiltering/block-after-add-data-expected.txt: * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-expected.txt: * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-response-expected.txt: * contentfiltering/block-after-response-then-allow-unblock-expected.txt: * contentfiltering/block-after-response-then-deny-unblock-expected.txt: * contentfiltering/block-after-will-send-request-expected.txt: * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: * contentfiltering/block-never-expected.txt: * fast/dom/Geolocation/callback-to-deleted-context-expected.txt: * fast/dom/Geolocation/disconnected-frame-expected.txt: * fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt: * fast/dom/Window/messageevent-source-postmessage-expected.txt: * fast/dom/Window/messageevent-source-postmessage-reified-expected.txt: * fast/dom/javascript-url-crash-function-expected.txt: * fast/encoding/meta-overrules-auto-expected.txt: * fast/events/before-unload-forbidden-navigation-expected.txt: * fast/events/before-unload-in-subframe-expected.txt: * fast/events/before-unload-with-subframes-expected.txt: * fast/events/focusingUnloadedFrame-expected.txt: * fast/events/onloadFrameCrash-expected.txt: * fast/events/onunload-not-on-body-expected.txt: * fast/events/pageshow-pagehide-expected.txt: * fast/events/stop-load-in-unload-handler-using-document-write-expected.txt: * fast/events/stop-load-in-unload-handler-using-window-stop-expected.txt: * fast/forms/form-and-frame-interaction-retains-values-expected.txt: * fast/frames/crash-when-child-iframe-forces-layout-during-unload-and-sibling-frame-has-mediaquery-expected.txt: * fast/frames/frame-element-name-expected.txt: * fast/frames/frame-src-attribute-expected.txt: * fast/frames/frame-unload-crash-expected.txt: * fast/frames/iframe-reparenting-unique-name-expected.txt: * fast/frames/iframe-set-inner-html-expected.txt: * fast/frames/layout-after-destruction-expected.txt: * fast/frames/long-names-in-nested-subframes-expected.txt: * fast/frames/page-unload-document-open-expected.txt: * fast/frames/reparent-in-unload-contentdocument-expected.txt: * fast/frames/sandboxed-iframe-noscript-expected.txt: * fast/frames/sandboxed-iframe-storage-expected.txt: * fast/frames/srcdoc/setting-src-does-nothing-expected.txt: * fast/frames/srcdoc/srcdoc-can-navigate-expected.txt: * fast/frames/srcdoc/srcdoc-loads-content-expected.txt: * fast/history/back-from-page-with-focused-iframe-expected.txt: * fast/history/history-back-initial-vs-final-url-expected.txt: * fast/history/redirect-via-iframe-expected.txt: * fast/loader/child-frame-add-after-back-forward-expected.txt: * fast/loader/dynamic-iframe-extra-back-forward-item-expected.txt: * fast/loader/fragment-navigation-base-blank-expected.txt: * fast/loader/frame-location-change-not-added-to-history-expected.txt: * fast/loader/frame-src-change-added-to-history-expected.txt: * fast/loader/frame-src-change-not-added-to-history-expected.txt: * fast/loader/frames-with-unload-handlers-in-page-cache-expected.txt: * fast/loader/grandparent-completion-starts-redirect-expected.txt: * fast/loader/iframe-meta-refresh-base-blank-expected.txt: * fast/loader/iframe-set-location-base-blank-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-async-delegate-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-expected.txt: * fast/loader/page-dismissal-modal-dialogs-expected.txt: * fast/loader/ping-error-expected.txt: * fast/loader/plain-text-document-expected.txt: * fast/loader/refresh-iframe-base-blank-expected.txt: * fast/loader/stateobjects/pushstate-frequency-iframe-expected.txt: * fast/loader/stateobjects/pushstate-in-iframe-expected.txt: * fast/loader/stateobjects/replacestate-frequency-iframe-expected.txt: * fast/loader/stateobjects/replacestate-in-iframe-expected.txt: * fast/loader/stop-provisional-loads-expected.txt: * fast/loader/subframe-removes-itself-expected.txt: * fast/loader/subframe-self-close-expected.txt: * fast/loader/unload-hyperlink-targeted-expected.txt: * fast/parser/double-write-from-closed-iframe-expected.txt: * fast/parser/iframe-sets-parent-to-javascript-url-expected.txt: * fast/parser/javascript-url-compat-mode-expected.txt: * fast/parser/move-during-parsing-expected.txt: * fast/parser/noscript-with-javascript-disabled-expected.txt: * fast/parser/pre-html5-parser-quirks-expected.txt: * fast/preloader/iframe-srcdoc-expected.txt: * fast/tokenizer/text-plain-expected.txt: * fast/xmlhttprequest/xmlhttprequest-no-file-access-expected.txt: * fast/xsl/xslt-text-expected.txt: * http/tests/appcache/x-frame-options-prevents-framing-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url-expected.txt: * http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-iframe-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: * http/tests/cookies/same-site/fetch-in-same-origin-service-worker-expected.txt: * http/tests/from-origin/document-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/document-from-origin-same-site-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-site-blocked-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-data-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-accepted-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/redirect-document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-cross-origin-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-same-origin-from-origin-same-blocked-expected.txt: * http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * http/tests/loading/basic-auth-remove-credentials-expected.txt: * http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * http/tests/loading/basic-credentials-sent-automatically-expected.txt: * http/tests/loading/pdf-commit-load-callbacks-expected.txt: * http/tests/loading/redirect-with-no-location-crash-expected.txt: * http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * http/tests/misc/last-modified-parsing-expected.txt: * http/tests/misc/policy-delegate-called-twice-expected.txt: * http/tests/misc/redirect-to-external-url-expected.txt: * http/tests/misc/webtiming-origins-expected.txt: Removed. * http/tests/navigation/back-to-slow-frame-expected.txt: * http/tests/navigation/forward-and-cancel-expected.txt: * http/tests/navigation/image-load-in-subframe-unload-handler-expected.txt: * http/tests/navigation/lockedhistory-iframe-expected.txt: * http/tests/navigation/post-frames-expected.txt: * http/tests/navigation/reload-subframe-frame-expected.txt: * http/tests/navigation/reload-subframe-iframe-expected.txt: * http/tests/navigation/reload-subframe-object-expected.txt: * http/tests/preload/download_resources_from_header_iframe-expected.txt: * http/tests/preload/download_resources_from_invalid_headers-expected.txt: * http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * http/tests/quicklook/document-domain-is-empty-string-expected.txt: * http/tests/quicklook/external-stylesheet-blocked-expected.txt: * http/tests/quicklook/hide-referer-on-navigation-expected.txt: * http/tests/quicklook/rtf-document-domain-is-empty-string-expected.txt: * http/tests/quicklook/same-origin-xmlhttprequest-allowed-expected.txt: * http/tests/quicklook/top-navigation-blocked-expected.txt: * http/tests/resourceLoadStatistics/add-blocking-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/add-partitioning-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: * http/tests/resourceLoadStatistics/remove-blocking-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/remove-partitioning-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-redirects-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-requests-expected.txt: * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt: * http/tests/security/appcache-in-private-browsing-expected.txt: * http/tests/security/appcache-switching-private-browsing-expected.txt: * http/tests/security/canvas-cors-with-two-hosts-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-meta-element-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-report-only-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-allow-same-origin-sandboxed-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-sandboxed-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-protocolless-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-crossorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-sameorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-01-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-02-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https-expected.txt: * http/tests/security/contentSecurityPolicy/WebAssembly-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-multiple-headers-expected.txt: * http/tests/security/contentSecurityPolicy/eval-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https-expected.txt: * http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt: * http/tests/security/contentSecurityPolicy/script-loads-with-img-src-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-inline-event-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-parsing-implicit-and-explicit-port-number-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-redirect-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-01-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-02-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-03-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-06-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-07-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-08-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-deprecated-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-none-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-02-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed2-expected.txt: * http/tests/security/cookies/first-party-cookie-allow-xslt-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-redirect-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-xslt-expected.txt: * http/tests/security/cross-frame-access-callback-explicit-domain-DENY-expected.txt: * http/tests/security/cross-frame-access-delete-expected.txt: * http/tests/security/cross-frame-access-frameelement-expected.txt: * http/tests/security/cross-frame-access-history-put-expected.txt: Removed. * http/tests/security/cross-frame-access-location-put-expected.txt: * http/tests/security/cross-frame-access-private-browsing-expected.txt: * http/tests/security/cross-origin-appcache-allowed-expected.txt: * http/tests/security/cross-origin-appcache-expected.txt: * http/tests/security/cross-origin-css-primitive-expected.txt: * http/tests/security/cross-origin-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-indexeddb-expected.txt: * http/tests/security/cross-origin-plugin-allowed-expected.txt: * http/tests/security/cross-origin-plugin-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * http/tests/security/cross-origin-session-storage-allowed-expected.txt: * http/tests/security/cross-origin-session-storage-third-party-blocked-expected.txt: * http/tests/security/cross-origin-websql-allowed-expected.txt: * http/tests/security/cross-origin-websql-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-expected.txt: * http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level-expected.txt: * http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-plugin-navigation-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-targeted-link-navigation-expected.txt: * http/tests/security/history-pushState-replaceState-from-sandboxed-iframe-expected.txt: * http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt: * http/tests/security/http-0.9/default-port-script-blocked-expected.txt: * http/tests/security/http-0.9/iframe-blocked-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-default-port-page-allowed-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-page-blocked-expected.txt: * http/tests/security/http-0.9/sandbox-should-not-persist-on-navigation-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-to-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-from-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/blob-url-in-iframe-expected.txt: * http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/private-browsing-http-auth-expected.txt: * http/tests/security/referrer-policy-always-expected.txt: * http/tests/security/referrer-policy-default-expected.txt: * http/tests/security/referrer-policy-https-always-expected.txt: * http/tests/security/referrer-policy-https-default-expected.txt: * http/tests/security/referrer-policy-https-never-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-https-origin-expected.txt: * http/tests/security/referrer-policy-https-unsafe-url-expected.txt: * http/tests/security/referrer-policy-invalid-expected.txt: * http/tests/security/referrer-policy-never-expected.txt: * http/tests/security/referrer-policy-no-referrer-expected.txt: * http/tests/security/referrer-policy-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-origin-expected.txt: * http/tests/security/referrer-policy-redirect-expected.txt: * http/tests/security/referrer-policy-rel-noreferrer-expected.txt: * http/tests/security/same-origin-appcache-blocked-expected.txt: * http/tests/security/same-origin-document-domain-storage-allowed-expected.txt: * http/tests/security/same-origin-storage-blocked-expected.txt: * http/tests/security/same-origin-websql-blocked-expected.txt: * http/tests/security/sandboxed-iframe-document-cookie-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-getCurrentPosition-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-watchPosition-expected.txt: * http/tests/security/srcdoc-inherits-referrer-expected.txt: * http/tests/security/srcdoc-inherits-referrer-for-forms-expected.txt: * http/tests/security/storage-blocking-loosened-local-storage-expected.txt: * http/tests/security/storage-blocking-loosened-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-websql-expected.txt: * http/tests/security/storage-blocking-strengthened-local-storage-expected.txt: * http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-websql-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-redirects-in-private-mode-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-requests-in-private-mode-expected.txt: * http/tests/security/window-properties-clear-domain-expected.txt: * http/tests/security/window-properties-clear-port-expected.txt: * http/tests/security/window-properties-pass-expected.txt: * http/tests/security/xss-DENIED-assign-location-href-javascript-expected.txt: * http/tests/security/xss-DENIED-defineProperty-expected.txt: * http/tests/security/xssAuditor/faux-script1-expected.txt: * http/tests/security/xssAuditor/faux-script2-expected.txt: * http/tests/security/xssAuditor/faux-script3-expected.txt: * http/tests/security/xssAuditor/malformed-HTML-expected.txt: * http/tests/security/xssAuditor/non-block-javascript-url-frame-expected.txt: * http/tests/security/xssAuditor/reflection-in-path-expected.txt: * http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * http/tests/security/xssAuditor/svg-animate-expected.txt: * http/tests/ssl/media-stream/get-user-media-different-host-expected.txt: * http/tests/ssl/media-stream/get-user-media-nested-expected.txt: * http/tests/ssl/media-stream/get-user-media-secure-connection-expected.txt: * http/tests/ssl/ping-with-unsafe-redirect-expected.txt: * http/tests/storageAccess/deny-storage-access-under-opener-expected.txt: * http/tests/storageAccess/grant-storage-access-under-opener-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-and-try-access-from-right-frame-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-but-try-access-from-wrong-frame-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-origin-null-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt: * http/tests/xmlhttprequest/frame-load-cancelled-abort-expected.txt: * http/tests/xmlhttprequest/frame-unload-abort-crash-expected.txt: * http/tests/xmlhttprequest/origin-exact-matching-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-004-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-005-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-006-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-007-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-008-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-009-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-010-expected.txt: * http/tests/xsl/xslt-transform-with-javascript-disabled-expected.txt: * imported/blink/fast/plugins/empty-url-object-expected.txt: * loader/stateobjects/pushstate-size-iframe-expected.txt: * loader/stateobjects/replacestate-size-iframe-expected.txt: * media/auto-play-in-sandbox-with-allow-scripts-expected.txt: * platform/ios-wk1/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios-wk1/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * platform/ios/http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * platform/ios/http/tests/quicklook/document-domain-is-empty-string-expected.txt: * platform/ios/http/tests/quicklook/external-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/hide-referer-on-navigation-expected.txt: * platform/ios/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios/quicklook/excel-expected.txt: * platform/ios/quicklook/excel-legacy-expected.txt: * platform/ios/quicklook/excel-macro-enabled-expected.txt: * platform/ios/quicklook/powerpoint-expected.txt: * platform/ios/quicklook/powerpoint-legacy-expected.txt: * platform/ios/quicklook/word-expected.txt: * platform/ios/quicklook/word-legacy-expected.txt: * platform/ios/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * platform/mac-wk2/plugins/resize-from-plugin-expected.txt: * platform/mac/fast/loader/webarchive-encoding-respected-expected.txt: * platform/mac/webarchive/adopt-attribute-styled-body-webarchive-expected.txt: * platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac/webarchive/test-duplicate-resources-expected.txt: * platform/win/plugins/resize-from-plugin-expected.txt: * platform/win/webarchive/loading/cache-expired-subresource-expected.txt: * platform/wk2/fast/loader/fragment-navigation-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-meta-refresh-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-set-location-base-blank-expected.txt: * platform/wk2/fast/loader/refresh-iframe-base-blank-expected.txt: * platform/wk2/fast/loader/subframe-removes-itself-expected.txt: * platform/wk2/http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-credentials-sent-automatically-expected.txt: * platform/wk2/http/tests/loading/redirect-with-no-location-crash-expected.txt: * platform/wk2/http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/http-0.9/iframe-blocked-expected.txt: * platform/wk2/http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * platform/wk2/webarchive/loading/javascript-url-iframe-crash-expected.txt: * platform/wk2/webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * platform/wk2/webarchive/loading/missing-data-expected.txt: * platform/wk2/webarchive/loading/object-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * platform/wk2/webarchive/loading/video-in-webarchive-expected.txt: * plugins/resize-from-plugin-expected.txt: * quicklook/excel-expected.txt: * quicklook/excel-legacy-expected.txt: * quicklook/excel-macro-enabled-expected.txt: * quicklook/keynote-09-expected.txt: * quicklook/multi-sheet-numbers-09-expected.txt: * quicklook/numbers-09-expected.txt: * quicklook/pages-09-expected.txt: * quicklook/powerpoint-expected.txt: * quicklook/powerpoint-legacy-expected.txt: * quicklook/word-expected.txt: * quicklook/word-legacy-expected.txt: * userscripts/user-script-all-frames-expected.txt: * userscripts/user-script-top-frame-only-expected.txt: * userscripts/user-style-all-frames-expected.txt: * userscripts/user-style-top-frame-only-expected.txt: * webarchive/loading/javascript-url-iframe-crash-expected.txt: * webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * webarchive/loading/missing-data-expected.txt: * webarchive/loading/object-expected.txt: * webarchive/loading/test-loading-archive-expected.txt: * webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * webarchive/loading/video-in-webarchive-expected.txt: Canonical link: https://commits.webkit.org/200851@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-07 18:55:15 +00:00
frame "<!--frame1-->" - didStartProvisionalLoadForFrame
frame "<!--frame1-->" - didCancelClientRedirectForFrame
frame "<!--frame1-->" - didCommitLoadForFrame
frame "<!--frame1-->" - didFinishDocumentLoadForFrame
frame "<!--frame1-->" - didHandleOnloadEventsForFrame
frame "<!--frame1-->" - didFinishLoadForFrame
[Content Filtering] Load blocked pages more like other error pages are loaded https://bugs.webkit.org/show_bug.cgi?id=159485 <rdar://problem/26014076> Reviewed by Brady Eidson. Source/WebCore: Content filter blocked pages were being loaded by cancelling the provisional load of the page that was blocked and then scheduling a navigation to the content filter error page. Some clients would not expect a new, Web process-initiated provisional navigation to start after a cancellation, though, and this would put them in a bad state. This patch changes blocked page loading to behave more like loading other error pages. Specifically: 1. didFailProvisionalLoad is dispatched with a new, non-cancellation error code. 2. The blocked page is loaded immediately after dispatching didFailProvisionalLoad, which prevents FrameLoader from creating a new back-forward list item for the substitute data load. 3. A substitute data load initiated by the client for the blocked URL is ignored if ContentFilter will display its own error page. 4. A file: URL is used instead of a custom scheme for the base URL of the blocked page, since some clients expect this. Updated existing tests to capture frame load delegate callbacks and the back forward list. Added new API tests: ContentFiltering.LoadAlternate*. * English.lproj/Localizable.strings: Added a WebKitErrorFrameLoadBlockedByContentFilter description. * Resources/ContentFilterBlockedPage.html: Added. * WebCore.xcodeproj/project.pbxproj: Added ContentFilterBlockedPage.html as a frameowrk resource. * loader/ContentFilter.cpp: (WebCore::ContentFilter::continueAfterWillSendRequest): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::stopFilteringMainResource): Only set m_state to Stopped if not already Blocked, so that we don't forget this ContentFilter was blocked when calling cancelMailResourceLoad() in didDecide(). (WebCore::ContentFilter::continueAfterResponseReceived): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::continueAfterDataReceived): Ditto. (WebCore::ContentFilter::continueAfterNotifyFinished): Ditto. (WebCore::ContentFilter::didDecide): Moved code from DocumentLoader::contentFilterDidBlock() to here. Created a blockedByContentFilterError() and called cancelMainResourceLoad(). (WebCore::blockedPageURL): Returned a file: URL to ContentFilterBlockedPage.html in WebCore.framework. (WebCore::ContentFilter::continueAfterSubstituteDataRequest): If the substitute data load is for the same failingURL as the currently-displayed blocked page, ignore it. (WebCore::ContentFilter::handleProvisionalLoadFailure): Load the blocked page if m_state is Blocked and the ResourceError matches the error we used when previously calling cancelMainResourceLoad(). (WebCore::ContentFilter::unblockHandler): Deleted. (WebCore::ContentFilter::replacementData): Deleted. (WebCore::ContentFilter::unblockRequestDeniedScript): Deleted. * loader/ContentFilter.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::contentFilter): Returned m_contentFilter. (WebCore::DocumentLoader::installContentFilterUnblockHandler): Deleted. (WebCore::DocumentLoader::contentFilterDidBlock): Deleted. * loader/DocumentLoader.h: * loader/EmptyClients.h: Added a default implementation of blockedByContentFilterError(). * loader/FrameLoader.cpp: (WebCore::FrameLoader::load): If m_loadType was already RedirectWithLockedBackForwardList and we are loading subsitute data for a failing URL, continue to use RedirectWithLockedBackForwardList. This prevents a new back-forward list item from being created when loading a blocked page in a subframe. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Called ContentFilter::handleProvisionalLoadFailure() after dispatchDidFailProvisionalLoad(). (WebCore::FrameLoader::blockedByContentFilterError): Called FrameLoaderClient::blockedByContentFilterError(). * loader/FrameLoader.h: * loader/FrameLoaderClient.h: * loader/NavigationScheduler.cpp: (WebCore::ScheduledSubstituteDataLoad::ScheduledSubstituteDataLoad): Deleted. (WebCore::NavigationScheduler::scheduleSubstituteDataLoad): Deleted. * loader/NavigationScheduler.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): Ignored a substitute data load for a failing URL if ContentFilter::continueAfterSubstituteDataRequest() returns false. Source/WebKit/mac: * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter. * Misc/WebKitErrors.m: (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter. Source/WebKit2: * Shared/API/c/WKErrorRef.h: Defined kWKErrorCodeFrameLoadBlockedByContentFilter. * UIProcess/Cocoa/WebProcessProxyCocoa.mm: (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added the resource directories of WebCore.framework and WebKit.framework as paths with assumed read access. * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::hasAssumedReadAccessToURL): Checked platformPathsWithAssumedReadAccess() as well as m_localPathsWithAssumedReadAccess. (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added a non-Cocoa implementation. * UIProcess/WebProcessProxy.h: * WebProcess/WebCoreSupport/WebErrors.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::blockedByContentFilterError): Called WebKit::blockedByContentFilterError(). * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: (WebKit::blockedByContentFilterError): Returned a ResourceError for kWKErrorCodeFrameLoadBlockedByContentFilter. Tools: Added API tests for WebView and WKWebView to verify that alternate HTML loaded in response to a content filtering provisional navigation failure is ignored in preference of ContentFilter's own error page. * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: (-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]): (-[LoadAlternateNavigationDelegate webView:didFinishNavigation:]): (loadAlternateTest): (TEST): * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: (-[MockContentFilterEnabler initWithCoder:]): * TestWebKitAPI/Tests/mac/ContentFiltering.mm: Added. (-[LoadAlternateFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): (-[LoadAlternateFrameLoadDelegate webView:didFinishLoadForFrame:]): (TestWebKitAPI::loadAlternateTest): (TestWebKitAPI::TEST): LayoutTests: Changed allow-* and block-* tests from ref tests to text tests so that they can capture frame load delegate callbacks and the back forward list. * contentfiltering/allow-after-add-data-expected.html: Removed. * contentfiltering/allow-after-add-data-expected.txt: Added. * contentfiltering/allow-after-finished-adding-data-expected.html: Removed. * contentfiltering/allow-after-finished-adding-data-expected.txt: Added. * contentfiltering/allow-after-response-expected.html: Removed. * contentfiltering/allow-after-response-expected.txt: Added. * contentfiltering/allow-after-will-send-request-expected.html: Removed. * contentfiltering/allow-after-will-send-request-expected.txt: Added. * contentfiltering/allow-never-expected.html: Removed. * contentfiltering/allow-never-expected.txt: Added. * contentfiltering/block-after-add-data-expected.html: Removed. * contentfiltering/block-after-add-data-expected.txt: Added. * contentfiltering/block-after-add-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-add-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-response-expected.html: Removed. * contentfiltering/block-after-response-expected.txt: Added. * contentfiltering/block-after-response-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-response-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-expected.html: Removed. * contentfiltering/block-after-will-send-request-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: Added. * contentfiltering/block-never-expected.html: Removed. * contentfiltering/block-never-expected.txt: Added. * contentfiltering/resources/contentfiltering.js: Added testRunner calls to dump as text, dump frame load callbacks, and dump the back forward list. Changed from loading data: URLs to file: URLs in the test iframe. Canonical link: https://commits.webkit.org/177722@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-07-08 20:14:34 +00:00
--------
ASSERT(!childItemWithTarget(child->target())) is hit in HistoryItem::addChildItem() https://bugs.webkit.org/show_bug.cgi?id=185322 Reviewed by Geoff Garen. LayoutTests/imported/w3c: Rebaseline layout tests due to frame name changes. * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_same_origin-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/002-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/005-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/007-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/009-expected.txt: Source/WebCore: We generate unique names for Frame to be used in HistoryItem. Those names not only need to be unique, they also need to be repeatable to avoid layout tests flakiness and for things like restoring form state from a HistoryItem. The previously generated frame names were relying on the Frame's index among a parent Frame's children. The issue was that we could end up with duplicate names because one could insert a Frame *before* an existing one. This is because the code would not take care of updating existing Frames' unique name on frame tree mutation. Updating frame tree names on mutation would be inefficient and is also not necessary. The approach chosen in this patch is to stop using the Frame's index and instead rely on an increasing counter stored on the top-frame's FrameTree. To make the names repeatable, we reset the counter on page navigation. * page/Frame.cpp: (WebCore::Frame::setDocument): * page/FrameTree.cpp: (WebCore::FrameTree::uniqueChildName const): (WebCore::FrameTree::generateUniqueName const): * page/FrameTree.h: (WebCore::FrameTree::resetFrameIdentifiers): LayoutTests: Rebaseline layout tests due to frame name changes. * applicationmanifest/display-mode-subframe-expected.txt: * contentfiltering/allow-after-add-data-expected.txt: * contentfiltering/allow-after-finished-adding-data-expected.txt: * contentfiltering/allow-after-response-expected.txt: * contentfiltering/allow-after-will-send-request-expected.txt: * contentfiltering/allow-never-expected.txt: * contentfiltering/block-after-add-data-expected.txt: * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-expected.txt: * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-response-expected.txt: * contentfiltering/block-after-response-then-allow-unblock-expected.txt: * contentfiltering/block-after-response-then-deny-unblock-expected.txt: * contentfiltering/block-after-will-send-request-expected.txt: * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: * contentfiltering/block-never-expected.txt: * fast/dom/Geolocation/callback-to-deleted-context-expected.txt: * fast/dom/Geolocation/disconnected-frame-expected.txt: * fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt: * fast/dom/Window/messageevent-source-postmessage-expected.txt: * fast/dom/Window/messageevent-source-postmessage-reified-expected.txt: * fast/dom/javascript-url-crash-function-expected.txt: * fast/encoding/meta-overrules-auto-expected.txt: * fast/events/before-unload-forbidden-navigation-expected.txt: * fast/events/before-unload-in-subframe-expected.txt: * fast/events/before-unload-with-subframes-expected.txt: * fast/events/focusingUnloadedFrame-expected.txt: * fast/events/onloadFrameCrash-expected.txt: * fast/events/onunload-not-on-body-expected.txt: * fast/events/pageshow-pagehide-expected.txt: * fast/events/stop-load-in-unload-handler-using-document-write-expected.txt: * fast/events/stop-load-in-unload-handler-using-window-stop-expected.txt: * fast/forms/form-and-frame-interaction-retains-values-expected.txt: * fast/frames/crash-when-child-iframe-forces-layout-during-unload-and-sibling-frame-has-mediaquery-expected.txt: * fast/frames/frame-element-name-expected.txt: * fast/frames/frame-src-attribute-expected.txt: * fast/frames/frame-unload-crash-expected.txt: * fast/frames/iframe-reparenting-unique-name-expected.txt: * fast/frames/iframe-set-inner-html-expected.txt: * fast/frames/layout-after-destruction-expected.txt: * fast/frames/long-names-in-nested-subframes-expected.txt: * fast/frames/page-unload-document-open-expected.txt: * fast/frames/reparent-in-unload-contentdocument-expected.txt: * fast/frames/sandboxed-iframe-noscript-expected.txt: * fast/frames/sandboxed-iframe-storage-expected.txt: * fast/frames/srcdoc/setting-src-does-nothing-expected.txt: * fast/frames/srcdoc/srcdoc-can-navigate-expected.txt: * fast/frames/srcdoc/srcdoc-loads-content-expected.txt: * fast/history/back-from-page-with-focused-iframe-expected.txt: * fast/history/history-back-initial-vs-final-url-expected.txt: * fast/history/redirect-via-iframe-expected.txt: * fast/loader/child-frame-add-after-back-forward-expected.txt: * fast/loader/dynamic-iframe-extra-back-forward-item-expected.txt: * fast/loader/fragment-navigation-base-blank-expected.txt: * fast/loader/frame-location-change-not-added-to-history-expected.txt: * fast/loader/frame-src-change-added-to-history-expected.txt: * fast/loader/frame-src-change-not-added-to-history-expected.txt: * fast/loader/frames-with-unload-handlers-in-page-cache-expected.txt: * fast/loader/grandparent-completion-starts-redirect-expected.txt: * fast/loader/iframe-meta-refresh-base-blank-expected.txt: * fast/loader/iframe-set-location-base-blank-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-async-delegate-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-expected.txt: * fast/loader/page-dismissal-modal-dialogs-expected.txt: * fast/loader/ping-error-expected.txt: * fast/loader/plain-text-document-expected.txt: * fast/loader/refresh-iframe-base-blank-expected.txt: * fast/loader/stateobjects/pushstate-frequency-iframe-expected.txt: * fast/loader/stateobjects/pushstate-in-iframe-expected.txt: * fast/loader/stateobjects/replacestate-frequency-iframe-expected.txt: * fast/loader/stateobjects/replacestate-in-iframe-expected.txt: * fast/loader/stop-provisional-loads-expected.txt: * fast/loader/subframe-removes-itself-expected.txt: * fast/loader/subframe-self-close-expected.txt: * fast/loader/unload-hyperlink-targeted-expected.txt: * fast/parser/double-write-from-closed-iframe-expected.txt: * fast/parser/iframe-sets-parent-to-javascript-url-expected.txt: * fast/parser/javascript-url-compat-mode-expected.txt: * fast/parser/move-during-parsing-expected.txt: * fast/parser/noscript-with-javascript-disabled-expected.txt: * fast/parser/pre-html5-parser-quirks-expected.txt: * fast/preloader/iframe-srcdoc-expected.txt: * fast/tokenizer/text-plain-expected.txt: * fast/xmlhttprequest/xmlhttprequest-no-file-access-expected.txt: * fast/xsl/xslt-text-expected.txt: * http/tests/appcache/x-frame-options-prevents-framing-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url-expected.txt: * http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-iframe-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: * http/tests/cookies/same-site/fetch-in-same-origin-service-worker-expected.txt: * http/tests/from-origin/document-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/document-from-origin-same-site-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-site-blocked-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-data-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-accepted-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/redirect-document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-cross-origin-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-same-origin-from-origin-same-blocked-expected.txt: * http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * http/tests/loading/basic-auth-remove-credentials-expected.txt: * http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * http/tests/loading/basic-credentials-sent-automatically-expected.txt: * http/tests/loading/pdf-commit-load-callbacks-expected.txt: * http/tests/loading/redirect-with-no-location-crash-expected.txt: * http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * http/tests/misc/last-modified-parsing-expected.txt: * http/tests/misc/policy-delegate-called-twice-expected.txt: * http/tests/misc/redirect-to-external-url-expected.txt: * http/tests/misc/webtiming-origins-expected.txt: Removed. * http/tests/navigation/back-to-slow-frame-expected.txt: * http/tests/navigation/forward-and-cancel-expected.txt: * http/tests/navigation/image-load-in-subframe-unload-handler-expected.txt: * http/tests/navigation/lockedhistory-iframe-expected.txt: * http/tests/navigation/post-frames-expected.txt: * http/tests/navigation/reload-subframe-frame-expected.txt: * http/tests/navigation/reload-subframe-iframe-expected.txt: * http/tests/navigation/reload-subframe-object-expected.txt: * http/tests/preload/download_resources_from_header_iframe-expected.txt: * http/tests/preload/download_resources_from_invalid_headers-expected.txt: * http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * http/tests/quicklook/document-domain-is-empty-string-expected.txt: * http/tests/quicklook/external-stylesheet-blocked-expected.txt: * http/tests/quicklook/hide-referer-on-navigation-expected.txt: * http/tests/quicklook/rtf-document-domain-is-empty-string-expected.txt: * http/tests/quicklook/same-origin-xmlhttprequest-allowed-expected.txt: * http/tests/quicklook/top-navigation-blocked-expected.txt: * http/tests/resourceLoadStatistics/add-blocking-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/add-partitioning-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: * http/tests/resourceLoadStatistics/remove-blocking-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/remove-partitioning-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-redirects-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-requests-expected.txt: * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt: * http/tests/security/appcache-in-private-browsing-expected.txt: * http/tests/security/appcache-switching-private-browsing-expected.txt: * http/tests/security/canvas-cors-with-two-hosts-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-meta-element-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-report-only-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-allow-same-origin-sandboxed-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-sandboxed-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-protocolless-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-crossorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-sameorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-01-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-02-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https-expected.txt: * http/tests/security/contentSecurityPolicy/WebAssembly-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-multiple-headers-expected.txt: * http/tests/security/contentSecurityPolicy/eval-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https-expected.txt: * http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt: * http/tests/security/contentSecurityPolicy/script-loads-with-img-src-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-inline-event-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-parsing-implicit-and-explicit-port-number-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-redirect-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-01-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-02-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-03-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-06-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-07-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-08-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-deprecated-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-none-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-02-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed2-expected.txt: * http/tests/security/cookies/first-party-cookie-allow-xslt-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-redirect-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-xslt-expected.txt: * http/tests/security/cross-frame-access-callback-explicit-domain-DENY-expected.txt: * http/tests/security/cross-frame-access-delete-expected.txt: * http/tests/security/cross-frame-access-frameelement-expected.txt: * http/tests/security/cross-frame-access-history-put-expected.txt: Removed. * http/tests/security/cross-frame-access-location-put-expected.txt: * http/tests/security/cross-frame-access-private-browsing-expected.txt: * http/tests/security/cross-origin-appcache-allowed-expected.txt: * http/tests/security/cross-origin-appcache-expected.txt: * http/tests/security/cross-origin-css-primitive-expected.txt: * http/tests/security/cross-origin-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-indexeddb-expected.txt: * http/tests/security/cross-origin-plugin-allowed-expected.txt: * http/tests/security/cross-origin-plugin-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * http/tests/security/cross-origin-session-storage-allowed-expected.txt: * http/tests/security/cross-origin-session-storage-third-party-blocked-expected.txt: * http/tests/security/cross-origin-websql-allowed-expected.txt: * http/tests/security/cross-origin-websql-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-expected.txt: * http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level-expected.txt: * http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-plugin-navigation-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-targeted-link-navigation-expected.txt: * http/tests/security/history-pushState-replaceState-from-sandboxed-iframe-expected.txt: * http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt: * http/tests/security/http-0.9/default-port-script-blocked-expected.txt: * http/tests/security/http-0.9/iframe-blocked-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-default-port-page-allowed-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-page-blocked-expected.txt: * http/tests/security/http-0.9/sandbox-should-not-persist-on-navigation-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-to-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-from-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/blob-url-in-iframe-expected.txt: * http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/private-browsing-http-auth-expected.txt: * http/tests/security/referrer-policy-always-expected.txt: * http/tests/security/referrer-policy-default-expected.txt: * http/tests/security/referrer-policy-https-always-expected.txt: * http/tests/security/referrer-policy-https-default-expected.txt: * http/tests/security/referrer-policy-https-never-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-https-origin-expected.txt: * http/tests/security/referrer-policy-https-unsafe-url-expected.txt: * http/tests/security/referrer-policy-invalid-expected.txt: * http/tests/security/referrer-policy-never-expected.txt: * http/tests/security/referrer-policy-no-referrer-expected.txt: * http/tests/security/referrer-policy-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-origin-expected.txt: * http/tests/security/referrer-policy-redirect-expected.txt: * http/tests/security/referrer-policy-rel-noreferrer-expected.txt: * http/tests/security/same-origin-appcache-blocked-expected.txt: * http/tests/security/same-origin-document-domain-storage-allowed-expected.txt: * http/tests/security/same-origin-storage-blocked-expected.txt: * http/tests/security/same-origin-websql-blocked-expected.txt: * http/tests/security/sandboxed-iframe-document-cookie-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-getCurrentPosition-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-watchPosition-expected.txt: * http/tests/security/srcdoc-inherits-referrer-expected.txt: * http/tests/security/srcdoc-inherits-referrer-for-forms-expected.txt: * http/tests/security/storage-blocking-loosened-local-storage-expected.txt: * http/tests/security/storage-blocking-loosened-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-websql-expected.txt: * http/tests/security/storage-blocking-strengthened-local-storage-expected.txt: * http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-websql-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-redirects-in-private-mode-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-requests-in-private-mode-expected.txt: * http/tests/security/window-properties-clear-domain-expected.txt: * http/tests/security/window-properties-clear-port-expected.txt: * http/tests/security/window-properties-pass-expected.txt: * http/tests/security/xss-DENIED-assign-location-href-javascript-expected.txt: * http/tests/security/xss-DENIED-defineProperty-expected.txt: * http/tests/security/xssAuditor/faux-script1-expected.txt: * http/tests/security/xssAuditor/faux-script2-expected.txt: * http/tests/security/xssAuditor/faux-script3-expected.txt: * http/tests/security/xssAuditor/malformed-HTML-expected.txt: * http/tests/security/xssAuditor/non-block-javascript-url-frame-expected.txt: * http/tests/security/xssAuditor/reflection-in-path-expected.txt: * http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * http/tests/security/xssAuditor/svg-animate-expected.txt: * http/tests/ssl/media-stream/get-user-media-different-host-expected.txt: * http/tests/ssl/media-stream/get-user-media-nested-expected.txt: * http/tests/ssl/media-stream/get-user-media-secure-connection-expected.txt: * http/tests/ssl/ping-with-unsafe-redirect-expected.txt: * http/tests/storageAccess/deny-storage-access-under-opener-expected.txt: * http/tests/storageAccess/grant-storage-access-under-opener-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-and-try-access-from-right-frame-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-but-try-access-from-wrong-frame-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-origin-null-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt: * http/tests/xmlhttprequest/frame-load-cancelled-abort-expected.txt: * http/tests/xmlhttprequest/frame-unload-abort-crash-expected.txt: * http/tests/xmlhttprequest/origin-exact-matching-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-004-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-005-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-006-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-007-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-008-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-009-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-010-expected.txt: * http/tests/xsl/xslt-transform-with-javascript-disabled-expected.txt: * imported/blink/fast/plugins/empty-url-object-expected.txt: * loader/stateobjects/pushstate-size-iframe-expected.txt: * loader/stateobjects/replacestate-size-iframe-expected.txt: * media/auto-play-in-sandbox-with-allow-scripts-expected.txt: * platform/ios-wk1/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios-wk1/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * platform/ios/http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * platform/ios/http/tests/quicklook/document-domain-is-empty-string-expected.txt: * platform/ios/http/tests/quicklook/external-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/hide-referer-on-navigation-expected.txt: * platform/ios/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios/quicklook/excel-expected.txt: * platform/ios/quicklook/excel-legacy-expected.txt: * platform/ios/quicklook/excel-macro-enabled-expected.txt: * platform/ios/quicklook/powerpoint-expected.txt: * platform/ios/quicklook/powerpoint-legacy-expected.txt: * platform/ios/quicklook/word-expected.txt: * platform/ios/quicklook/word-legacy-expected.txt: * platform/ios/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * platform/mac-wk2/plugins/resize-from-plugin-expected.txt: * platform/mac/fast/loader/webarchive-encoding-respected-expected.txt: * platform/mac/webarchive/adopt-attribute-styled-body-webarchive-expected.txt: * platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac/webarchive/test-duplicate-resources-expected.txt: * platform/win/plugins/resize-from-plugin-expected.txt: * platform/win/webarchive/loading/cache-expired-subresource-expected.txt: * platform/wk2/fast/loader/fragment-navigation-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-meta-refresh-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-set-location-base-blank-expected.txt: * platform/wk2/fast/loader/refresh-iframe-base-blank-expected.txt: * platform/wk2/fast/loader/subframe-removes-itself-expected.txt: * platform/wk2/http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-credentials-sent-automatically-expected.txt: * platform/wk2/http/tests/loading/redirect-with-no-location-crash-expected.txt: * platform/wk2/http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/http-0.9/iframe-blocked-expected.txt: * platform/wk2/http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * platform/wk2/webarchive/loading/javascript-url-iframe-crash-expected.txt: * platform/wk2/webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * platform/wk2/webarchive/loading/missing-data-expected.txt: * platform/wk2/webarchive/loading/object-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * platform/wk2/webarchive/loading/video-in-webarchive-expected.txt: * plugins/resize-from-plugin-expected.txt: * quicklook/excel-expected.txt: * quicklook/excel-legacy-expected.txt: * quicklook/excel-macro-enabled-expected.txt: * quicklook/keynote-09-expected.txt: * quicklook/multi-sheet-numbers-09-expected.txt: * quicklook/numbers-09-expected.txt: * quicklook/pages-09-expected.txt: * quicklook/powerpoint-expected.txt: * quicklook/powerpoint-legacy-expected.txt: * quicklook/word-expected.txt: * quicklook/word-legacy-expected.txt: * userscripts/user-script-all-frames-expected.txt: * userscripts/user-script-top-frame-only-expected.txt: * userscripts/user-style-all-frames-expected.txt: * userscripts/user-style-top-frame-only-expected.txt: * webarchive/loading/javascript-url-iframe-crash-expected.txt: * webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * webarchive/loading/missing-data-expected.txt: * webarchive/loading/object-expected.txt: * webarchive/loading/test-loading-archive-expected.txt: * webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * webarchive/loading/video-in-webarchive-expected.txt: Canonical link: https://commits.webkit.org/200851@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-07 18:55:15 +00:00
Frame: '<!--frame1-->'
[Content Filtering] Load blocked pages more like other error pages are loaded https://bugs.webkit.org/show_bug.cgi?id=159485 <rdar://problem/26014076> Reviewed by Brady Eidson. Source/WebCore: Content filter blocked pages were being loaded by cancelling the provisional load of the page that was blocked and then scheduling a navigation to the content filter error page. Some clients would not expect a new, Web process-initiated provisional navigation to start after a cancellation, though, and this would put them in a bad state. This patch changes blocked page loading to behave more like loading other error pages. Specifically: 1. didFailProvisionalLoad is dispatched with a new, non-cancellation error code. 2. The blocked page is loaded immediately after dispatching didFailProvisionalLoad, which prevents FrameLoader from creating a new back-forward list item for the substitute data load. 3. A substitute data load initiated by the client for the blocked URL is ignored if ContentFilter will display its own error page. 4. A file: URL is used instead of a custom scheme for the base URL of the blocked page, since some clients expect this. Updated existing tests to capture frame load delegate callbacks and the back forward list. Added new API tests: ContentFiltering.LoadAlternate*. * English.lproj/Localizable.strings: Added a WebKitErrorFrameLoadBlockedByContentFilter description. * Resources/ContentFilterBlockedPage.html: Added. * WebCore.xcodeproj/project.pbxproj: Added ContentFilterBlockedPage.html as a frameowrk resource. * loader/ContentFilter.cpp: (WebCore::ContentFilter::continueAfterWillSendRequest): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::stopFilteringMainResource): Only set m_state to Stopped if not already Blocked, so that we don't forget this ContentFilter was blocked when calling cancelMailResourceLoad() in didDecide(). (WebCore::ContentFilter::continueAfterResponseReceived): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::continueAfterDataReceived): Ditto. (WebCore::ContentFilter::continueAfterNotifyFinished): Ditto. (WebCore::ContentFilter::didDecide): Moved code from DocumentLoader::contentFilterDidBlock() to here. Created a blockedByContentFilterError() and called cancelMainResourceLoad(). (WebCore::blockedPageURL): Returned a file: URL to ContentFilterBlockedPage.html in WebCore.framework. (WebCore::ContentFilter::continueAfterSubstituteDataRequest): If the substitute data load is for the same failingURL as the currently-displayed blocked page, ignore it. (WebCore::ContentFilter::handleProvisionalLoadFailure): Load the blocked page if m_state is Blocked and the ResourceError matches the error we used when previously calling cancelMainResourceLoad(). (WebCore::ContentFilter::unblockHandler): Deleted. (WebCore::ContentFilter::replacementData): Deleted. (WebCore::ContentFilter::unblockRequestDeniedScript): Deleted. * loader/ContentFilter.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::contentFilter): Returned m_contentFilter. (WebCore::DocumentLoader::installContentFilterUnblockHandler): Deleted. (WebCore::DocumentLoader::contentFilterDidBlock): Deleted. * loader/DocumentLoader.h: * loader/EmptyClients.h: Added a default implementation of blockedByContentFilterError(). * loader/FrameLoader.cpp: (WebCore::FrameLoader::load): If m_loadType was already RedirectWithLockedBackForwardList and we are loading subsitute data for a failing URL, continue to use RedirectWithLockedBackForwardList. This prevents a new back-forward list item from being created when loading a blocked page in a subframe. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Called ContentFilter::handleProvisionalLoadFailure() after dispatchDidFailProvisionalLoad(). (WebCore::FrameLoader::blockedByContentFilterError): Called FrameLoaderClient::blockedByContentFilterError(). * loader/FrameLoader.h: * loader/FrameLoaderClient.h: * loader/NavigationScheduler.cpp: (WebCore::ScheduledSubstituteDataLoad::ScheduledSubstituteDataLoad): Deleted. (WebCore::NavigationScheduler::scheduleSubstituteDataLoad): Deleted. * loader/NavigationScheduler.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): Ignored a substitute data load for a failing URL if ContentFilter::continueAfterSubstituteDataRequest() returns false. Source/WebKit/mac: * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter. * Misc/WebKitErrors.m: (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter. Source/WebKit2: * Shared/API/c/WKErrorRef.h: Defined kWKErrorCodeFrameLoadBlockedByContentFilter. * UIProcess/Cocoa/WebProcessProxyCocoa.mm: (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added the resource directories of WebCore.framework and WebKit.framework as paths with assumed read access. * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::hasAssumedReadAccessToURL): Checked platformPathsWithAssumedReadAccess() as well as m_localPathsWithAssumedReadAccess. (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added a non-Cocoa implementation. * UIProcess/WebProcessProxy.h: * WebProcess/WebCoreSupport/WebErrors.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::blockedByContentFilterError): Called WebKit::blockedByContentFilterError(). * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: (WebKit::blockedByContentFilterError): Returned a ResourceError for kWKErrorCodeFrameLoadBlockedByContentFilter. Tools: Added API tests for WebView and WKWebView to verify that alternate HTML loaded in response to a content filtering provisional navigation failure is ignored in preference of ContentFilter's own error page. * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: (-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]): (-[LoadAlternateNavigationDelegate webView:didFinishNavigation:]): (loadAlternateTest): (TEST): * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: (-[MockContentFilterEnabler initWithCoder:]): * TestWebKitAPI/Tests/mac/ContentFiltering.mm: Added. (-[LoadAlternateFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): (-[LoadAlternateFrameLoadDelegate webView:didFinishLoadForFrame:]): (TestWebKitAPI::loadAlternateTest): (TestWebKitAPI::TEST): LayoutTests: Changed allow-* and block-* tests from ref tests to text tests so that they can capture frame load delegate callbacks and the back forward list. * contentfiltering/allow-after-add-data-expected.html: Removed. * contentfiltering/allow-after-add-data-expected.txt: Added. * contentfiltering/allow-after-finished-adding-data-expected.html: Removed. * contentfiltering/allow-after-finished-adding-data-expected.txt: Added. * contentfiltering/allow-after-response-expected.html: Removed. * contentfiltering/allow-after-response-expected.txt: Added. * contentfiltering/allow-after-will-send-request-expected.html: Removed. * contentfiltering/allow-after-will-send-request-expected.txt: Added. * contentfiltering/allow-never-expected.html: Removed. * contentfiltering/allow-never-expected.txt: Added. * contentfiltering/block-after-add-data-expected.html: Removed. * contentfiltering/block-after-add-data-expected.txt: Added. * contentfiltering/block-after-add-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-add-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-response-expected.html: Removed. * contentfiltering/block-after-response-expected.txt: Added. * contentfiltering/block-after-response-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-response-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-expected.html: Removed. * contentfiltering/block-after-will-send-request-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: Added. * contentfiltering/block-never-expected.html: Removed. * contentfiltering/block-never-expected.txt: Added. * contentfiltering/resources/contentfiltering.js: Added testRunner calls to dump as text, dump frame load callbacks, and dump the back forward list. Changed from loading data: URLs to file: URLs in the test iframe. Canonical link: https://commits.webkit.org/177722@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-07-08 20:14:34 +00:00
--------
PASS
============== Back Forward List ==============
curr-> (file test):contentfiltering/allow-after-will-send-request.html **nav target**
ASSERT(!childItemWithTarget(child->target())) is hit in HistoryItem::addChildItem() https://bugs.webkit.org/show_bug.cgi?id=185322 Reviewed by Geoff Garen. LayoutTests/imported/w3c: Rebaseline layout tests due to frame name changes. * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_same_origin-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/002-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/005-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/003-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/004-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/007-expected.txt: * web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/009-expected.txt: Source/WebCore: We generate unique names for Frame to be used in HistoryItem. Those names not only need to be unique, they also need to be repeatable to avoid layout tests flakiness and for things like restoring form state from a HistoryItem. The previously generated frame names were relying on the Frame's index among a parent Frame's children. The issue was that we could end up with duplicate names because one could insert a Frame *before* an existing one. This is because the code would not take care of updating existing Frames' unique name on frame tree mutation. Updating frame tree names on mutation would be inefficient and is also not necessary. The approach chosen in this patch is to stop using the Frame's index and instead rely on an increasing counter stored on the top-frame's FrameTree. To make the names repeatable, we reset the counter on page navigation. * page/Frame.cpp: (WebCore::Frame::setDocument): * page/FrameTree.cpp: (WebCore::FrameTree::uniqueChildName const): (WebCore::FrameTree::generateUniqueName const): * page/FrameTree.h: (WebCore::FrameTree::resetFrameIdentifiers): LayoutTests: Rebaseline layout tests due to frame name changes. * applicationmanifest/display-mode-subframe-expected.txt: * contentfiltering/allow-after-add-data-expected.txt: * contentfiltering/allow-after-finished-adding-data-expected.txt: * contentfiltering/allow-after-response-expected.txt: * contentfiltering/allow-after-will-send-request-expected.txt: * contentfiltering/allow-never-expected.txt: * contentfiltering/block-after-add-data-expected.txt: * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-expected.txt: * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: * contentfiltering/block-after-response-expected.txt: * contentfiltering/block-after-response-then-allow-unblock-expected.txt: * contentfiltering/block-after-response-then-deny-unblock-expected.txt: * contentfiltering/block-after-will-send-request-expected.txt: * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: * contentfiltering/block-never-expected.txt: * fast/dom/Geolocation/callback-to-deleted-context-expected.txt: * fast/dom/Geolocation/disconnected-frame-expected.txt: * fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt: * fast/dom/Window/messageevent-source-postmessage-expected.txt: * fast/dom/Window/messageevent-source-postmessage-reified-expected.txt: * fast/dom/javascript-url-crash-function-expected.txt: * fast/encoding/meta-overrules-auto-expected.txt: * fast/events/before-unload-forbidden-navigation-expected.txt: * fast/events/before-unload-in-subframe-expected.txt: * fast/events/before-unload-with-subframes-expected.txt: * fast/events/focusingUnloadedFrame-expected.txt: * fast/events/onloadFrameCrash-expected.txt: * fast/events/onunload-not-on-body-expected.txt: * fast/events/pageshow-pagehide-expected.txt: * fast/events/stop-load-in-unload-handler-using-document-write-expected.txt: * fast/events/stop-load-in-unload-handler-using-window-stop-expected.txt: * fast/forms/form-and-frame-interaction-retains-values-expected.txt: * fast/frames/crash-when-child-iframe-forces-layout-during-unload-and-sibling-frame-has-mediaquery-expected.txt: * fast/frames/frame-element-name-expected.txt: * fast/frames/frame-src-attribute-expected.txt: * fast/frames/frame-unload-crash-expected.txt: * fast/frames/iframe-reparenting-unique-name-expected.txt: * fast/frames/iframe-set-inner-html-expected.txt: * fast/frames/layout-after-destruction-expected.txt: * fast/frames/long-names-in-nested-subframes-expected.txt: * fast/frames/page-unload-document-open-expected.txt: * fast/frames/reparent-in-unload-contentdocument-expected.txt: * fast/frames/sandboxed-iframe-noscript-expected.txt: * fast/frames/sandboxed-iframe-storage-expected.txt: * fast/frames/srcdoc/setting-src-does-nothing-expected.txt: * fast/frames/srcdoc/srcdoc-can-navigate-expected.txt: * fast/frames/srcdoc/srcdoc-loads-content-expected.txt: * fast/history/back-from-page-with-focused-iframe-expected.txt: * fast/history/history-back-initial-vs-final-url-expected.txt: * fast/history/redirect-via-iframe-expected.txt: * fast/loader/child-frame-add-after-back-forward-expected.txt: * fast/loader/dynamic-iframe-extra-back-forward-item-expected.txt: * fast/loader/fragment-navigation-base-blank-expected.txt: * fast/loader/frame-location-change-not-added-to-history-expected.txt: * fast/loader/frame-src-change-added-to-history-expected.txt: * fast/loader/frame-src-change-not-added-to-history-expected.txt: * fast/loader/frames-with-unload-handlers-in-page-cache-expected.txt: * fast/loader/grandparent-completion-starts-redirect-expected.txt: * fast/loader/iframe-meta-refresh-base-blank-expected.txt: * fast/loader/iframe-set-location-base-blank-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-async-delegate-expected.txt: * fast/loader/inner-iframe-loads-data-url-into-parent-on-unload-crash-expected.txt: * fast/loader/page-dismissal-modal-dialogs-expected.txt: * fast/loader/ping-error-expected.txt: * fast/loader/plain-text-document-expected.txt: * fast/loader/refresh-iframe-base-blank-expected.txt: * fast/loader/stateobjects/pushstate-frequency-iframe-expected.txt: * fast/loader/stateobjects/pushstate-in-iframe-expected.txt: * fast/loader/stateobjects/replacestate-frequency-iframe-expected.txt: * fast/loader/stateobjects/replacestate-in-iframe-expected.txt: * fast/loader/stop-provisional-loads-expected.txt: * fast/loader/subframe-removes-itself-expected.txt: * fast/loader/subframe-self-close-expected.txt: * fast/loader/unload-hyperlink-targeted-expected.txt: * fast/parser/double-write-from-closed-iframe-expected.txt: * fast/parser/iframe-sets-parent-to-javascript-url-expected.txt: * fast/parser/javascript-url-compat-mode-expected.txt: * fast/parser/move-during-parsing-expected.txt: * fast/parser/noscript-with-javascript-disabled-expected.txt: * fast/parser/pre-html5-parser-quirks-expected.txt: * fast/preloader/iframe-srcdoc-expected.txt: * fast/tokenizer/text-plain-expected.txt: * fast/xmlhttprequest/xmlhttprequest-no-file-access-expected.txt: * fast/xsl/xslt-text-expected.txt: * http/tests/appcache/x-frame-options-prevents-framing-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin-expected.txt: * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url-expected.txt: * http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-iframe-expected.txt: * http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: * http/tests/cookies/same-site/fetch-in-same-origin-service-worker-expected.txt: * http/tests/from-origin/document-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/document-from-origin-same-site-accepted-expected.txt: * http/tests/from-origin/document-from-origin-same-site-blocked-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-accepted-expected.txt: * http/tests/from-origin/document-nested-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-data-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-accepted-expected.txt: * http/tests/from-origin/fetch-iframe-from-origin-same-blocked-expected.txt: * http/tests/from-origin/redirect-document-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-cross-origin-from-origin-same-blocked-expected.txt: * http/tests/from-origin/sandboxed-sub-frame-nested-same-origin-from-origin-same-blocked-expected.txt: * http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * http/tests/loading/basic-auth-remove-credentials-expected.txt: * http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * http/tests/loading/basic-credentials-sent-automatically-expected.txt: * http/tests/loading/pdf-commit-load-callbacks-expected.txt: * http/tests/loading/redirect-with-no-location-crash-expected.txt: * http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * http/tests/misc/last-modified-parsing-expected.txt: * http/tests/misc/policy-delegate-called-twice-expected.txt: * http/tests/misc/redirect-to-external-url-expected.txt: * http/tests/misc/webtiming-origins-expected.txt: Removed. * http/tests/navigation/back-to-slow-frame-expected.txt: * http/tests/navigation/forward-and-cancel-expected.txt: * http/tests/navigation/image-load-in-subframe-unload-handler-expected.txt: * http/tests/navigation/lockedhistory-iframe-expected.txt: * http/tests/navigation/post-frames-expected.txt: * http/tests/navigation/reload-subframe-frame-expected.txt: * http/tests/navigation/reload-subframe-iframe-expected.txt: * http/tests/navigation/reload-subframe-object-expected.txt: * http/tests/preload/download_resources_from_header_iframe-expected.txt: * http/tests/preload/download_resources_from_invalid_headers-expected.txt: * http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * http/tests/quicklook/document-domain-is-empty-string-expected.txt: * http/tests/quicklook/external-stylesheet-blocked-expected.txt: * http/tests/quicklook/hide-referer-on-navigation-expected.txt: * http/tests/quicklook/rtf-document-domain-is-empty-string-expected.txt: * http/tests/quicklook/same-origin-xmlhttprequest-allowed-expected.txt: * http/tests/quicklook/top-navigation-blocked-expected.txt: * http/tests/resourceLoadStatistics/add-blocking-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/add-partitioning-to-redirect-expected.txt: * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt: * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: * http/tests/resourceLoadStatistics/remove-blocking-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/remove-partitioning-in-redirect-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-redirects-expected.txt: * http/tests/resourceLoadStatistics/strip-referrer-to-origin-for-prevalent-subresource-requests-expected.txt: * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt: * http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt: * http/tests/security/appcache-in-private-browsing-expected.txt: * http/tests/security/appcache-switching-private-browsing-expected.txt: * http/tests/security/canvas-cors-with-two-hosts-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-meta-element-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-report-only-ignored-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-allow-same-origin-sandboxed-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-sandboxed-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-cross-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-star-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-same-in-same-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-none-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-protocolless-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-self-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-crossorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-star-allow-sameorigin-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-allow-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-url-block-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/module-scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-01-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/plugintypes-url-02-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scripthash-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-enforced-policy-and-not-in-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-in-one-enforced-policy-neither-in-another-enforced-policy-nor-report-policy-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-expected.txt: * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https-expected.txt: * http/tests/security/contentSecurityPolicy/WebAssembly-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/directive-parsing-multiple-headers-expected.txt: * http/tests/security/contentSecurityPolicy/eval-blocked-in-subframe-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/object-src-none-blocked-expected.txt: * http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https-expected.txt: * http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt: * http/tests/security/contentSecurityPolicy/script-loads-with-img-src-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-none-inline-event-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-parsing-implicit-and-explicit-port-number-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-redirect-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-01-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-02-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-blocked-03-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: * http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-02-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-03-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-04-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-05-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-06-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-07-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-08-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-10-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-deprecated-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-none-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-01-expected.txt: * http/tests/security/contentSecurityPolicy/source-list-parsing-paths-02-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed-expected.txt: * http/tests/security/contentSecurityPolicy/xsl-redirect-allowed2-expected.txt: * http/tests/security/cookies/first-party-cookie-allow-xslt-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-redirect-expected.txt: * http/tests/security/cookies/third-party-cookie-blocking-xslt-expected.txt: * http/tests/security/cross-frame-access-callback-explicit-domain-DENY-expected.txt: * http/tests/security/cross-frame-access-delete-expected.txt: * http/tests/security/cross-frame-access-frameelement-expected.txt: * http/tests/security/cross-frame-access-history-put-expected.txt: Removed. * http/tests/security/cross-frame-access-location-put-expected.txt: * http/tests/security/cross-frame-access-private-browsing-expected.txt: * http/tests/security/cross-origin-appcache-allowed-expected.txt: * http/tests/security/cross-origin-appcache-expected.txt: * http/tests/security/cross-origin-css-primitive-expected.txt: * http/tests/security/cross-origin-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-indexeddb-expected.txt: * http/tests/security/cross-origin-plugin-allowed-expected.txt: * http/tests/security/cross-origin-plugin-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed-expected.txt: * http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * http/tests/security/cross-origin-session-storage-allowed-expected.txt: * http/tests/security/cross-origin-session-storage-third-party-blocked-expected.txt: * http/tests/security/cross-origin-websql-allowed-expected.txt: * http/tests/security/cross-origin-websql-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-allowed-expected.txt: * http/tests/security/cross-origin-worker-indexeddb-expected.txt: * http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt: * http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level-expected.txt: * http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-plugin-navigation-expected.txt: * http/tests/security/frameNavigation/xss-DENIED-targeted-link-navigation-expected.txt: * http/tests/security/history-pushState-replaceState-from-sandboxed-iframe-expected.txt: * http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt: * http/tests/security/http-0.9/default-port-script-blocked-expected.txt: * http/tests/security/http-0.9/iframe-blocked-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-default-port-page-allowed-expected.txt: * http/tests/security/http-0.9/image-on-HTTP-0.9-page-blocked-expected.txt: * http/tests/security/http-0.9/sandbox-should-not-persist-on-navigation-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-to-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-from-javscript-url-expected.txt: * http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-sub-frame-2-level-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe-expected.txt: * http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/blob-url-in-iframe-expected.txt: * http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * http/tests/security/private-browsing-http-auth-expected.txt: * http/tests/security/referrer-policy-always-expected.txt: * http/tests/security/referrer-policy-default-expected.txt: * http/tests/security/referrer-policy-https-always-expected.txt: * http/tests/security/referrer-policy-https-default-expected.txt: * http/tests/security/referrer-policy-https-never-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-expected.txt: * http/tests/security/referrer-policy-https-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-https-origin-expected.txt: * http/tests/security/referrer-policy-https-unsafe-url-expected.txt: * http/tests/security/referrer-policy-invalid-expected.txt: * http/tests/security/referrer-policy-never-expected.txt: * http/tests/security/referrer-policy-no-referrer-expected.txt: * http/tests/security/referrer-policy-no-referrer-when-downgrade-expected.txt: * http/tests/security/referrer-policy-origin-expected.txt: * http/tests/security/referrer-policy-redirect-expected.txt: * http/tests/security/referrer-policy-rel-noreferrer-expected.txt: * http/tests/security/same-origin-appcache-blocked-expected.txt: * http/tests/security/same-origin-document-domain-storage-allowed-expected.txt: * http/tests/security/same-origin-storage-blocked-expected.txt: * http/tests/security/same-origin-websql-blocked-expected.txt: * http/tests/security/sandboxed-iframe-document-cookie-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-getCurrentPosition-expected.txt: * http/tests/security/sandboxed-iframe-geolocation-watchPosition-expected.txt: * http/tests/security/srcdoc-inherits-referrer-expected.txt: * http/tests/security/srcdoc-inherits-referrer-for-forms-expected.txt: * http/tests/security/storage-blocking-loosened-local-storage-expected.txt: * http/tests/security/storage-blocking-loosened-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-loosened-websql-expected.txt: * http/tests/security/storage-blocking-strengthened-local-storage-expected.txt: * http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * http/tests/security/storage-blocking-strengthened-websql-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-redirects-in-private-mode-expected.txt: * http/tests/security/strip-referrer-to-origin-for-third-party-requests-in-private-mode-expected.txt: * http/tests/security/window-properties-clear-domain-expected.txt: * http/tests/security/window-properties-clear-port-expected.txt: * http/tests/security/window-properties-pass-expected.txt: * http/tests/security/xss-DENIED-assign-location-href-javascript-expected.txt: * http/tests/security/xss-DENIED-defineProperty-expected.txt: * http/tests/security/xssAuditor/faux-script1-expected.txt: * http/tests/security/xssAuditor/faux-script2-expected.txt: * http/tests/security/xssAuditor/faux-script3-expected.txt: * http/tests/security/xssAuditor/malformed-HTML-expected.txt: * http/tests/security/xssAuditor/non-block-javascript-url-frame-expected.txt: * http/tests/security/xssAuditor/reflection-in-path-expected.txt: * http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * http/tests/security/xssAuditor/svg-animate-expected.txt: * http/tests/ssl/media-stream/get-user-media-different-host-expected.txt: * http/tests/ssl/media-stream/get-user-media-nested-expected.txt: * http/tests/ssl/media-stream/get-user-media-secure-connection-expected.txt: * http/tests/ssl/ping-with-unsafe-redirect-expected.txt: * http/tests/storageAccess/deny-storage-access-under-opener-expected.txt: * http/tests/storageAccess/grant-storage-access-under-opener-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-and-try-access-from-right-frame-expected.txt: * http/tests/storageAccess/request-and-grant-storage-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-non-recent-user-interaction-but-try-access-from-wrong-frame-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-origin-null-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt: * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt: * http/tests/xmlhttprequest/frame-load-cancelled-abort-expected.txt: * http/tests/xmlhttprequest/frame-unload-abort-crash-expected.txt: * http/tests/xmlhttprequest/origin-exact-matching-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-004-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-005-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-006-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-007-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-008-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-009-expected.txt: * http/tests/xmlhttprequest/uri-resolution-opera-open-010-expected.txt: * http/tests/xsl/xslt-transform-with-javascript-disabled-expected.txt: * imported/blink/fast/plugins/empty-url-object-expected.txt: * loader/stateobjects/pushstate-size-iframe-expected.txt: * loader/stateobjects/replacestate-size-iframe-expected.txt: * media/auto-play-in-sandbox-with-allow-scripts-expected.txt: * platform/ios-wk1/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios-wk1/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/001-expected.txt: * platform/ios/http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: * platform/ios/http/tests/quicklook/document-domain-is-empty-string-expected.txt: * platform/ios/http/tests/quicklook/external-stylesheet-blocked-expected.txt: * platform/ios/http/tests/quicklook/hide-referer-on-navigation-expected.txt: * platform/ios/http/tests/quicklook/top-navigation-blocked-expected.txt: * platform/ios/quicklook/excel-expected.txt: * platform/ios/quicklook/excel-legacy-expected.txt: * platform/ios/quicklook/excel-macro-enabled-expected.txt: * platform/ios/quicklook/powerpoint-expected.txt: * platform/ios/quicklook/powerpoint-legacy-expected.txt: * platform/ios/quicklook/word-expected.txt: * platform/ios/quicklook/word-legacy-expected.txt: * platform/ios/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-expected.txt: * platform/mac-wk2/http/tests/security/cross-origin-plugin-private-browsing-toggled-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-plugin-expected.txt: * platform/mac-wk2/http/tests/security/storage-blocking-strengthened-private-browsing-plugin-expected.txt: * platform/mac-wk2/plugins/resize-from-plugin-expected.txt: * platform/mac/fast/loader/webarchive-encoding-respected-expected.txt: * platform/mac/webarchive/adopt-attribute-styled-body-webarchive-expected.txt: * platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: * platform/mac/webarchive/test-duplicate-resources-expected.txt: * platform/win/plugins/resize-from-plugin-expected.txt: * platform/win/webarchive/loading/cache-expired-subresource-expected.txt: * platform/wk2/fast/loader/fragment-navigation-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-meta-refresh-base-blank-expected.txt: * platform/wk2/fast/loader/iframe-set-location-base-blank-expected.txt: * platform/wk2/fast/loader/refresh-iframe-base-blank-expected.txt: * platform/wk2/fast/loader/subframe-removes-itself-expected.txt: * platform/wk2/http/tests/loading/authentication-after-redirect-stores-wrong-credentials/authentication-after-redirect-stores-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-auth-resend-wrong-credentials-expected.txt: * platform/wk2/http/tests/loading/basic-credentials-sent-automatically-expected.txt: * platform/wk2/http/tests/loading/redirect-with-no-location-crash-expected.txt: * platform/wk2/http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-1/authentication-sent-to-redirect-cross-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-2/authentication-sent-to-redirect-same-origin-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt: * platform/wk2/http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-in-body-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-ignore-deny-meta-tag-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt: * platform/wk2/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-enforced-and-report-policies-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-javascript-url-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-image-in-xslt-document-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-plugin-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-script-in-iframe-with-inherited-policy-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-synchronous-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/secure-image-after-upgrade-redirect-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrade-redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/http-0.9/iframe-blocked-expected.txt: * platform/wk2/http/tests/security/mixedContent/about-blank-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/data-url-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/empty-url-plugin-in-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-css-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-form-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame-expected.txt: * platform/wk2/http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe-expected.txt: * platform/wk2/http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: * platform/wk2/webarchive/loading/javascript-url-iframe-crash-expected.txt: * platform/wk2/webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * platform/wk2/webarchive/loading/missing-data-expected.txt: * platform/wk2/webarchive/loading/object-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-expected.txt: * platform/wk2/webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * platform/wk2/webarchive/loading/video-in-webarchive-expected.txt: * plugins/resize-from-plugin-expected.txt: * quicklook/excel-expected.txt: * quicklook/excel-legacy-expected.txt: * quicklook/excel-macro-enabled-expected.txt: * quicklook/keynote-09-expected.txt: * quicklook/multi-sheet-numbers-09-expected.txt: * quicklook/numbers-09-expected.txt: * quicklook/pages-09-expected.txt: * quicklook/powerpoint-expected.txt: * quicklook/powerpoint-legacy-expected.txt: * quicklook/word-expected.txt: * quicklook/word-legacy-expected.txt: * userscripts/user-script-all-frames-expected.txt: * userscripts/user-script-top-frame-only-expected.txt: * userscripts/user-style-all-frames-expected.txt: * userscripts/user-style-top-frame-only-expected.txt: * webarchive/loading/javascript-url-iframe-crash-expected.txt: * webarchive/loading/mainresource-null-mimetype-crash-expected.txt: * webarchive/loading/missing-data-expected.txt: * webarchive/loading/object-expected.txt: * webarchive/loading/test-loading-archive-expected.txt: * webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt: * webarchive/loading/video-in-webarchive-expected.txt: Canonical link: https://commits.webkit.org/200851@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-07 18:55:15 +00:00
(file test):contentfiltering/resources/pass.html (in frame "<!--frame1-->")
[Content Filtering] Load blocked pages more like other error pages are loaded https://bugs.webkit.org/show_bug.cgi?id=159485 <rdar://problem/26014076> Reviewed by Brady Eidson. Source/WebCore: Content filter blocked pages were being loaded by cancelling the provisional load of the page that was blocked and then scheduling a navigation to the content filter error page. Some clients would not expect a new, Web process-initiated provisional navigation to start after a cancellation, though, and this would put them in a bad state. This patch changes blocked page loading to behave more like loading other error pages. Specifically: 1. didFailProvisionalLoad is dispatched with a new, non-cancellation error code. 2. The blocked page is loaded immediately after dispatching didFailProvisionalLoad, which prevents FrameLoader from creating a new back-forward list item for the substitute data load. 3. A substitute data load initiated by the client for the blocked URL is ignored if ContentFilter will display its own error page. 4. A file: URL is used instead of a custom scheme for the base URL of the blocked page, since some clients expect this. Updated existing tests to capture frame load delegate callbacks and the back forward list. Added new API tests: ContentFiltering.LoadAlternate*. * English.lproj/Localizable.strings: Added a WebKitErrorFrameLoadBlockedByContentFilter description. * Resources/ContentFilterBlockedPage.html: Added. * WebCore.xcodeproj/project.pbxproj: Added ContentFilterBlockedPage.html as a frameowrk resource. * loader/ContentFilter.cpp: (WebCore::ContentFilter::continueAfterWillSendRequest): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::stopFilteringMainResource): Only set m_state to Stopped if not already Blocked, so that we don't forget this ContentFilter was blocked when calling cancelMailResourceLoad() in didDecide(). (WebCore::ContentFilter::continueAfterResponseReceived): Protected m_documentLoader, since it might otherwise be deallocated inside ContentFilter::didDecide() if the load is blocked. (WebCore::ContentFilter::continueAfterDataReceived): Ditto. (WebCore::ContentFilter::continueAfterNotifyFinished): Ditto. (WebCore::ContentFilter::didDecide): Moved code from DocumentLoader::contentFilterDidBlock() to here. Created a blockedByContentFilterError() and called cancelMainResourceLoad(). (WebCore::blockedPageURL): Returned a file: URL to ContentFilterBlockedPage.html in WebCore.framework. (WebCore::ContentFilter::continueAfterSubstituteDataRequest): If the substitute data load is for the same failingURL as the currently-displayed blocked page, ignore it. (WebCore::ContentFilter::handleProvisionalLoadFailure): Load the blocked page if m_state is Blocked and the ResourceError matches the error we used when previously calling cancelMainResourceLoad(). (WebCore::ContentFilter::unblockHandler): Deleted. (WebCore::ContentFilter::replacementData): Deleted. (WebCore::ContentFilter::unblockRequestDeniedScript): Deleted. * loader/ContentFilter.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::contentFilter): Returned m_contentFilter. (WebCore::DocumentLoader::installContentFilterUnblockHandler): Deleted. (WebCore::DocumentLoader::contentFilterDidBlock): Deleted. * loader/DocumentLoader.h: * loader/EmptyClients.h: Added a default implementation of blockedByContentFilterError(). * loader/FrameLoader.cpp: (WebCore::FrameLoader::load): If m_loadType was already RedirectWithLockedBackForwardList and we are loading subsitute data for a failing URL, continue to use RedirectWithLockedBackForwardList. This prevents a new back-forward list item from being created when loading a blocked page in a subframe. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Called ContentFilter::handleProvisionalLoadFailure() after dispatchDidFailProvisionalLoad(). (WebCore::FrameLoader::blockedByContentFilterError): Called FrameLoaderClient::blockedByContentFilterError(). * loader/FrameLoader.h: * loader/FrameLoaderClient.h: * loader/NavigationScheduler.cpp: (WebCore::ScheduledSubstituteDataLoad::ScheduledSubstituteDataLoad): Deleted. (WebCore::NavigationScheduler::scheduleSubstituteDataLoad): Deleted. * loader/NavigationScheduler.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): Ignored a substitute data load for a failing URL if ContentFilter::continueAfterSubstituteDataRequest() returns false. Source/WebKit/mac: * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter. * Misc/WebKitErrors.m: (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter. Source/WebKit2: * Shared/API/c/WKErrorRef.h: Defined kWKErrorCodeFrameLoadBlockedByContentFilter. * UIProcess/Cocoa/WebProcessProxyCocoa.mm: (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added the resource directories of WebCore.framework and WebKit.framework as paths with assumed read access. * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::hasAssumedReadAccessToURL): Checked platformPathsWithAssumedReadAccess() as well as m_localPathsWithAssumedReadAccess. (WebKit::WebProcessProxy::platformPathsWithAssumedReadAccess): Added a non-Cocoa implementation. * UIProcess/WebProcessProxy.h: * WebProcess/WebCoreSupport/WebErrors.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::blockedByContentFilterError): Called WebKit::blockedByContentFilterError(). * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: (WebKit::blockedByContentFilterError): Returned a ResourceError for kWKErrorCodeFrameLoadBlockedByContentFilter. Tools: Added API tests for WebView and WKWebView to verify that alternate HTML loaded in response to a content filtering provisional navigation failure is ignored in preference of ContentFilter's own error page. * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: (-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]): (-[LoadAlternateNavigationDelegate webView:didFinishNavigation:]): (loadAlternateTest): (TEST): * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: (-[MockContentFilterEnabler initWithCoder:]): * TestWebKitAPI/Tests/mac/ContentFiltering.mm: Added. (-[LoadAlternateFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): (-[LoadAlternateFrameLoadDelegate webView:didFinishLoadForFrame:]): (TestWebKitAPI::loadAlternateTest): (TestWebKitAPI::TEST): LayoutTests: Changed allow-* and block-* tests from ref tests to text tests so that they can capture frame load delegate callbacks and the back forward list. * contentfiltering/allow-after-add-data-expected.html: Removed. * contentfiltering/allow-after-add-data-expected.txt: Added. * contentfiltering/allow-after-finished-adding-data-expected.html: Removed. * contentfiltering/allow-after-finished-adding-data-expected.txt: Added. * contentfiltering/allow-after-response-expected.html: Removed. * contentfiltering/allow-after-response-expected.txt: Added. * contentfiltering/allow-after-will-send-request-expected.html: Removed. * contentfiltering/allow-after-will-send-request-expected.txt: Added. * contentfiltering/allow-never-expected.html: Removed. * contentfiltering/allow-never-expected.txt: Added. * contentfiltering/block-after-add-data-expected.html: Removed. * contentfiltering/block-after-add-data-expected.txt: Added. * contentfiltering/block-after-add-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-add-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-add-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-response-expected.html: Removed. * contentfiltering/block-after-response-expected.txt: Added. * contentfiltering/block-after-response-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-response-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-response-then-deny-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-expected.html: Removed. * contentfiltering/block-after-will-send-request-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt: Added. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.html: Removed. * contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt: Added. * contentfiltering/block-never-expected.html: Removed. * contentfiltering/block-never-expected.txt: Added. * contentfiltering/resources/contentfiltering.js: Added testRunner calls to dump as text, dump frame load callbacks, and dump the back forward list. Changed from loading data: URLs to file: URLs in the test iframe. Canonical link: https://commits.webkit.org/177722@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-07-08 20:14:34 +00:00
===============================================