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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 6982011: Strip leading "javascript:" schemas from text pasted or dropped into the omnibox. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
===================================================================
--- chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (revision 84514)
+++ chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (working copy)
@@ -935,6 +935,8 @@
if (text.empty()) {
return;
}
+
+ StripJavascriptSchema(text, &text);
Peter Kasting 2011/05/10 23:27:42 Do this in GetClipboardText(), not here.
Cris Neckar 2011/05/11 21:42:36 Done.
NSString* s = base::SysUTF16ToNSString(text);
// -shouldChangeTextInRange:* and -didChangeText are documented in

Powered by Google App Engine
This is Rietveld 408576698