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

Side by Side Diff: Source/core/dom/Document.h

Issue 132563006: CSP 1.1: <meta> delivery should be ignored outside <head>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase. Created 6 years, 10 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
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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 CSSStyleDeclaration* getOverrideStyle(Element*, const String& pseudoElt); 715 CSSStyleDeclaration* getOverrideStyle(Element*, const String& pseudoElt);
716 716
717 /** 717 /**
718 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv ="..." content="...">. This is called 718 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv ="..." content="...">. This is called
719 * when a meta tag is encountered during document parsing, and also when a s cript dynamically changes or adds a meta 719 * when a meta tag is encountered during document parsing, and also when a s cript dynamically changes or adds a meta
720 * tag. This enables scripts to use meta tags to perform refreshes and set e xpiry dates in addition to them being 720 * tag. This enables scripts to use meta tags to perform refreshes and set e xpiry dates in addition to them being
721 * specified in a HTML file. 721 * specified in a HTML file.
722 * 722 *
723 * @param equiv The http header name (value of the meta tag's "equiv" attrib ute) 723 * @param equiv The http header name (value of the meta tag's "equiv" attrib ute)
724 * @param content The header value (value of the meta tag's "content" attrib ute) 724 * @param content The header value (value of the meta tag's "content" attrib ute)
725 * @param inDocumentHeadElement Is the element in the document's <head> elem ent?
725 */ 726 */
726 void processHttpEquiv(const AtomicString& equiv, const AtomicString& content ); 727 void processHttpEquiv(const AtomicString& equiv, const AtomicString& content , bool inDocumentHeadElement);
727 void updateViewportDescription(); 728 void updateViewportDescription();
728 void processReferrerPolicy(const String& policy); 729 void processReferrerPolicy(const String& policy);
729 730
730 // Returns the owning element in the parent document. 731 // Returns the owning element in the parent document.
731 // Returns 0 if this is the top level document. 732 // Returns 0 if this is the top level document.
732 HTMLFrameOwnerElement* ownerElement() const; 733 HTMLFrameOwnerElement* ownerElement() const;
733 734
734 String title() const { return m_title; } 735 String title() const { return m_title; }
735 void setTitle(const String&); 736 void setTitle(const String&);
736 737
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 inline bool Node::isDocumentNode() const 1403 inline bool Node::isDocumentNode() const
1403 { 1404 {
1404 return this == document(); 1405 return this == document();
1405 } 1406 }
1406 1407
1407 Node* eventTargetNodeForDocument(Document*); 1408 Node* eventTargetNodeForDocument(Document*);
1408 1409
1409 } // namespace WebCore 1410 } // namespace WebCore
1410 1411
1411 #endif // Document_h 1412 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/security/contentSecurityPolicy/1.1/meta-outside-head-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698