Closed
Bug 1436165
Opened 7 years ago
Closed 7 years ago
Change extensionControlled strings for home page and new tab page
Categories
(WebExtensions :: Frontend, enhancement, P3)
WebExtensions
Frontend
Tracking
(firefox60 verified)
VERIFIED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | verified |
People
(Reporter: bsilverberg, Assigned: bsilverberg)
References
Details
Attachments
(2 files)
This is a follow-up to bug 1429593 to make changes to two existing strings.
As per the comment at https://bugzilla.mozilla.org/show_bug.cgi?id=1429593#c57, the new strings should be:
"An extension, <icon> <insert name of extension>, is controlling your New Tab page."
"An extension, <icon> <insert name of extension>, is controlling your Home page."
This will require some changes to the code as well, as currently the code assumes the string ID is the same as the settingName, but we will need to change the ID when we change the strings.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8949121 [details]
Bug 1436165 - Change extensionControlled strings for home page and new tab page
https://reviewboard.mozilla.org/r/218524/#review224380
::: browser/components/preferences/in-content/main.js:365
(Diff revision 1)
>
> - handleControllingExtension(URL_OVERRIDES_TYPE, NEW_TAB_KEY);
> + handleControllingExtension(
> + URL_OVERRIDES_TYPE, NEW_TAB_KEY, NEW_TAB_STRING_ID);
> let newTabObserver = {
> observe(subject, topic, data) {
> - handleControllingExtension(URL_OVERRIDES_TYPE, NEW_TAB_KEY);
> + handleControllingExtension(
nit: Looks like you didn't change this but this line is indented too far
Attachment #8949121 -
Flags: review?(mstriemer) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•7 years ago
|
||
Jared, I think gandalf is eagerly awaiting the landing of this, as it's blocking bug 1424682, so if you have time to look at it today that would be great, thanks.
Flags: needinfo?(jaws)
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8949121 [details]
Bug 1436165 - Change extensionControlled strings for home page and new tab page
https://reviewboard.mozilla.org/r/218524/#review225824
::: browser/components/preferences/in-content/extensionControlled.js:150
(Diff revision 2)
> // Remove the old content from the description.
> while (description.firstChild) {
> description.firstChild.remove();
> }
>
> + stringId = stringId || `extensionControlled.${settingName}`;
You can move this in to the function signature as a default argument for stringId.
```js
async function showControllingExtension(settingName, addon, stringId = `extensionControlled.${settingName}`) {
```
Attachment #8949121 -
Flags: review?(jaws) → review+
Updated•7 years ago
|
Flags: needinfo?(jaws)
Comment hidden (mozreview-request) |
Pushed by bsilverberg@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1abd8bf0d997
Change extensionControlled strings for home page and new tab page, r=jaws,mstriemer
Comment 8•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
I can reproduce this issue on Firefox 58.0.2 (20180206200532) under Windows 7 64-bit and Mac OS 10.13.2.
The next strings are displayed:
"An extension, <icon> <insert name of extension>, controls your New Tab page."
"An extension, <icon> <insert name of extension>, controls your Home page."
This issue is verified as fixed on Firefox 60.0a1 (20180222101929) under Windows 7 64-bit and Mac OS X 10.13.2.
Please see the attached screenshot.
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•