From f72ba695e4d6d4dd74ee71a2cc3b774410acd1ea Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 16 Jan 2024 03:45:49 +0100 Subject: [PATCH] Remove long gone WebExtensions features (#30431) * Remove long gone WebExtensions features * Address review feedback --- files/en-us/_wikihistory.json | 4 - .../webextensions/api/downloads/drag/index.md | 63 --------- .../webextensions/api/downloads/index.md | 2 - .../manifest.json/theme/index.md | 121 +----------------- ...{theme-accentcolor.png => theme-frame.png} | Bin ...olor.png => theme-tab_background_text.png} | Bin 6 files changed, 4 insertions(+), 186 deletions(-) delete mode 100644 files/en-us/mozilla/add-ons/webextensions/api/downloads/drag/index.md rename files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/{theme-accentcolor.png => theme-frame.png} (100%) rename files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/{theme-textcolor.png => theme-tab_background_text.png} (100%) diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index e79eab45bc91190..6539125f5784c6f 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -12954,10 +12954,6 @@ "aswan" ] }, - "Mozilla/Add-ons/WebExtensions/API/downloads/drag": { - "modified": "2020-10-15T21:44:35.541Z", - "contributors": ["wbamberg", "Makyen", "chrisdavidmills"] - }, "Mozilla/Add-ons/WebExtensions/API/downloads/erase": { "modified": "2020-10-15T21:44:38.278Z", "contributors": ["wbamberg", "Makyen", "chrisdavidmills"] diff --git a/files/en-us/mozilla/add-ons/webextensions/api/downloads/drag/index.md b/files/en-us/mozilla/add-ons/webextensions/api/downloads/drag/index.md deleted file mode 100644 index b0803c673de8e50..000000000000000 --- a/files/en-us/mozilla/add-ons/webextensions/api/downloads/drag/index.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: downloads.drag() -slug: Mozilla/Add-ons/WebExtensions/API/downloads/drag -page-type: webextension-api-function -browser-compat: webextensions.api.downloads.drag ---- - -{{AddonSidebar()}} - -The **`drag()`** function of the {{WebExtAPIRef("downloads")}} API initiates dragging the downloaded file to another application. - -## Syntax - -```js-nolint -chrome.downloads.drag( - downloadId // integer -) -``` - -This API is also available as `browser.downloads.drag()`. - -### Parameters - -- `downloadId` - - : An `integer` representing the `id` of the {{WebExtAPIRef("downloads.DownloadItem", "DownloadItem")}} in question. - -## Browser compatibility - -{{Compat}} - -{{WebExtExamples}} - -> **Note:** This API is based on Chromium's [`chrome.downloads`](https://developer.chrome.com/docs/extensions/reference/downloads/#method-drag) API. - - diff --git a/files/en-us/mozilla/add-ons/webextensions/api/downloads/index.md b/files/en-us/mozilla/add-ons/webextensions/api/downloads/index.md index d9f1b9670af7fe1..ebf7a939c3dac81 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/downloads/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/downloads/index.md @@ -60,8 +60,6 @@ To use this API you need to have the "downloads" [API permission](/en-US/docs/Mo - : Removes a downloaded file from disk, but not from the browser's download history. - {{WebExtAPIRef("downloads.acceptDanger()")}} - : Prompts the user to accept or cancel a dangerous download. -- {{WebExtAPIRef("downloads.drag()")}} - - : Initiates dragging the downloaded file to another application. - {{WebExtAPIRef("downloads.setShelfEnabled()")}} - : Enables or disables the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. diff --git a/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/index.md b/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/index.md index 15711c7dd38c490..6d96f16b7b99e37 100644 --- a/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/index.md @@ -126,36 +126,6 @@ Images should be 200 pixels high to ensure they always fill the header space ver - - headerURL {{Deprecated_Inline}} - String - -
-

- Warning: headerURL has been removed in - Firefox 70. You will begin to get warnings in Firefox 65 and later - if you load a theme that uses this property. Use - theme_frame instead. -

-
-

- The URL of a foreground image to be added to the header area and - anchored to the upper right corner of the header area. -

-

- Optional in desktop Firefox from Firefox 60 onwards. One of - theme_frame or headerURL had to be specified - before Firefox 60. Note also that in Firefox 60 onwards, any - {{cssxref("text-shadow")}} applied to the header text is - removed if no headerURL is specified (see - [Firefox bug 1404688](https://bugzil.la/1404688)). -

-

- In Firefox for Android, headerURL or - theme_frame must be specified. -

- - theme_frame String @@ -172,13 +142,7 @@ Images should be 200 pixels high to ensure they always fill the header space ver

- Optional in desktop Firefox 60 onwards. One of - theme_frame or headerURL had to be specified - before Firefox 60. -

-

- In Firefox for Android, headerURL or - theme_frame must be specified. + Optional in desktop Firefox 60 onwards. Required in Firefox for Android.

@@ -213,7 +177,7 @@ Images should be 200 pixels high to ensure they always fill the header space ver ### colors -These properties define the colors used for different parts of the browser. They are all optional (but note that `"accentcolor"` and `"textcolor"` were mandatory in Firefox before version 63). How these properties affect the Firefox UI is shown here: +These properties define the colors used for different parts of the browser. They are all optional. How these properties affect the Firefox UI is shown here: @@ -251,38 +215,6 @@ All these properties can be specified as either a string containing any valid [C - - - - @@ -819,7 +751,7 @@ All these properties can be specified as either a string containing any valid [C } -

A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are white with red icons and red text. The color of the text in the open tab is red. The text color contrasts well with the black background color of the tab.

+

A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are white with red icons and red text. The color of the text in the open tab is red. The text color contrasts well with the black background color of the tab.

@@ -901,10 +833,6 @@ All these properties can be specified as either a string containing any valid [C frame_inactive.

-

- From Firefox 55 to 58, it is incorrectly implemented as alias for - "textcolor" -

See example
@@ -924,33 +852,6 @@ All these properties can be specified as either a string containing any valid [C
         

Browser firefox has a picture of an insect theme. URL bar is lighter grey with white icons. The selected tab text is red with white background.

- - - -
-

accentcolor {{Deprecated_Inline}}

-
-
-

- Warning: accentcolor has been removed - in Firefox 70. You will begin to get warnings in Firefox 65 and - later if you load a theme that uses this property. Use the - frame property instead. -

-
-

- The color of the header area background, displayed in the part of the - header not covered or visible through the images specified in - "headerURL" and "additional_backgrounds". -

-
- See example -
-"theme": {
-  "colors": {
-     "accentcolor": "red",
-     "tab_background_text": "white"
-  }
-}
-
-

Browser firefox is red with white text. Browsers tabs are lighter red, also with white text. URL bar is very light red with black text

-
bookmark_text @@ -441,7 +373,7 @@ All these properties can be specified as either a string containing any valid [C } -

Browser firefox is red with white text. Browsers tabs are lighter red, also with white text. URL bar is very light red with black text

+

Browser firefox is red with white text. Browsers tabs are lighter red, also with white text. URL bar is very light red with black text

textcolor {{Deprecated_Inline}} -
-

- Warning: textcolor has been removed in - Firefox 70. You will begin to get warnings in Firefox 65 and later - if you load a theme that uses this property. Use - tab_background_text instead. -

-
-

The color of the text displayed in the header area.

-
- See example -
-"theme": {
-  "colors": {
-    "frame": "black",
-    "toolbar": "white",
-    "textcolor": "red"
-  }
-}
-
-

Browser firefox is black. Browser's tab and URL bar are white with red text and red icons.

-
toolbar @@ -1342,8 +1243,6 @@ All these properties can be specified as either a string containing any valid [C Additionally, this key accepts various properties that are aliases for one of the properties above. These are provided for compatibility with Chrome. If an alias is given, and the non-alias version is also given, then the value will be taken from the non-alias version. -> **Warning:** Beginning Firefox 70, the following properties are removed: `accentcolor` and `textcolor`. Use `frame` and `tab_background_text` instead. Using these values in themes loaded into Firefox 65 or later will raise warnings. - @@ -1356,18 +1255,6 @@ Additionally, this key accepts various properties that are aliases for one of th - - - - - - - - - - - -
bookmark_text toolbar_text
frameaccentcolor {{Deprecated_Inline}}
frame_inactiveaccentcolor {{Deprecated_Inline}}
tab_background_texttextcolor {{Deprecated_Inline}}
diff --git a/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-accentcolor.png b/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-frame.png similarity index 100% rename from files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-accentcolor.png rename to files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-frame.png diff --git a/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-textcolor.png b/files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-tab_background_text.png similarity index 100% rename from files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-textcolor.png rename to files/en-us/mozilla/add-ons/webextensions/manifest.json/theme/theme-tab_background_text.png