Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: Source/WebCore/dom/Document.cpp

Issue 14089003: Remove storageBlockingPolicy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/dom/Document.h ('k') | Source/WebCore/page/Page.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 4030 matching lines...) Expand 10 before | Expand all | Expand 10 after
4041 void Document::registerForMediaVolumeCallbacks(Element* e) 4041 void Document::registerForMediaVolumeCallbacks(Element* e)
4042 { 4042 {
4043 m_mediaVolumeCallbackElements.add(e); 4043 m_mediaVolumeCallbackElements.add(e);
4044 } 4044 }
4045 4045
4046 void Document::unregisterForMediaVolumeCallbacks(Element* e) 4046 void Document::unregisterForMediaVolumeCallbacks(Element* e)
4047 { 4047 {
4048 m_mediaVolumeCallbackElements.remove(e); 4048 m_mediaVolumeCallbackElements.remove(e);
4049 } 4049 }
4050 4050
4051 void Document::storageBlockingStateDidChange()
4052 {
4053 if (Settings* settings = this->settings())
4054 securityOrigin()->setStorageBlockingPolicy(settings->storageBlockingPoli cy());
4055 }
4056
4057 #if ENABLE(VIDEO_TRACK) 4051 #if ENABLE(VIDEO_TRACK)
4058 void Document::registerForCaptionPreferencesChangedCallbacks(Element* e) 4052 void Document::registerForCaptionPreferencesChangedCallbacks(Element* e)
4059 { 4053 {
4060 if (page()) 4054 if (page())
4061 page()->group().captionPreferences()->setInterestedInCaptionPreferenceCh anges(); 4055 page()->group().captionPreferences()->setInterestedInCaptionPreferenceCh anges();
4062 4056
4063 m_captionPreferencesChangedElements.add(e); 4057 m_captionPreferencesChangedElements.add(e);
4064 } 4058 }
4065 4059
4066 void Document::unregisterForCaptionPreferencesChangedCallbacks(Element* e) 4060 void Document::unregisterForCaptionPreferencesChangedCallbacks(Element* e)
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
4521 if (settings->allowUniversalAccessFromFileURLs()) { 4515 if (settings->allowUniversalAccessFromFileURLs()) {
4522 // Some clients want local URLs to have universal access, but th at setting is dangerous for other clients. 4516 // Some clients want local URLs to have universal access, but th at setting is dangerous for other clients.
4523 securityOrigin()->grantUniversalAccess(); 4517 securityOrigin()->grantUniversalAccess();
4524 } else if (!settings->allowFileAccessFromFileURLs()) { 4518 } else if (!settings->allowFileAccessFromFileURLs()) {
4525 // Some clients want local URLs to have even tighter restriction s by default, and not be able to access other local files. 4519 // Some clients want local URLs to have even tighter restriction s by default, and not be able to access other local files.
4526 // FIXME 81578: The naming of this is confusing. Files with rest ricted access to other local files 4520 // FIXME 81578: The naming of this is confusing. Files with rest ricted access to other local files
4527 // still can have other privileges that can be remembered, there by not making them unique origins. 4521 // still can have other privileges that can be remembered, there by not making them unique origins.
4528 securityOrigin()->enforceFilePathSeparation(); 4522 securityOrigin()->enforceFilePathSeparation();
4529 } 4523 }
4530 } 4524 }
4531 securityOrigin()->setStorageBlockingPolicy(settings->storageBlockingPoli cy());
4532 } 4525 }
4533 4526
4534 Document* parentDocument = ownerElement() ? ownerElement()->document() : 0; 4527 Document* parentDocument = ownerElement() ? ownerElement()->document() : 0;
4535 if (parentDocument && m_frame->loader()->shouldTreatURLAsSrcdocDocument(url( ))) { 4528 if (parentDocument && m_frame->loader()->shouldTreatURLAsSrcdocDocument(url( ))) {
4536 m_isSrcdocDocument = true; 4529 m_isSrcdocDocument = true;
4537 setBaseURLOverride(parentDocument->baseURL()); 4530 setBaseURLOverride(parentDocument->baseURL());
4538 } 4531 }
4539 4532
4540 // FIXME: What happens if we inherit the security origin? This check may nee d to be later. 4533 // FIXME: What happens if we inherit the security origin? This check may nee d to be later.
4541 // <iframe seamless src="about:blank"> likely won't work as-is. 4534 // <iframe seamless src="about:blank"> likely won't work as-is.
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
5971 return; 5964 return;
5972 5965
5973 Vector<RefPtr<Element> > associatedFormControls; 5966 Vector<RefPtr<Element> > associatedFormControls;
5974 copyToVector(m_associatedFormControls, associatedFormControls); 5967 copyToVector(m_associatedFormControls, associatedFormControls);
5975 5968
5976 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls); 5969 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls);
5977 m_associatedFormControls.clear(); 5970 m_associatedFormControls.clear();
5978 } 5971 }
5979 5972
5980 } // namespace WebCore 5973 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Document.h ('k') | Source/WebCore/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698