appium/appium — pull request #1816 by jasonchutko (2014-01-27 21:41:29+00:00)
Title: Fixed a crash when there is a URL in an alert's title.

Given an alert that contains a URL in the title, the title won't be grabbed. If there is no body to the alert, no body will be grabbed. Thus, the text will be nil when pulled from the alert even though a title exists.

I propose to check for a URL at the beginning of the title, to maintain compatibility with Safari.