Bug 353117, r=mconnor, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@211950 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com 2006-09-18 19:45:30 +00:00
parent 90cf0483f9
commit 7abbc079f7

View File

@ -435,12 +435,8 @@ FeedWriter.prototype = {
* See nsIDOMEventListener
*/
handleEvent: function(event) {
if (!this._window) {
// this._window is null unless this.write was called with a trusted
// window object.
return;
}
// see comments in the write method
event = new XPCNativeWrapper(event);
if (event.target.ownerDocument != this._document) {
LOG("FeedWriter.handleEvent: Someone passed the feed writer as a listener to the events of another document!");
return;