Skip to content

Commit

Permalink
Fix request metadata for Firefox (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban authored Oct 17, 2023
1 parent 903e701 commit a708cec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension-manifest-v3/src/background/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class ExtendedRequest extends Request {
hostname: parsedUrl.hostname || '',
url: details.url,

sourceUrl,
sourceDomain: parsedSourceUrl.domain || '',
sourceHostname: parsedSourceUrl.hostname || '',

Expand All @@ -47,6 +48,7 @@ export default class ExtendedRequest extends Request {
this.blocked = false;
this.modified = false;

this.sourceUrl = data.sourceUrl;
this.sourceDomain = data.sourceDomain;
this.sourceHostname = data.sourceHostname;
}
Expand Down

0 comments on commit a708cec

Please sign in to comment.