Changeset 212587 in webkit
- Timestamp:
- Feb 17, 2017 3:39:30 PM (7 years ago)
- Location:
- branches/safari-603-branch
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-603-branch/LayoutTests/editing/mac/input/unconfirmed-text-navigation-with-page-cache.html
r212500 r212587 11 11 testRunner.setCanOpenWindows(); 12 12 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); 13 testRunner.overridePreference("WebKitAllowsPageCacheWithWindowOpenerKey", 1); 13 14 } 14 15 -
branches/safari-603-branch/LayoutTests/fast/harness/page-cache-crash-on-data-urls.html
r212500 r212587 23 23 testRunner.setCanOpenWindows(); 24 24 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); 25 testRunner.overridePreference("WebKitAllowsPageCacheWithWindowOpenerKey", 1); 25 26 } 26 27 log("open page with data urls"); -
branches/safari-603-branch/LayoutTests/fast/harness/use-page-cache.html
r212500 r212587 29 29 testRunner.setCanOpenWindows(); 30 30 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); 31 testRunner.overridePreference("WebKitAllowsPageCacheWithWindowOpenerKey", 1); 31 32 } 32 33 log("open page-1"); -
branches/safari-603-branch/LayoutTests/fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html
r212500 r212587 15 15 testRunner.setCanOpenWindows(); 16 16 testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1); 17 testRunner.overridePreference("WebKitAllowsPageCacheWithWindowOpenerKey", 1); 17 18 } 18 19 testWindow = window.open('resources/no-popstate-when-back-to-stateless-entry-1.html'); -
branches/safari-603-branch/LayoutTests/fast/loader/stateobjects/popstate-fires-with-page-cache.html
r212500 r212587 15 15 testRunner.setCanOpenWindows(); 16 16 testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1); 17 testRunner.overridePreference("WebKitAllowsPageCacheWithWindowOpenerKey", 1); 17 18 } 18 19 testWindow = window.open('resources/popstate-fires-with-page-cache-1.html'); -
branches/safari-603-branch/LayoutTests/tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration.html
r212500 r212587 8 8 testRunner.setCanOpenWindows(); 9 9 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); 10 testRunner.overridePreference("WebKitAllowsPageCacheWithWindowOpenerKey", 1); 10 11 } 11 12 -
branches/safari-603-branch/Source/WebCore/ChangeLog
r212586 r212587 1 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r212500. rdar://problem/29904368 4 1 5 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-603-branch/Source/WebCore/dom/Document.cpp
r212586 r212587 37 37 #include "CSSStyleSheet.h" 38 38 #include "CachedCSSStyleSheet.h" 39 #include "CachedFrame.h"40 39 #include "CachedResourceLoader.h" 41 40 #include "Chrome.h" … … 837 836 } 838 837 838 bool Document::hasEverCalledWindowOpen() const 839 { 840 auto& topDocument = this->topDocument(); 841 if (&topDocument == this) 842 return m_hasEverCalledWindowOpen; 843 return topDocument.hasEverCalledWindowOpen(); 844 } 845 846 void Document::markHasCalledWindowOpen() 847 { 848 auto& topDocument = this->topDocument(); 849 if (&topDocument == this) 850 m_hasEverCalledWindowOpen = true; 851 else 852 topDocument.markHasCalledWindowOpen(); 853 } 854 839 855 DocumentType* Document::doctype() const 840 856 { … … 2207 2223 } 2208 2224 2225 void Document::disconnectFromFrame() 2226 { 2227 observeFrame(nullptr); 2228 } 2229 2209 2230 void Document::frameDestroyed() 2210 2231 { 2211 // d etachFromFrame() must be called before destroying the Frame.2232 // disconnectFromFrame() must be called before destroying the Frame. 2212 2233 ASSERT_WITH_SECURITY_IMPLICATION(!m_frame); 2213 2234 FrameDestructionObserver::frameDestroyed(); 2214 }2215 2216 void Document::attachToCachedFrame(CachedFrameBase& cachedFrame)2217 {2218 ASSERT_WITH_SECURITY_IMPLICATION(cachedFrame.document() == this);2219 ASSERT(cachedFrame.view());2220 ASSERT(m_pageCacheState == Document::InPageCache);2221 observeFrame(&cachedFrame.view()->frame());2222 }2223 2224 void Document::detachFromCachedFrame(CachedFrameBase& cachedFrame)2225 {2226 ASSERT_WITH_SECURITY_IMPLICATION(cachedFrame.document() == this);2227 ASSERT(cachedFrame.view());2228 ASSERT(m_frame == &cachedFrame.view()->frame());2229 ASSERT(m_pageCacheState == Document::InPageCache);2230 detachFromFrame();2231 2235 } 2232 2236 … … 2347 2351 #endif 2348 2352 2349 d etachFromFrame();2353 disconnectFromFrame(); 2350 2354 2351 2355 m_hasPreparedForDestruction = true; -
branches/safari-603-branch/Source/WebCore/dom/Document.h
r212500 r212587 82 82 class CSSStyleSheet; 83 83 class CachedCSSStyleSheet; 84 class CachedFrameBase;85 84 class CachedResourceLoader; 86 85 class CachedScript; … … 377 376 378 377 bool hasManifest() const; 378 379 bool hasEverCalledWindowOpen() const; 380 void markHasCalledWindowOpen(); 379 381 380 382 WEBCORE_EXPORT ExceptionOr<Ref<Element>> createElementForBindings(const AtomicString& tagName); … … 563 565 void didBecomeCurrentDocumentInFrame(); 564 566 void destroyRenderTree(); 567 void disconnectFromFrame(); 565 568 void prepareForDestruction(); 566 569 … … 1300 1303 const HashSet<ShadowRoot*>& inDocumentShadowRoots() const { return m_inDocumentShadowRoots; } 1301 1304 1302 void attachToCachedFrame(CachedFrameBase&);1303 void detachFromCachedFrame(CachedFrameBase&);1304 1305 1305 protected: 1306 1306 enum ConstructionFlags { Synthesized = 1, NonRenderedPlaceholder = 1 << 1 }; … … 1315 1315 friend class IgnoreDestructiveWriteCountIncrementer; 1316 1316 friend class IgnoreOpensDuringUnloadCountIncrementer; 1317 1318 void detachFromFrame() { observeFrame(nullptr); }1319 1317 1320 1318 void updateTitleElement(Element* newTitleElement); … … 1496 1494 1497 1495 Timer m_styleRecalcTimer; 1496 bool m_hasEverCalledWindowOpen { false }; 1498 1497 bool m_pendingStyleRecalcShouldForce; 1499 1498 bool m_inStyleRecalc; -
branches/safari-603-branch/Source/WebCore/history/CachedFrame.cpp
r212500 r212587 76 76 } 77 77 78 void CachedFrameBase::pruneDetachedChildFrames()79 {80 for (size_t i = m_childFrames.size(); i;) {81 --i;82 if (m_childFrames[i]->view()->frame().page())83 continue;84 m_childFrames[i]->destroy();85 m_childFrames.remove(i);86 }87 }88 89 78 void CachedFrameBase::restore() 90 79 { … … 110 99 frame.loader().client().didRestoreFromPageCache(); 111 100 112 pruneDetachedChildFrames();113 114 101 // Reconstruct the FrameTree. And open the child CachedFrames in their respective FrameLoaders. 115 102 for (unsigned i = 0; i < m_childFrames.size(); ++i) { 116 ASSERT(m_childFrames[i]->view()->frame().page());117 103 frame.tree().appendChild(&m_childFrames[i]->view()->frame()); 118 104 m_childFrames[i]->open(); … … 206 192 #endif 207 193 208 m_document->detachFromCachedFrame(*this);209 210 194 ASSERT_WITH_SECURITY_IMPLICATION(!m_documentLoader->isLoading()); 211 195 } … … 214 198 { 215 199 ASSERT(m_view); 216 ASSERT(m_document);217 200 if (!m_isMainFrame) 218 201 m_view->frame().page()->incrementSubframeCount(); 219 220 m_document->attachToCachedFrame(*this);221 202 222 203 m_view->frame().loader().open(*this); … … 255 236 ASSERT(m_document->pageCacheState() == Document::InPageCache); 256 237 ASSERT(m_view); 257 ASSERT( !m_document->frame());238 ASSERT(m_document->frame() == &m_view->frame()); 258 239 259 240 m_document->domWindow()->willDestroyCachedFrame(); 260 241 261 if (!m_isMainFrame && m_view->frame().page()) {242 if (!m_isMainFrame) { 262 243 m_view->frame().loader().detachViewsAndDocumentLoader(); 263 244 m_view->frame().detachFromPage(); … … 271 252 272 253 Frame::clearTimers(m_view.get(), m_document.get()); 273 274 m_view->frame().animation().detachFromDocument(m_document.get());275 254 276 255 // FIXME: Why do we need to call removeAllEventListeners here? When the document is in page cache, this method won't work -
branches/safari-603-branch/Source/WebCore/history/CachedFrame.h
r212500 r212587 53 53 CachedFrameBase(Frame&); 54 54 ~CachedFrameBase(); 55 56 void pruneDetachedChildFrames(); 57 55 58 56 RefPtr<Document> m_document; 59 57 RefPtr<DocumentLoader> m_documentLoader; -
branches/safari-603-branch/Source/WebCore/history/PageCache.cpp
r212500 r212587 194 194 DiagnosticLoggingClient& diagnosticLoggingClient = page.diagnosticLoggingClient(); 195 195 bool isCacheable = canCacheFrame(page.mainFrame(), diagnosticLoggingClient, indentLevel + 1); 196 197 if (page.openedByWindowOpen() && !page.settings().allowsPageCacheWithWindowOpener()) { 198 PCLOG(" -Page has been opened via window.open()"); 199 logPageCacheFailureDiagnosticMessage(diagnosticLoggingClient, DiagnosticLoggingKeys::hasOpenerKey()); 200 isCacheable = false; 201 } 202 203 auto* topDocument = page.mainFrame().document(); 204 if (topDocument && topDocument->hasEverCalledWindowOpen()) { 205 PCLOG(" -Page has called window.open()"); 206 logPageCacheFailureDiagnosticMessage(diagnosticLoggingClient, DiagnosticLoggingKeys::hasCalledWindowOpenKey()); 207 isCacheable = false; 208 } 196 209 197 210 if (!page.settings().usesPageCache() || page.isResourceCachingDisabled()) { -
branches/safari-603-branch/Source/WebCore/html/HTMLFrameElementBase.cpp
r212532 r212587 152 152 return; 153 153 154 // DocumentFragments don't kick of fany loads.154 // DocumentFragments don't kick of any loads. 155 155 if (!document().frame()) 156 156 return; -
branches/safari-603-branch/Source/WebCore/loader/FrameLoader.cpp
r212500 r212587 2512 2512 void FrameLoader::frameDetached() 2513 2513 { 2514 // Calling stopAllLoaders ()can cause the frame to be deallocated, including the frame loader.2514 // Calling stopAllLoaders can cause the frame to be deallocated, including the frame loader. 2515 2515 Ref<Frame> protectedFrame(m_frame); 2516 2516 2517 if (m_frame.document()->pageCacheState() != Document::InPageCache) { 2518 stopAllLoaders(); 2519 m_frame.document()->stopActiveDOMObjects(); 2520 } 2521 2517 stopAllLoaders(); 2518 m_frame.document()->stopActiveDOMObjects(); 2522 2519 detachFromParent(); 2523 2520 } … … 2525 2522 void FrameLoader::detachFromParent() 2526 2523 { 2527 // Calling stopAllLoaders() can cause the frame to be deallocated, including the frame loader.2528 2524 Ref<Frame> protect(m_frame); 2529 2525 … … 2531 2527 history().saveScrollPositionAndViewStateToItem(history().currentItem()); 2532 2528 detachChildren(); 2533 if (m_frame.document()->pageCacheState() != Document::InPageCache) { 2534 // stopAllLoaders() needs to be called after detachChildren() if the document is not in the page cache, 2535 // because detachedChildren() will trigger the unload event handlers of any child frames, and those event 2536 // handlers might start a new subresource load in this frame. 2537 stopAllLoaders(); 2538 } 2529 // stopAllLoaders() needs to be called after detachChildren(), because detachedChildren() 2530 // will trigger the unload event handlers of any child frames, and those event 2531 // handlers might start a new subresource load in this frame. 2532 stopAllLoaders(); 2539 2533 2540 2534 InspectorInstrumentation::frameDetachedFromParent(m_frame); -
branches/safari-603-branch/Source/WebCore/page/DOMWindow.cpp
r212500 r212587 2197 2197 newFrame->loader().setOpener(&openerFrame); 2198 2198 newFrame->page()->setOpenedByDOM(); 2199 if (auto* openerDocument = openerFrame.document()) 2200 openerDocument->markHasCalledWindowOpen(); 2199 2201 2200 2202 if (newFrame->document()->domWindow()->isInsecureScriptAccess(activeWindow, completedURL)) -
branches/safari-603-branch/Source/WebCore/page/DiagnosticLoggingKeys.cpp
r212500 r212587 664 664 } 665 665 666 String DiagnosticLoggingKeys::hasCalledWindowOpenKey() 667 { 668 return ASCIILiteral("hasCalledWindowOpen"); 669 } 670 671 String DiagnosticLoggingKeys::hasOpenerKey() 672 { 673 return ASCIILiteral("hasOpener"); 674 } 675 666 676 String DiagnosticLoggingKeys::prunedDueToMemoryPressureKey() 667 677 { -
branches/safari-603-branch/Source/WebCore/page/DiagnosticLoggingKeys.h
r212500 r212587 56 56 static String expiredKey(); 57 57 static String fontKey(); 58 static String hasCalledWindowOpenKey(); 59 static String hasOpenerKey(); 58 60 static String hasPluginsKey(); 59 61 static String httpsNoStoreKey(); -
branches/safari-603-branch/Source/WebCore/page/Page.cpp
r212500 r212587 462 462 } 463 463 464 bool Page::openedByWindowOpen() const 465 { 466 auto* document = m_mainFrame->document(); 467 if (!document) 468 return false; 469 auto* window = document->domWindow(); 470 if (!window) 471 return false; 472 return window->opener(); 473 } 474 464 475 void Page::goToItem(HistoryItem& item, FrameLoadType type) 465 476 { -
branches/safari-603-branch/Source/WebCore/page/Page.h
r212500 r212587 181 181 void setOpenedByDOM(); 182 182 183 bool openedByWindowOpen() const; 184 183 185 WEBCORE_EXPORT void goToItem(HistoryItem&, FrameLoadType); 184 186 -
branches/safari-603-branch/Source/WebCore/page/Settings.in
r212500 r212587 298 298 299 299 shouldSuppressKeyboardInputDuringProvisionalNavigation initial=false 300 301 allowsPageCacheWithWindowOpener initial=false -
branches/safari-603-branch/Source/WebKit/mac/ChangeLog
r212538 r212587 1 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r212500. rdar://problem/29904368 4 1 5 2017-02-16 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-603-branch/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r212500 r212587 84 84 #define WebKitDOMPasteAllowedPreferenceKey @"WebKitDOMPasteAllowedPreferenceKey" 85 85 #define WebKitUsesPageCachePreferenceKey @"WebKitUsesPageCachePreferenceKey" 86 #define WebKitAllowsPageCacheWithWindowOpenerKey @"WebKitAllowsPageCacheWithWindowOpenerKey" 86 87 #define WebKitPageCacheSupportsPluginsPreferenceKey @"WebKitPageCacheSupportsPluginsPreferenceKey" 87 88 #define WebKitFTPDirectoryTemplatePath @"WebKitFTPDirectoryTemplatePath" -
branches/safari-603-branch/Source/WebKit/mac/WebView/WebPreferences.mm
r212500 r212587 479 479 #endif 480 480 [NSNumber numberWithBool:YES], WebKitUsesPageCachePreferenceKey, 481 [NSNumber numberWithBool:NO], WebKitAllowsPageCacheWithWindowOpenerKey, 481 482 [NSNumber numberWithInt:cacheModelForMainBundle()], WebKitCacheModelPreferenceKey, 482 483 [NSNumber numberWithBool:YES], WebKitPageCacheSupportsPluginsPreferenceKey, … … 2432 2433 } 2433 2434 2435 - (BOOL)allowsPageCacheWithWindowOpener 2436 { 2437 return [self _boolValueForKey:WebKitAllowsPageCacheWithWindowOpenerKey]; 2438 } 2439 2440 - (void)setAllowsPageCacheWithWindowOpener:(BOOL)flag 2441 { 2442 [self _setBoolValue:flag forKey:WebKitAllowsPageCacheWithWindowOpenerKey]; 2443 } 2444 2434 2445 #if PLATFORM(IOS) 2435 2446 - (void)_invalidateCachedPreferences -
branches/safari-603-branch/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r212500 r212587 296 296 - (void)setPictographFontFamily:(NSString *)family; 297 297 298 - (BOOL)allowsPageCacheWithWindowOpener; 299 - (void)setAllowsPageCacheWithWindowOpener:(BOOL)flag; 300 298 301 - (BOOL)pageCacheSupportsPlugins; 299 302 - (void)setPageCacheSupportsPlugins:(BOOL)flag; -
branches/safari-603-branch/Source/WebKit/mac/WebView/WebView.mm
r212500 r212587 2668 2668 settings.setDOMPasteAllowed([preferences isDOMPasteAllowed]); 2669 2669 settings.setUsesPageCache([self usesPageCache]); 2670 settings.setAllowsPageCacheWithWindowOpener([preferences allowsPageCacheWithWindowOpener]); 2670 2671 settings.setPageCacheSupportsPlugins([preferences pageCacheSupportsPlugins]); 2671 2672 settings.setBackForwardCacheExpirationInterval([preferences _backForwardCacheExpirationInterval]); -
branches/safari-603-branch/Source/WebKit/win/ChangeLog
r212585 r212587 1 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r212500. rdar://problem/29904368 4 1 5 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-603-branch/Source/WebKit/win/Interfaces/IWebPreferencesPrivate.idl
r212500 r212587 91 91 HRESULT experimentalNotificationsEnabled([out, retval] BOOL *enabled); 92 92 HRESULT setExperimentalNotificationsEnabled([in] BOOL enabled); 93 94 HRESULT allowsPageCacheWithWindowOpener([out, retval] BOOL* usesPageCache); 95 HRESULT setAllowsPageCacheWithWindowOpener([in] BOOL usesPageCache); 93 96 94 97 HRESULT setShouldUseHighResolutionTimers([in] BOOL useHighResolutionTimers); -
branches/safari-603-branch/Source/WebKit/win/WebPreferenceKeysPrivate.h
r212500 r212587 69 69 #define WebKitIconDatabaseEnabledPreferenceKey "WebKitIconDatabaseEnabled" 70 70 #define WebKitUsesPageCachePreferenceKey "WebKitUsesPageCachePreferenceKey" 71 #define WebKitAllowsPageCacheWithWindowOpenerKey "WebKitAllowsPageCacheWithWindowOpenerKey" 71 72 #define WebKitCacheModelPreferenceKey "WebKitCacheModelPreferenceKey" 72 73 #define WebKitLocalStorageDatabasePathPreferenceKey "WebKitLocalStorageDatabasePath" -
branches/safari-603-branch/Source/WebKit/win/WebPreferences.cpp
r212500 r212587 263 263 CFDictionaryAddValue(defaults, CFSTR(AllowContinuousSpellCheckingPreferenceKey), kCFBooleanTrue); 264 264 CFDictionaryAddValue(defaults, CFSTR(WebKitUsesPageCachePreferenceKey), kCFBooleanTrue); 265 CFDictionaryAddValue(defaults, CFSTR(WebKitAllowsPageCacheWithWindowOpenerKey), kCFBooleanFalse); 265 266 CFDictionaryAddValue(defaults, CFSTR(WebKitLocalStorageDatabasePathPreferenceKey), CFSTR("")); 266 267 … … 1605 1606 } 1606 1607 1608 HRESULT WebPreferences::setAllowsPageCacheWithWindowOpener(BOOL value) 1609 { 1610 setBoolValue(WebKitAllowsPageCacheWithWindowOpenerKey, value); 1611 return S_OK; 1612 } 1613 1614 HRESULT WebPreferences::allowsPageCacheWithWindowOpener(_Out_ BOOL* enabled) 1615 { 1616 if (!enabled) 1617 return E_POINTER; 1618 *enabled = boolValueForKey(WebKitAllowsPageCacheWithWindowOpenerKey); 1619 return S_OK; 1620 } 1621 1607 1622 HRESULT WebPreferences::setZoomsTextOnly(BOOL zoomsTextOnly) 1608 1623 { -
branches/safari-603-branch/Source/WebKit/win/WebPreferences.h
r212500 r212587 160 160 virtual HRESULT STDMETHODCALLTYPE experimentalNotificationsEnabled(_Out_ BOOL*); 161 161 virtual HRESULT STDMETHODCALLTYPE setExperimentalNotificationsEnabled(BOOL); 162 virtual HRESULT STDMETHODCALLTYPE allowsPageCacheWithWindowOpener(_Out_ BOOL*); 163 virtual HRESULT STDMETHODCALLTYPE setAllowsPageCacheWithWindowOpener(BOOL); 162 164 163 165 // These two methods are no-ops, and only retained to keep -
branches/safari-603-branch/Source/WebKit/win/WebView.cpp
r212500 r212587 5402 5402 settings.setExperimentalNotificationsEnabled(enabled); 5403 5403 5404 hr = prefsPrivate->allowsPageCacheWithWindowOpener(&enabled); 5405 if (FAILED(hr)) 5406 return hr; 5407 settings.setAllowsPageCacheWithWindowOpener(enabled); 5408 5404 5409 hr = prefsPrivate->isWebSecurityEnabled(&enabled); 5405 5410 if (FAILED(hr)) -
branches/safari-603-branch/Source/WebKit2/ChangeLog
r212538 r212587 1 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r212500. rdar://problem/29904368 4 1 5 2017-02-16 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-603-branch/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r212500 r212587 139 139 macro(LocalFileContentSniffingEnabled, localFileContentSniffingEnabled, Bool, bool, false, "", "") \ 140 140 macro(UsesPageCache, usesPageCache, Bool, bool, true, "", "") \ 141 macro(AllowsPageCacheWithWindowOpener, allowsPageCacheWithWindowOpener, Bool, bool, false, "", "") \ 141 142 macro(PageCacheSupportsPlugins, pageCacheSupportsPlugins, Bool, bool, true, "", "") \ 142 143 macro(AuthorAndUserStylesEnabled, authorAndUserStylesEnabled, Bool, bool, true, "", "") \ -
branches/safari-603-branch/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
r212500 r212587 624 624 } 625 625 626 void WKPreferencesSetAllowsPageCacheWithWindowOpener(WKPreferencesRef preferencesRef, bool enabled) 627 { 628 toImpl(preferencesRef)->setAllowsPageCacheWithWindowOpener(enabled); 629 } 630 631 bool WKPreferencesGetAllowsPageCacheWithWindowOpener(WKPreferencesRef preferencesRef) 632 { 633 return toImpl(preferencesRef)->allowsPageCacheWithWindowOpener(); 634 } 635 626 636 void WKPreferencesSetPageCacheSupportsPlugins(WKPreferencesRef preferencesRef, bool pageCacheSupportsPlugins) 627 637 { -
branches/safari-603-branch/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h
r212500 r212587 144 144 WK_EXPORT bool WKPreferencesGetPageCacheEnabled(WKPreferencesRef preferences); 145 145 146 // Defaults to false. 147 WK_EXPORT void WKPreferencesSetAllowsPageCacheWithWindowOpener(WKPreferencesRef preferences, bool enabled); 148 WK_EXPORT bool WKPreferencesGetAllowsPageCacheWithWindowOpener(WKPreferencesRef preferences); 149 146 150 // Defaults to true. 147 151 WK_EXPORT void WKPreferencesSetPageCacheSupportsPlugins(WKPreferencesRef preferences, bool pageCacheSupportsPlugins); -
branches/safari-603-branch/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r212500 r212587 247 247 macro(WebKitPluginsEnabled, PluginsEnabled, pluginsEnabled) \ 248 248 macro(WebKitUsesPageCachePreferenceKey, UsesPageCache, usesPageCache) \ 249 macro(WebKitAllowsPageCacheWithWindowOpenerKey, AllowsPageCacheWithWindowOpener, allowsPageCacheWithWindowOpener) \ 249 250 macro(WebKitWebAudioEnabled, WebAudioEnabled, webAudioEnabled) \ 250 251 macro(WebKitWebGLEnabled, WebGLEnabled, webGLEnabled) \ -
branches/safari-603-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r212500 r212587 2993 2993 settings.setLocalFileContentSniffingEnabled(store.getBoolValueForKey(WebPreferencesKey::localFileContentSniffingEnabledKey())); 2994 2994 settings.setUsesPageCache(store.getBoolValueForKey(WebPreferencesKey::usesPageCacheKey())); 2995 settings.setAllowsPageCacheWithWindowOpener(store.getBoolValueForKey(WebPreferencesKey::allowsPageCacheWithWindowOpenerKey())); 2995 2996 settings.setPageCacheSupportsPlugins(store.getBoolValueForKey(WebPreferencesKey::pageCacheSupportsPluginsKey())); 2996 2997 settings.setAuthorAndUserStylesEnabled(store.getBoolValueForKey(WebPreferencesKey::authorAndUserStylesEnabledKey())); -
branches/safari-603-branch/Tools/ChangeLog
r212540 r212587 1 2017-02-17 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r212500. rdar://problem/29904368 4 1 5 2017-02-16 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-603-branch/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r212540 r212587 974 974 // So, turn it off for now, but we might want to turn it back on some day. 975 975 [preferences setUsesPageCache:NO]; 976 [preferences setAllowsPageCacheWithWindowOpener:NO]; 976 977 [preferences setAcceleratedCompositingEnabled:YES]; 977 978 #if USE(CA) -
branches/safari-603-branch/Tools/DumpRenderTree/win/DumpRenderTree.cpp
r212500 r212587 812 812 preferences->setTextAreasAreResizable(TRUE); 813 813 preferences->setUsesPageCache(FALSE); 814 prefsPrivate->setAllowsPageCacheWithWindowOpener(FALSE); 814 815 815 816 preferences->setPrivateBrowsingEnabled(FALSE); -
branches/safari-603-branch/Tools/WebKitTestRunner/TestController.cpp
r212500 r212587 656 656 #endif 657 657 WKPreferencesSetPageCacheEnabled(preferences, false); 658 WKPreferencesSetAllowsPageCacheWithWindowOpener(preferences, false); 658 659 WKPreferencesSetAsynchronousPluginInitializationEnabled(preferences, false); 659 660 WKPreferencesSetAsynchronousPluginInitializationEnabledForAllPlugins(preferences, false);
Note: See TracChangeset
for help on using the changeset viewer.