Bug 796911 - Print debug information to have a better understand of the random orange. r=me

This commit is contained in:
Mounir Lamouri 2012-10-08 17:25:05 +01:00
Родитель 039ea5bcef
Коммит 2e438d9cde
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1,9 +1,11 @@
<!DOCTYPE html>
<html>
<script>
dump("\n frame created \n\n");
addEventListener('message', function(e) {
if (e.data == 'clear') {
navigator.mozApps.getSelf().onsuccess = function() {
dump("\n clearing browser data \n\n");
this.result.clearBrowserData();
};
}

Просмотреть файл

@ -191,10 +191,13 @@ function browserLoadEvent() {
setupStorage(gBrowserStorage.localStorage);
setupStorage(gBrowserStorage.sessionStorage);
dump("\n send message to iframe \n\n");
frames[1].postMessage("clear", "http://www.example.com");
SimpleTest.executeSoon(function() {
dump("\n call getAll() \n\n");
navigator.mozApps.mgmt.getAll().onsuccess = function() {
dump("\n get getAll() results \n\n");
for (i in this.result) {
var app = this.result[i];
if (app.manifestURL == gManifestURL) {