New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
browser_style deprecated in MV3 #26642
Changes from 5 commits
7c652c5
0f93563
6adfcc8
c654438
3c0f238
59269ff
1c5f3d7
418d526
9292afa
05d6c1e
15f0bd4
310a450
b73f35e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,38 +72,36 @@ The `action` key is an object that may have any of these properties, all optiona | |
<tbody> | ||
<tr> | ||
<td> | ||
<code | ||
><a | ||
href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles" | ||
>browser_style</a | ||
></code | ||
> | ||
<code> | ||
<a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles"> | ||
browser_style | ||
</a> | ||
</code> | ||
<br />{{optional_inline}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All other keys are also optional. For consistency, add this label to the other |
||
<br />{{deprecated_inline}} | ||
</td> | ||
<td><code>Boolean</code></td> | ||
<td> | ||
<p>Optional, defaulting to <code>false</code>.</p> | ||
<p> | ||
Use this to include a stylesheet in your popup that will make its look | ||
consistent with the browser's UI and with other extensions that use | ||
the <code>browser_style</code> property. Although this key defaults to | ||
<code>false</code>, it's recommended that you include it and set it to | ||
<code>true</code> in order to make your popups consistent with the | ||
look of the rest of the browser user interface. | ||
Use this to include a stylesheet in your popup that makes it look | ||
consistent with the browser's UI and other extensions that use | ||
the <code>browser_style</code> property. | ||
rebloor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</p> | ||
<p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove everything else in this cell (besides the depreciation notice above), until the closing |
||
In Firefox, the stylesheet can be seen at | ||
chrome://browser/content/extension.css, or | ||
chrome://browser/content/extension.css or | ||
chrome://browser/content/extension-mac.css on macOS. When setting | ||
dimensions, be aware that this style sheet currently sets | ||
dimensions, be aware that this style sheet sets | ||
<code>box-sizing: border-box</code> (see | ||
<a href="/en-US/docs/Web/CSS/box-sizing">box-sizing</a>). | ||
</p> | ||
<p> | ||
<a | ||
href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles" | ||
>Browser styles</a | ||
> describes the classes you can apply to elements in the popup in | ||
order to get particular styles. | ||
> describes the classes you can apply to elements in the popup | ||
to get particular styles. | ||
</p> | ||
<p> | ||
The | ||
|
@@ -118,12 +116,12 @@ The `action` key is an object that may have any of these properties, all optiona | |
<strong>Note:</strong> Setting <code>browser_style</code> to | ||
<code>true</code> prevents users from selecting text in an | ||
extension's popup or sidebar content. This is normal behavior. You | ||
can't select parts of the UI in the browser. However, You can work | ||
can't select parts of the UI in the browser. However, you can work | ||
around this limitation to allow your users to select text in two | ||
ways: | ||
</p> | ||
<ol> | ||
<li>Set <code>browser_style</code> to <code>false</code></li> | ||
<li>Set <code>browser_style</code> to <code>false</code>.</li> | ||
<li> | ||
Use CSS styling on the body of your sidebar or popup's HTML to | ||
allow text selection by adding the rule | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 29: remove browser_style from example. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,38 +72,35 @@ The `browser_action` key is an object that may have any of the following propert | |
<tbody> | ||
<tr> | ||
<td> | ||
<code | ||
><a | ||
href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles" | ||
>browser_style</a | ||
></code | ||
> | ||
<code> | ||
<a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles"> | ||
browser_style | ||
</a> | ||
</code> | ||
<br />{{optional_inline}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All other keys are optional, add the optional label to |
||
</td> | ||
<td><code>Boolean</code></td> | ||
<td> | ||
<p>Optional, defaulting to <code>false</code>.</p> | ||
<p> | ||
Use this to include a stylesheet in your popup that will make its look | ||
consistent with the browser's UI and with other extensions that use | ||
the <code>browser_style</code> property. Although this key defaults to | ||
<code>false</code>, it's recommended that you include it and set it to | ||
<code>true</code> in order to make your popups consistent with the | ||
look of the rest of the browser user interface. | ||
Use this to include a stylesheet in your popup that makes it look | ||
consistent with the browser's UI and other extensions that use | ||
the <code>browser_style</code> property. | ||
</p> | ||
<p> | ||
In Firefox, the stylesheet can be seen at | ||
chrome://browser/content/extension.css, or | ||
chrome://browser/content/extension.css or | ||
chrome://browser/content/extension-mac.css on macOS. When setting | ||
dimensions, be aware that this style sheet currently sets | ||
dimensions, be aware that this style sheet sets | ||
<code>box-sizing: border-box</code> (see | ||
<a href="/en-US/docs/Web/CSS/box-sizing">box-sizing</a>). | ||
</p> | ||
<p> | ||
<a | ||
href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles" | ||
>Browser styles</a | ||
> describes the classes you can apply to elements in the popup in | ||
order to get particular styles. | ||
> describes the classes you can apply to elements in the popup | ||
to get particular styles. | ||
</p> | ||
<p> | ||
The | ||
|
@@ -118,12 +115,12 @@ The `browser_action` key is an object that may have any of the following propert | |
<strong>Note:</strong> Setting <code>browser_style</code> to | ||
<code>true</code> prevents users from selecting text in an | ||
extension's popup or sidebar content. This is normal behavior. You | ||
can't select parts of the UI in the browser. However, You can work | ||
can't select parts of the UI in the browser. However, you can work | ||
around this limitation to allow your users to select text in two | ||
ways: | ||
</p> | ||
<ol> | ||
<li>Set <code>browser_style</code> to <code>false</code></li> | ||
<li>Set <code>browser_style</code> to <code>false</code>.</li> | ||
<li> | ||
Use CSS styling on the body of your sidebar or popup's HTML to | ||
allow text selection by adding the rule | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,27 +60,31 @@ The `options_ui` key is an object with the following contents: | |
<tbody> | ||
<tr> | ||
<td> | ||
<code | ||
><a | ||
href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles" | ||
>browser_style</a | ||
></code | ||
><br />{{optional_inline}} | ||
<code> | ||
<a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles"> | ||
browser_style | ||
</a> | ||
</code> | ||
<br />{{optional_inline}} | ||
<br />{{deprecated_inline}} in Manifest V3. | ||
</td> | ||
<td><code>Boolean</code></td> | ||
<td> | ||
<p>Defaults to <code>true</code>.</p> | ||
<p>Optional, defaulting to:</p> | ||
<ul> | ||
<li><code>true</code> in Manifest V2 and prior to Firefox 115 in Manifest V3.</li> | ||
<li><code>false</code> in Manifest V3 from Firefox 115.</li> | ||
</ul> | ||
<p> | ||
Use this to include a stylesheet in your page that will make it look | ||
consistent with the browser's UI and with other extensions that use | ||
the <code>browser_style</code> property. Although it defaults to | ||
<code>true</code>, it's recommended that you include this property. | ||
Use this to include a stylesheet in your page that makes it look | ||
consistent with the browser's UI and other extensions that use | ||
the <code>browser_style</code> property. | ||
</p> | ||
<p> | ||
In Firefox, the stylesheet can be seen at | ||
<code>chrome://browser/content/extension.css</code>, or | ||
<code>chrome://browser/content/extension.css</code> or | ||
<code>chrome://browser/content/extension-mac.css</code> on macOS. When | ||
setting dimensions, be aware that this style sheet currently sets | ||
setting dimensions, be aware that this style sheet sets | ||
<code>box-sizing: border-box</code> (see | ||
<a href="/en-US/docs/Web/CSS/box-sizing">box-sizing</a>). | ||
</p> | ||
|
@@ -91,7 +95,7 @@ The `options_ui` key is an object with the following contents: | |
href="https://acorn.firefox.com/latest/acorn.html" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This recommendation does not make sense in the context of Let's keep the references to the "browser styles" article, and expand the article with a section that references acorn for people interested in that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment here also applies to sidebar_action and page_action, which has similar text. |
||
>Firefox Style Guide</a | ||
> | ||
describes the classes you can apply to elements in the popup in order | ||
describes the classes you can apply to elements in the popup | ||
to get particular styles. | ||
</p> | ||
</td> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,26 +63,31 @@ The `sidebar_action` key is an object that may have any of the properties listed | |
<tbody> | ||
<tr> | ||
<td> | ||
<code | ||
><a | ||
href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles" | ||
>browser_style</a | ||
></code | ||
> | ||
<code> | ||
<a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles"> | ||
browser_style | ||
</a> | ||
</code> | ||
<br />{{optional_inline}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, add optional to every other key except for |
||
<br />{{deprecated_inline}} in Manifest V3. | ||
</td> | ||
<td><code>Boolean</code></td> | ||
<td> | ||
<p>Optional, defaulting to <code>true</code>.</p> | ||
<p>Optional, defaulting to:</p> | ||
<ul> | ||
<li><code>true</code> in Manifest V2 and prior to Firefox 115 in Manifest V3.</li> | ||
<li><code>false</code> in Manifest V3 from Firefox 115.</li> | ||
</ul> | ||
<p> | ||
Use this to include a stylesheet in your popup that will make it look | ||
consistent with the browser's UI and with other extensions that use | ||
Use this to include a stylesheet in your popup that makes it look | ||
consistent with the browser's UI and other extensions that use | ||
the <code>browser_style</code> property. | ||
</p> | ||
<p> | ||
In Firefox, the stylesheet can be seen at | ||
chrome://browser/content/extension.css, or | ||
chrome://browser/content/extension.css or | ||
chrome://browser/content/extension-mac.css on macOS. When setting | ||
dimensions, be aware that this style sheet currently sets | ||
dimensions, be aware that this style sheet sets | ||
<code>box-sizing: border-box</code> (see | ||
<a href="/en-US/docs/Web/CSS/box-sizing">box-sizing</a>). | ||
</p> | ||
|
@@ -93,8 +98,8 @@ The `sidebar_action` key is an object that may have any of the properties listed | |
href="https://firefoxux.github.io/StyleGuide/#/controls" | ||
>Firefox Style Guide</a | ||
> | ||
describes the classes you can apply to elements in the sidebar in | ||
order to get particular styles. | ||
describes the classes you can apply to elements in the sidebar | ||
to get particular styles. | ||
</p> | ||
</td> | ||
</tr> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 29: remove
browser_style
from the example.This also applies to the browser_action and page_action articles.