Skip to content

Instantly share code, notes, and snippets.

@tsupo
Created May 13, 2011 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsupo/970306 to your computer and use it in GitHub Desktop.
Save tsupo/970306 to your computer and use it in GitHub Desktop.
patch (hint) for webkitdotnet-webkitdotnet-160a223/WebKitCore/WebKitBrowserCore.cs
*** webkit.net/webkitdotnet-webkitdotnet-160a223/WebKitCore/WebKitBrowserCore.cs Fri Mar 18 00:16:04 2011
--- WEBKIT_test_working002/webkit.net/webkitdotnet-webkitdotnet-160a223/WebKitCore/WebKitBrowserCore.cs Wed May 11 10:17:26 2011
***************
*** 870,877 ****
if (loaded)
{
// prepend with "http://" if url not well formed
! if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
! url = "http://" + url;
activationContext.Activate();
--- 870,880 ----
if (loaded)
{
// prepend with "http://" if url not well formed
! if (!Uri.IsWellFormedUriString(url, UriKind.Absolute)) /* {@@} */
! { /* {@@} */
! // if (!url.StartsWith("javascript:")) /* {@@} */
! url = "http://" + url; /* {@@} */
! } /* {@@} */
activationContext.Activate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment