Commit 4f4eb2c3 authored by Michael Catanzaro's avatar Michael Catanzaro

session: Fix crash when JS opens an invalid URI

https://bugzilla.gnome.org/show_bug.cgi?id=795740
parent 08fbe8cd
......@@ -828,8 +828,15 @@ session_seems_sane (GList *windows)
SoupURI *uri;
gboolean sane = FALSE;
/* NULL URLs are possible when an invalid URL is opened by JS.
* E.g. <script>win = window.open("blah", "WIN");</script>
*/
if (url == NULL)
continue;
/* Blank URLs can occur in some situations. Just ignore these, as they
* are harmless and not an indicator of a corrupted session. */
* are harmless and not an indicator of a corrupted session.
*/
if (strcmp (url, "") == 0)
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment