Closed
Bug 1454344
Opened 7 years ago
Closed 7 years ago
Setting New tabs to |Blank Page| does not become effective until the 2nd new tab
Categories
(Firefox :: New Tab Page, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox59 | --- | unaffected |
firefox60 | --- | unaffected |
firefox61 | --- | fixed |
People
(Reporter: alice0775, Assigned: Mardak)
References
Details
Attachments
(1 file)
STR
1. Open about:preferences > Home
2. Set New tabs to |Blank Page|
3. Click [+] button in tab strip
Actual Results:
Default page(i.e., top site etc..) is displayed
Expected Results:
Blank page
Updated•7 years ago
|
Severity: minor → normal
OS: Windows 10 → All
Summary: Set New tabs to |Blank Page| does not become effective → Setting New tabs to |Blank Page| does not become effective until the 2nd new tab
Updated•7 years ago
|
Iteration: --- → 61.4 - May 7
Priority: -- → P2
Assignee | ||
Comment 1•7 years ago
|
||
Probably just need to call removePreloadedBrowser from somewhere.. for every window. The preferences code is in content, so it would need to message. Could watch for a specific pref change from each browser window? Or I suppose activity stream could watch for pref change and iterate over windows.
k88hudson, any suggestions?
Flags: needinfo?(khudson)
Comment 2•7 years ago
|
||
I'd probably go with the approach of listening to the pref change in Activity Stream code and iterating over windows, yeah. I remember this causing weird test failures when we tried to do this before, but I'm not sure.
Does this happen with enabling an web extension that overrides new tab as well?
Flags: needinfo?(khudson)
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Kate Hudson :k88hudson from comment #2)
> Does this happen with enabling an web extension that overrides new tab as
> well?
Looks like no. Not sure if there's special code already to update the preloaded browser. Although this gets me thinking maybe we should react to changes from aboutNewTabService instead of activity stream code.
Assignee: nobody → edilee
Assignee | ||
Comment 4•7 years ago
|
||
Oh, turns out when an extension overrides, a new tab is used and not the preloaded one
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8970754 [details]
Bug 1454344 - Setting New tabs to |Blank Page| does not become effective until the 2nd new tab.
https://reviewboard.mozilla.org/r/239500/#review245434
::: browser/components/preferences/in-content/tests/browser_newtab_menu.js:13
(Diff revision 2)
> + menuItem.dispatchEvent(cmdEvent);
> + }
> +
> + const newtabMenu = doc.getElementById("newTabMode");
> + const menuItems = newtabMenu.querySelectorAll("menuitem");
> + ok(menuItems[0].selected, "The first item, Home (default), is selected.");
I don't suppose there's a way to select by id or something? Index seems a bit fragile
Attachment #8970754 -
Flags: review?(khudson) → review+
Comment 8•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8970754 [details]
Bug 1454344 - Setting New tabs to |Blank Page| does not become effective until the 2nd new tab.
https://reviewboard.mozilla.org/r/239500/#review245434
Clever!
Comment hidden (mozreview-request) |
Assignee | ||
Comment 10•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8970754 [details]
Bug 1454344 - Setting New tabs to |Blank Page| does not become effective until the 2nd new tab.
https://reviewboard.mozilla.org/r/239500/#review245434
> I don't suppose there's a way to select by id or something? Index seems a bit fragile
I switched the list to
```js
const menuHome = doc.querySelector(`#newTabMode menuitem[value="0"]`);
const menuBlank = doc.querySelector(`#newTabMode menuitem[value="1"]`);
```
Comment 11•7 years ago
|
||
Pushed by edilee@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/733115bbb9b5
Setting New tabs to |Blank Page| does not become effective until the 2nd new tab. r=k88hudson
Comment 12•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•