projects
/
framework
/
web
/
webkit-efl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tizen beta release
[framework/web/webkit-efl.git]
/
Source
/
WebCore
/
html
/
parser
/
XSSAuditor.h
diff --git
a/Source/WebCore/html/parser/XSSAuditor.h
b/Source/WebCore/html/parser/XSSAuditor.h
index
2583a19
..
89b7b8c
100755
(executable)
--- a/
Source/WebCore/html/parser/XSSAuditor.h
+++ b/
Source/WebCore/html/parser/XSSAuditor.h
@@
-48,6
+48,11
@@
private:
AfterScriptStartTag,
};
AfterScriptStartTag,
};
+ enum AttributeKind {
+ NormalAttribute,
+ SrcLikeAttribute
+ };
+
void init();
bool filterTokenInitial(HTMLToken&);
void init();
bool filterTokenInitial(HTMLToken&);
@@
-64,11
+69,11
@@
private:
bool filterFormToken(HTMLToken&);
bool eraseDangerousAttributesIfInjected(HTMLToken&);
bool filterFormToken(HTMLToken&);
bool eraseDangerousAttributesIfInjected(HTMLToken&);
- bool eraseAttributeIfInjected(HTMLToken&, const QualifiedName&, const String& replacementValue = String());
+ bool eraseAttributeIfInjected(HTMLToken&, const QualifiedName&, const String& replacementValue = String()
, AttributeKind treatment = NormalAttribute
);
String snippetForRange(const HTMLToken&, int start, int end);
String snippetForJavaScript(const String&);
String snippetForRange(const HTMLToken&, int start, int end);
String snippetForJavaScript(const String&);
- String decodedSnippetForAttribute(const HTMLToken&, const HTMLToken::Attribute&);
+ String decodedSnippetForAttribute(const HTMLToken&, const HTMLToken::Attribute&
, AttributeKind treatment = NormalAttribute
);
bool isContainedInRequest(const String&);
bool isSameOriginResource(const String& url);
bool isContainedInRequest(const String&);
bool isSameOriginResource(const String& url);
@@
-83,6
+88,7
@@
private:
State m_state;
String m_cachedSnippet;
State m_state;
String m_cachedSnippet;
+ bool m_notifiedClient;
};
}
};
}