We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36bfc9e commit c31888dCopy full SHA for c31888d
lib/har-driver-actor.js
@@ -159,6 +159,15 @@ var HarDriverActor = ActorClass(
159
Ci.nsIWebProgress.NOTIFY_STATE_WINDOW |
160
Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT;
161
162
+ let win = this.parent.originalWindow;
163
+
164
+ // Do not overwrite HAR object. It might be already there if
165
+ // autoConntect is on or there might be an existing object
166
+ // with the same on the page.
167
+ if (win.wrappedJSObject.HAR) {
168
+ return;
169
+ }
170
171
// The client just attached to this actor, let's expose
172
// HAR API to the content.
173
this.parent.webProgress.addProgressListener(this, notifyMask);
0 commit comments