1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/crashtests/473284.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,93 @@ 1.4 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.5 + class="reftest-wait" 1.6 +onload=" 1.7 +var result = ''; 1.8 +try { 1.9 + document.commandDispatcher.advanceFocusIntoSubtree({}); 1.10 + result += '1'; 1.11 +} catch (ex) { 1.12 + result += '.'; 1.13 +} 1.14 + 1.15 +try { 1.16 + document.commandDispatcher.advanceFocusIntoSubtree(document.documentElement); 1.17 + result += '2'; 1.18 +} catch (ex) { 1.19 + result += '.'; 1.20 +} 1.21 + 1.22 +try { 1.23 + document.commandDispatcher.advanceFocusIntoSubtree(null); 1.24 + result += '3'; 1.25 +} catch (ex) { 1.26 + result += '.'; 1.27 +} 1.28 + 1.29 +try { 1.30 + document.commandDispatcher.focusedElement = {}; 1.31 + result += '4'; 1.32 +} catch (ex) { 1.33 + result += '.'; 1.34 +} 1.35 + 1.36 +try { 1.37 + document.commandDispatcher.focusedElement = document.documentElement; 1.38 + result += '5'; 1.39 +} catch (ex) { 1.40 + result += '.'; 1.41 +} 1.42 + 1.43 +try { 1.44 + document.commandDispatcher.focusedElement = null; 1.45 + result += '6'; 1.46 +} catch (ex) { 1.47 + result += '.'; 1.48 +} 1.49 + 1.50 +try { 1.51 + document.popupNode = {}; 1.52 + result += '7'; 1.53 +} catch (ex) { 1.54 + result += '.'; 1.55 +} 1.56 + 1.57 +try { 1.58 + document.popupNode = document.documentElement; 1.59 + result += '8'; 1.60 +} catch (ex) { 1.61 + result += '.'; 1.62 +} 1.63 + 1.64 +try { 1.65 + document.popupNode = null; 1.66 + result += '9'; 1.67 +} catch (ex) { 1.68 + result += '.'; 1.69 +} 1.70 + 1.71 +try { 1.72 + document.commandDispatcher.focusedWindow = {}; 1.73 + result += 'a'; 1.74 +} catch (ex) { 1.75 + result += '.'; 1.76 +} 1.77 + 1.78 +try { 1.79 + document.commandDispatcher.focusedWindow = null; 1.80 + result += 'b'; 1.81 +} catch (ex) { 1.82 + result += '.'; 1.83 +} 1.84 + 1.85 +try { 1.86 + document.commandDispatcher.focusedWindow = window; 1.87 + result += 'c'; 1.88 +} catch (ex) { 1.89 + result += '.'; 1.90 +} 1.91 + 1.92 +document.documentElement.textContent = result == '.23.56.89.bc' ? 'PASSED' : 'FAILED'; 1.93 +if (document.documentElement.textContent == 'PASSED') { 1.94 + document.documentElement.removeAttribute('class'); 1.95 +} 1.96 +"/>