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
parent e1f5469d82
commit d53bcf0029
3 changed files with 14 additions and 3 deletions

View File

@ -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' }

View File

@ -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' }

View File

@ -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() { },