mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Bug 1497299 - Avoid destroying nsHashPropertyBag when recording/replaying, r=mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D22561 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
baba0e3cec
commit
8017dbf59f
@ -32,7 +32,12 @@ class nsHashPropertyBagBase : public nsIWritablePropertyBag,
|
||||
|
||||
class nsHashPropertyBag : public nsHashPropertyBagBase {
|
||||
public:
|
||||
nsHashPropertyBag() {}
|
||||
nsHashPropertyBag() {
|
||||
// Avoid destroying this object when recording/replaying. See bug 1497299.
|
||||
if (mozilla::recordreplay::IsRecordingOrReplaying()) {
|
||||
AddRef();
|
||||
}
|
||||
}
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user