github / github/text-expander-element

`provide` function unavailable in Firefox content scripts context

Abierto
#51 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
228
Forks
32
Merge medio
1 d 6 h
PR fusionados (30 d)
5

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by reading src/text-expander-element.ts around the provide function at lines 250-252 and review how it is passed through the text-expander-change CustomEvent. Reproduce the behavior in a Firefox content script, then determine an approach that avoids passthrough functions and DOM fragments while preserving the component's autocomplete behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
frontend, web-dev
Tipo de issue
Refactorización
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.