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>
|
||||
<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) {
|
||||
|
Loading…
Reference in New Issue
Block a user