Bug 1084979 - Prevent test_ipc.html from breaking subsequent tests that check for plugin/content crashes. r=jmaher

This commit is contained in:
Birunthan Mohanathas 2014-10-22 06:28:02 +03:00
Родитель 2f81cec52b
Коммит f71975b256
3 изменённых файлов: 14 добавлений и 3 удалений

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

@ -15,7 +15,12 @@
window.is = parent.is;
window.info = parent.info;
// The crash observer registration functions are stubbed out here to
// prevent the iframe test runner from breaking later crash-related tests.
function iframeScriptFirst() {
SpecialPowers.prototype.registerProcessCrashObservers = () => {};
SpecialPowers.prototype.unregisterProcessCrashObservers = () => {};
content.wrappedJSObject.RunSet.reloadAndRunAll({
preventDefault: function() { },
__exposedProps__: { preventDefault: 'r' }

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

@ -12,7 +12,12 @@
SimpleTest.waitForExplicitFinish();
// The crash observer registration functions are stubbed out here to
// prevent the iframe test runner from breaking later crash-related tests.
function iframeScriptFirst() {
SpecialPowers.prototype.registerProcessCrashObservers = () => {};
SpecialPowers.prototype.unregisterProcessCrashObservers = () => {};
content.wrappedJSObject.RunSet.reloadAndRunAll({
preventDefault: function() { },
__exposedProps__: { preventDefault: 'r' }

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

@ -18,10 +18,11 @@
// killed.
SimpleTest.requestLongerTimeout(100);
// Disable crash observers as it breaks later tests.
// The crash observer registration functions are stubbed out here to
// prevent the iframe test runner from breaking later crash-related tests.
function iframeScriptFirst() {
SpecialPowers.prototype.registerProcessCrashObservers = function() { };
SpecialPowers.prototype.unregisterProcessCrashObservers = function() { };
SpecialPowers.prototype.registerProcessCrashObservers = () => {};
SpecialPowers.prototype.unregisterProcessCrashObservers = () => {};
content.wrappedJSObject.RunSet.reloadAndRunAll({
preventDefault: function() { },