-
kubo@profusion.mobi authored
https://bugs.webkit.org/show_bug.cgi?id=81773 Reviewed by Adam Barth. BatteryManager::create() blindly assumes the Navigator* it receives has a valid Frame, which is not always the case, as made evident by the crashing test. Follow abarth's suggestion and just stop NavigatorBattery::webkitBattery() before it reaches the call to BatteryManager::create() if that's the case. No new tests, covered by fast/dom/navigator-detached-nocrash.html. * Modules/battery/NavigatorBattery.cpp: (WebCore::NavigatorBattery::webkitBattery): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a389915e