Skip to content

Firefox support? Got POC working #48

Description

@jhholm

I was able to get the extension somehow working in Firefox with a few changes

chrome.devtools.panels.create("SharePoint", null, "index.html", null);

That needs to changed to

chrome.devtools.panels.create("SharePoint", "", "index.html");

The bigger refactor was for the definition file loads for monaco-editor. Firefox does not support the following API that is used.

chrome.runtime.getPackageDirectoryEntry

Thus I created a bit hacky workaround: creating a gulp task, that creates dependency.ts file with all the definitions as an JSON array that can be created on build time.

After that I was able to load the extension successfully in Firefox. I think Firefox 109 finally supports officially manifest v3.

I can share my hack, but I guess gulp is a bit deprecated. But I recommend the library definitions would be loaded on buildtime, instead of runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions