mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 796911 - Print debug information to have a better understand of the random orange. r=me
This commit is contained in:
parent
039ea5bcef
commit
2e438d9cde
@ -1,9 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<script>
|
<script>
|
||||||
|
dump("\n frame created \n\n");
|
||||||
addEventListener('message', function(e) {
|
addEventListener('message', function(e) {
|
||||||
if (e.data == 'clear') {
|
if (e.data == 'clear') {
|
||||||
navigator.mozApps.getSelf().onsuccess = function() {
|
navigator.mozApps.getSelf().onsuccess = function() {
|
||||||
|
dump("\n clearing browser data \n\n");
|
||||||
this.result.clearBrowserData();
|
this.result.clearBrowserData();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -191,10 +191,13 @@ function browserLoadEvent() {
|
|||||||
setupStorage(gBrowserStorage.localStorage);
|
setupStorage(gBrowserStorage.localStorage);
|
||||||
setupStorage(gBrowserStorage.sessionStorage);
|
setupStorage(gBrowserStorage.sessionStorage);
|
||||||
|
|
||||||
|
dump("\n send message to iframe \n\n");
|
||||||
frames[1].postMessage("clear", "http://www.example.com");
|
frames[1].postMessage("clear", "http://www.example.com");
|
||||||
|
|
||||||
SimpleTest.executeSoon(function() {
|
SimpleTest.executeSoon(function() {
|
||||||
|
dump("\n call getAll() \n\n");
|
||||||
navigator.mozApps.mgmt.getAll().onsuccess = function() {
|
navigator.mozApps.mgmt.getAll().onsuccess = function() {
|
||||||
|
dump("\n get getAll() results \n\n");
|
||||||
for (i in this.result) {
|
for (i in this.result) {
|
||||||
var app = this.result[i];
|
var app = this.result[i];
|
||||||
if (app.manifestURL == gManifestURL) {
|
if (app.manifestURL == gManifestURL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user