github / github/text-expander-element

`provide` function unavailable in Firefox content scripts context

オープン
#51 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
228
フォーク
32
平均マージ
1日 6時間
マージ済み PR(30日)
5

説明

Our team is trying to write a browser extension to create an autocomplete search feature inside Github for a 3rd party issue tracking system.

We almost have it working on Chrome, but on Firefox the [content security limitations of content scripts](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts#xray_vision_in_firefox) is preventing us from making this work.

The issue is that the [`provide`](https://github.com/github/text-expander-element/blob/main/src/text-expander-element.ts#L250-L252) function sent in the detail object of the `text-expander-change` `CustomEvent` is not accessible inside the Firefox content script.

We would appreciate any refactor that would allow us to use this component without any passthrough functions or DOM fragments.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。