mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1039887 - Avoid unnecessary deletes in DOMRequestHelper.jsm. r=fabrice.
They're unnecessary because the entire object is later nulled out. This in turn avoids creating 3,108 shapes when starting up B2G, which is about 73 KiB's worth.
This commit is contained in:
parent
41c64bfad2
commit
ce21bc377c
@ -188,7 +188,6 @@ DOMRequestIpcHelper.prototype = {
|
||||
Object.keys(this._listeners).forEach((aName) => {
|
||||
this._listeners[aName].weakRef ? cpmm.removeWeakMessageListener(aName, this)
|
||||
: cpmm.removeMessageListener(aName, this);
|
||||
delete this._listeners[aName];
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user