Make MiniBrowser automatically escape invalid URL characters typed in its URL field
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2012 20:23:48 +0000 (20:23 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2012 20:23:48 +0000 (20:23 +0000)
commitd7b761f269a3cee2c0963fd92d7a114ee9d72524
tree7029c1b889e194c2758e18959d52ba2bd8fb1740
parent81d723d87ec741ca5069083854e68431b78a543f
Make MiniBrowser automatically escape invalid URL characters typed in its URL field

Fixes <http://webkit.org/b/75086> Crash when typing a data: URL containing double-quotes in
MiniBrowser on Windows

Reviewed by Darin Adler.

* MiniBrowser/win/BrowserView.cpp:
(BrowserView::goToURL): Pass the typed string through
CFURLCreateStringByAddingPercentEscapes before trying to create a URL from it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/MiniBrowser/win/BrowserView.cpp