Created
May 14, 2019 15:27
-
-
Save jasonLaster/d38703389a63f7e9734c4e5316ff0d1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/devtools/client/debugger/src/actions/navigation.js b/devtools/client/debugger/src/actions/navigation.js | |
index 1f8a0eb2e423..dd60da7c6794 100644 | |
--- a/devtools/client/debugger/src/actions/navigation.js | |
+++ b/devtools/client/debugger/src/actions/navigation.js | |
@@ -48,14 +48,20 @@ export function willNavigate(event: Object) { | |
}; | |
} | |
-export function connect(url: string, actor: string, canRewind: boolean) { | |
+export function connect( | |
+ url: string, | |
+ actor: string, | |
+ canRewind: boolean, | |
+ isWebExtension: boolean | |
+) { | |
return async function({ dispatch }: ThunkArgs) { | |
await dispatch(updateWorkers()); | |
dispatch( | |
({ | |
type: "CONNECT", | |
mainThread: { url, actor, type: -1, name: "" }, | |
- canRewind | |
+ canRewind, | |
+ isWebExtension | |
}: Action) | |
); | |
}; | |
diff --git a/devtools/client/debugger/src/client/firefox.js b/devtools/client/debugger/src/client/firefox.js | |
index 5cbd6b0bba5d..e849a0fa0244 100644 | |
--- a/devtools/client/debugger/src/client/firefox.js | |
+++ b/devtools/client/debugger/src/client/firefox.js | |
@@ -58,7 +58,8 @@ export async function onConnect(connection: any, actions: Object) { | |
await actions.connect( | |
tabTarget.url, | |
threadClient.actor, | |
- traits && traits.canRewind | |
+ traits && traits.canRewind, | |
+ tabTarget.isWebExtension | |
); | |
await actions.newGeneratedSources(sourceInfo); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment