Introduce some text pre/post-processing and mostly hardcoded engine config in a new module. Allow some pref configuration.
Differential Revision: https://phabricator.services.mozilla.com/D241268
- add fetch in child process
- DOM parsing only once
- check content-type to be text/html before fetching content
- add custom request header x-firefox-ai so publisher has option to allow/disallow the fetch request
- more fetch safeguards(max content-length) may come in the near future
Differential Revision: https://phabricator.services.mozilla.com/D240654
- alt+hover to trigger LinkPreview
- add LinkPreview.sys.mjs modules
- disable browser.ml.linkPreview.enabled by default
- use setOverLink and LinkPreview.sys to handle keyboard shortcut
- dispatch CustomEvent OverLink from browser.js
- add/remove event listeners in sync with state of "browser.ml.linkPreview.enabled"
- update all_files_referenced to handle moz-src
Differential Revision: https://phabricator.services.mozilla.com/D239535
- alt+hover to trigger LinkPreview
- add LinkPreview.sys.mjs modules
- disable browser.ml.linkPreview.enabled by default
- use setOverLink and LinkPreview.sys to handle keyboard shortcut
- dispatch CustomEvent OverLink from browser.js
- add/remove event listeners in sync with state of "browser.ml.linkPreview.enabled"
- update all_files_referenced to handle moz-src
Differential Revision: https://phabricator.services.mozilla.com/D239535
- alt+hover to trigger LinkPreview
- add LinkPreview.sys.mjs modules
- disable browser.ml.linkPreview.enabled by default
- use setOverLink and LinkPreview.sys to handle keyboard shortcut
- dispatch CustomEvent OverLink from browser.js
- add/remove event listeners in sync with state of "browser.ml.linkPreview.enabled"
- update all_files_referenced to handle moz-src
Differential Revision: https://phabricator.services.mozilla.com/D239535
Add faders sticky to the top and bottom of provider selection container that avoid overlapping content with extra padding. Adjust margins/heights based on available space. Allow for experimentation with unresponsive pref.
Differential Revision: https://phabricator.services.mozilla.com/D239029
Allow querying int and string prefs too via functional syntax:
```
@media -moz-pref("pref-name", <value>) {
```
No argument means the pref exists and has a non-zero/false/empty value.
Unfortunately stylelint is still unhappy with this so we need to keep
the annoying comments...
Differential Revision: https://phabricator.services.mozilla.com/D237275
Allow querying int and string prefs too via functional syntax:
```
@media -moz-pref("pref-name", <value>) {
```
No argument implies bool. Unfortunately stylelint is still unhappy with
this so we need to keep the annoying comments...
Differential Revision: https://phabricator.services.mozilla.com/D237275
Given the chatbot feature is now enabled by default, the pref being disabled
means explicitly turned off. The shortcut key shouldn't turn it back to on.
Differential Revision: https://phabricator.services.mozilla.com/D236477
Zoom functionality was taken care of in another patch, however there was a new bug in nightly that distorted the formula to create the popup destitation. This patch fixes some scoping issues with the variables to keep the intentional values and produce an accurate placement of the popup
Differential Revision: https://phabricator.services.mozilla.com/D236369
Flip default pref to true and remove featuregate entry/strings/styles. Switch actor enabled to actual opt-in / provider. Update sidebar tests for chatbot as default tool.
Differential Revision: https://phabricator.services.mozilla.com/D233204
The method is equivalent to the `setByteStringData` method on `nsIStringInputStream`, which has been used to replace the `.data` setter in these places. There may still be callers of the `.data` getter/setter, however they aren't easy to find.
Differential Revision: https://phabricator.services.mozilla.com/D232257
The method is equivalent to the `setByteStringData` method on `nsIStringInputStream`, which has been used to replace the `.data` setter in these places. There may still be callers of the `.data` getter/setter, however they aren't easy to find.
Differential Revision: https://phabricator.services.mozilla.com/D232257
- Name of Promopt Option: "Proofread" (subject to change)
- Updated default prefix prompt so it is more robust for LLM to understand what "selection" refers to
- Annotate prompt variables at replacement so we don't have to update l10nId or original prefix string
- Remove unnecessary NBSP
- Remove nightly targeting for proofread
- Update tests in test_build_chat_prompt.js
Differential Revision: https://phabricator.services.mozilla.com/D229954
- Add border radius of 4px to select and buttons
- Add padding left and right for header
- Reduce caret-padding 'cause now we have left-padding from header
- First moz-button should have 4px margin spacing on the right
- Add margin-block: var(--space-xsmall) to select element to make header 40px.
Differential Revision: https://phabricator.services.mozilla.com/D228680
- Use variables from theme for background-color and color in chat-ui
- Changed moz-button to be type of "icon ghost"
- Header background is updated 'cause moz-button bg-color is transparent
- use --button-* token styles for select hover
Differential Revision: https://phabricator.services.mozilla.com/D228456
- Adjust arrow with background-position
- Changes for Eric Pang's design spec, 16px on the left padding, 8px on the gap between caret and text
Differential Revision: https://phabricator.services.mozilla.com/D228106
This was accidentally disabled in bug 1920531 with the re-organisation of how eslint-plugin-mozilla worked.
The rule needs to be (re)enabled after eslint-config-prettier is applied, as eslint-config-prettier turns it off by default.
Differential Revision: https://phabricator.services.mozilla.com/D227621