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

Unified Diff: Source/WebCore/dom/Element.h

Issue 14297020: Merge 147281 "Cross-Origin copy&paste / drag&drop allowing XSS v..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1453/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/editing/pasteboard/paste-noscript-expected.txt ('k') | Source/WebCore/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/Element.h
===================================================================
--- Source/WebCore/dom/Element.h (revision 148876)
+++ Source/WebCore/dom/Element.h (working copy)
@@ -380,7 +380,8 @@
// Only called by the parser immediately after element construction.
void parserSetAttributes(const Vector<Attribute>&);
- void stripJavaScriptAttributes(Vector<Attribute>&);
+ // Remove attributes that might introduce scripting from the vector leaving the element unchanged.
+ void stripScriptingAttributes(Vector<Attribute>&) const;
const ElementData* elementData() const { return m_elementData.get(); }
UniqueElementData* ensureUniqueElementData();
@@ -454,6 +455,7 @@
virtual void accessKeyAction(bool /*sendToAnyEvent*/) { }
virtual bool isURLAttribute(const Attribute&) const { return false; }
+ virtual bool isHTMLContentAttribute(const Attribute&) const { return false; }
KURL getURLAttribute(const QualifiedName&) const;
KURL getNonEmptyURLAttribute(const QualifiedName&) const;
@@ -726,8 +728,7 @@
void createRendererIfNeeded();
- bool isJavaScriptAttribute(const Attribute&);
- bool isJavaScriptURLAttribute(const Attribute&);
+ bool isJavaScriptURLAttribute(const Attribute&) const;
RefPtr<ElementData> m_elementData;
};
« no previous file with comments | « LayoutTests/editing/pasteboard/paste-noscript-expected.txt ('k') | Source/WebCore/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698