Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #3626, use content.XMLHttpRequest instead of wrappedJSObject.XMLH…
Browse files Browse the repository at this point in the history
…ttpRequest
  • Loading branch information
ianb committed Nov 13, 2017
1 parent 30d329e commit 1ef5bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/webextension/sitehelper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* globals catcher, callBackground */
/* globals catcher, callBackground, content */
/** This is a content script added to all screenshots.firefox.com pages, and allows the site to
communicate with the add-on */

Expand All @@ -8,7 +8,7 @@ this.sitehelper = (function() {

// This gives us the content's copy of XMLHttpRequest, instead of the wrapped
// copy that this content script gets:
let ContentXMLHttpRequest = window.wrappedJSObject.XMLHttpRequest;
let ContentXMLHttpRequest = content.XMLHttpRequest;

catcher.registerHandler((errorObj) => {
callBackground("reportError", errorObj);
Expand Down

0 comments on commit 1ef5bd9

Please sign in to comment.