Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/composer.js

Issue 8788069: Fixed: EHH - Filter creating window won't close (Closed)
Patch Set: Fixed: EHH - Filter creating window won't close Created Nov. 9, 2012, 11:57 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/composer.js
===================================================================
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -555,8 +555,17 @@
previewStyle.textContent = stylesheetData;
}
else {
- if (previewStyle && previewStyle.parentNode)
- previewStyle.parentNode.removeChild(previewStyle);
+ try
+ {
+ if (previewStyle && previewStyle.parentNode)
+ previewStyle.parentNode.removeChild(previewStyle);
+ }
+ catch (e)
+ {
+ // if the window was closed (reloaded) we end up with dead object reference
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=695480
+ // just ignore this case
+ }
previewStyle = null;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld