Skip to content

Rename lockdown.cjs to lockdown.js#10026

Merged
Gudahtt merged 1 commit intodevelopfrom
rename-lockdown-file-extension
Dec 9, 2020
Merged

Rename lockdown.cjs to lockdown.js#10026
Gudahtt merged 1 commit intodevelopfrom
rename-lockdown-file-extension

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Dec 9, 2020

When you load an extension .zip file in Firefox, it fails to load scripts with the .cjs file extension. However, it works if you load
the extension via the manifest.json file instead.

After renaming the lockdown.cjs file to lockdown.js, it works in Firefox in all cases, regardless whether it's loaded by manifest or by .zip.

Fixes #10023

When you load an extension `.zip` file in Firefox, it fails to load
scripts with the `.cjs` file extension. However, it works if you load
the extension via the `manifest.json` file instead.

After renaming the `lockdown.cjs` file to `lockdown.js`, it works in
Firefox in all cases, regardless whether it's loaded by manifest or by
`.zip`.
@Gudahtt Gudahtt requested review from a team and kumavis as code owners December 9, 2020 05:26
@Gudahtt Gudahtt requested a review from darkwing December 9, 2020 05:26
@Gudahtt
Copy link
Copy Markdown
Member Author

Gudahtt commented Dec 9, 2020

Thanks to @EtDu for suggesting this solution!

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [5c0131a]
Page Load Metrics (599 ± 23 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint34664794
domContentLoaded5326865974823
load5336875994823
domInteractive5326855974823

@Gudahtt Gudahtt mentioned this pull request Dec 9, 2020
@Gudahtt Gudahtt merged commit f386e4c into develop Dec 9, 2020
@Gudahtt Gudahtt deleted the rename-lockdown-file-extension branch December 9, 2020 15:34
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

window.ethereum is now missing from all pages on Firefox

3 participants