Fixed crash while loading page without title. 67/47767/3 accepted/tizen/tv/20150910.025343 submit/tizen_tv/20150910.010500
authorMaciej Skrzypkowski <m.skrzypkows@samsung.com>
Tue, 8 Sep 2015 14:04:20 +0000 (16:04 +0200)
committerJanusz Majnert <j.majnert@samsung.com>
Wed, 9 Sep 2015 06:02:54 +0000 (23:02 -0700)
commit7d65e7f2db89b41bec2a6d89283921bf3515a95e
treec06c9357399579cc6cdd551d56bc610cdb5a7b65
parent24206804e050da8f6e007a7a84ec48bea1f70492
Fixed crash while loading page without title.

[Issue]     https://bugs.tizen.org/jira/browse/TT-162
[Problem]   Browser crashed while loading page.
[Cause]     There was no check if page title is empty while comparing.
[Solution]  Changed compering to URL, added check if it's empty.
[Verify]    Launch browser > go to: http://jmajnert.github.io/tests/localStorage_test/localStoragePersistance.html
            refresh page > close browser > open again > go to previous site.
            Browser shouldn't crash.

Change-Id: Icc19ad7a327d97fe6ff79777b0fc819189cf660a
Signed-off-by: Maciej Skrzypkowski <m.skrzypkows@samsung.com>
services/HistoryService/HistoryService.cpp
services/HistoryService/HistoryService.h