dom/base/crashtests/473284.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 2 class="reftest-wait"
michael@0 3 onload="
michael@0 4 var result = '';
michael@0 5 try {
michael@0 6 document.commandDispatcher.advanceFocusIntoSubtree({});
michael@0 7 result += '1';
michael@0 8 } catch (ex) {
michael@0 9 result += '.';
michael@0 10 }
michael@0 11
michael@0 12 try {
michael@0 13 document.commandDispatcher.advanceFocusIntoSubtree(document.documentElement);
michael@0 14 result += '2';
michael@0 15 } catch (ex) {
michael@0 16 result += '.';
michael@0 17 }
michael@0 18
michael@0 19 try {
michael@0 20 document.commandDispatcher.advanceFocusIntoSubtree(null);
michael@0 21 result += '3';
michael@0 22 } catch (ex) {
michael@0 23 result += '.';
michael@0 24 }
michael@0 25
michael@0 26 try {
michael@0 27 document.commandDispatcher.focusedElement = {};
michael@0 28 result += '4';
michael@0 29 } catch (ex) {
michael@0 30 result += '.';
michael@0 31 }
michael@0 32
michael@0 33 try {
michael@0 34 document.commandDispatcher.focusedElement = document.documentElement;
michael@0 35 result += '5';
michael@0 36 } catch (ex) {
michael@0 37 result += '.';
michael@0 38 }
michael@0 39
michael@0 40 try {
michael@0 41 document.commandDispatcher.focusedElement = null;
michael@0 42 result += '6';
michael@0 43 } catch (ex) {
michael@0 44 result += '.';
michael@0 45 }
michael@0 46
michael@0 47 try {
michael@0 48 document.popupNode = {};
michael@0 49 result += '7';
michael@0 50 } catch (ex) {
michael@0 51 result += '.';
michael@0 52 }
michael@0 53
michael@0 54 try {
michael@0 55 document.popupNode = document.documentElement;
michael@0 56 result += '8';
michael@0 57 } catch (ex) {
michael@0 58 result += '.';
michael@0 59 }
michael@0 60
michael@0 61 try {
michael@0 62 document.popupNode = null;
michael@0 63 result += '9';
michael@0 64 } catch (ex) {
michael@0 65 result += '.';
michael@0 66 }
michael@0 67
michael@0 68 try {
michael@0 69 document.commandDispatcher.focusedWindow = {};
michael@0 70 result += 'a';
michael@0 71 } catch (ex) {
michael@0 72 result += '.';
michael@0 73 }
michael@0 74
michael@0 75 try {
michael@0 76 document.commandDispatcher.focusedWindow = null;
michael@0 77 result += 'b';
michael@0 78 } catch (ex) {
michael@0 79 result += '.';
michael@0 80 }
michael@0 81
michael@0 82 try {
michael@0 83 document.commandDispatcher.focusedWindow = window;
michael@0 84 result += 'c';
michael@0 85 } catch (ex) {
michael@0 86 result += '.';
michael@0 87 }
michael@0 88
michael@0 89 document.documentElement.textContent = result == '.23.56.89.bc' ? 'PASSED' : 'FAILED';
michael@0 90 if (document.documentElement.textContent == 'PASSED') {
michael@0 91 document.documentElement.removeAttribute('class');
michael@0 92 }
michael@0 93 "/>

mercurial