Skip to content

Commit

Permalink
fix for #11428
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie0 committed Oct 5, 2024
1 parent bdf91e2 commit 8a819d9
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@

const script = globalContext.document.createElement("script");
script.src = chrome.runtime.getURL("content/fido2-page-script.js");
script.async = false;

// We are ensuring that the script injection is delayed in the event that we are loading
// within an iframe element. This prevents an issue with web mail clients that load content
2 changes: 2 additions & 0 deletions apps/browser/src/autofill/fido2/content/fido2-page-script.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@ import { MessageType } from "./messaging/message";
import { Messenger } from "./messaging/messenger";

(function (globalContext) {
document.currentScript.parentNode.removeChild(document.currentScript);

const shouldExecuteContentScript =
globalContext.document.contentType === "text/html" &&
(globalContext.document.location.protocol === "https:" ||

0 comments on commit 8a819d9

Please sign in to comment.