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

Unified Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 1397183002: Escapes backslash, colon, comma, equals and semicolon in IAccessible2 string attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made formatting fixes. Created 5 years, 2 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
Index: content/browser/accessibility/browser_accessibility_win.h
diff --git a/content/browser/accessibility/browser_accessibility_win.h b/content/browser/accessibility/browser_accessibility_win.h
index fdde33e55d046003cbf6338780e9dbb3858c91a8..2632c4d087094bbe5d4fdce5616114b047d91752 100644
--- a/content/browser/accessibility/browser_accessibility_win.h
+++ b/content/browser/accessibility/browser_accessibility_win.h
@@ -751,6 +751,12 @@ BrowserAccessibilityWin
ui::AXStringAttribute attribute,
BSTR* value_bstr);
+ // Escapes the following characters with backslash: backslash, colon, comma,
+ // equals and semicolon.
+ // It's okay for input to be the same as output.
+ static void SanitizeStringAttributeForIA2(const base::string16& input,
+ base::string16* output);
+
// If the string attribute |attribute| is present, add its value as an
// IAccessible2 attribute with the name |ia2_attr|.
void StringAttributeToIA2(ui::AXStringAttribute attribute,

Powered by Google App Engine
This is Rietveld 408576698