Closed
Bug 1442992
Opened 8 years ago
Closed 8 years ago
regression: top sites not shown after startup (browser.newtabpage.activity-stream.feeds.section.topstories.options;"")
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox58 | --- | unaffected |
| firefox59 | --- | unaffected |
| firefox60 | --- | fixed |
People
(Reporter: jan, Assigned: andreio)
References
(
URL
)
Details
(Keywords: nightly-community, regression)
Attachments
(4 files, 1 external file)
Top Sites are not immediately shown after startup if browser.newtabpage.activity-stream.feeds.section.topstories.options is set to "" to remove pocket.
I think they appear after a while of using Nightly.
mozregression --good 2018-03-01 --bad 2018-03-03 --pref browser.newtabpage.activity-stream.feeds.section.topstories.options:"" startup.homepage_welcome_url:"about:newtab"
> 5:02.29 INFO: Last good revision: f8688efe482431851107b74a1dd9815f3292a8b7
> 5:02.29 INFO: First bad revision: 930b44b7adc7e26e0b76cb46178489fc2e6704dc
> 5:02.29 INFO: Pushlog:
> https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=f8688efe482431851107b74a1dd9815f3292a8b7&tochange=930b44b7adc7e26e0b76cb46178489fc2e6704dc
(2018-03-02)
> 930b44b7adc7 Kris Maglione — Bug 1441333: Part 6 - Use caller location in error reports for StrongPromise errors. r=zombie
> cf87433f501d Kris Maglione — Bug 1441333: Part 5 - Use proper async caller location in normalizeError. r=zombie
> 47c2e679000f Kris Maglione — Bug 1441333: Part 4 - Add caller location to async API errors. r=zombie
> c21a778bab3d Kris Maglione — Bug 1441333: Part 3 - Add helper to create a JS error with a saved stack. r=bz
> 61f204267373 Kris Maglione — Bug 1441333: Part 2 - Allow passing an error stack to reportError. r=bz
> f9eb113f179f Kris Maglione — Bug 1441333: Part 1 - Add helper to retrieve closest stack frame with a given principal. r=bz
> 4e681b986b5c Kris Maglione — Bug 1440816: Part 1 - Set readPrincipals callback on JS context. r=fitzgen
I don't know which one of those two bugs caused this regression. Please remove the other one.
| Reporter | ||
Comment 1•8 years ago
|
||
browser.newtabpage.activity-stream.feeds.section.topstories.options;{} is fine.
Comment 2•8 years ago
|
||
This is almost certainly unrelated to those changes. They only affect the way we report errors, and should only have any observable effect for WebExtensions (which Activity Streams is not). If it affects them in any way, it would suggest that they're doing something very, very wrong.
| Reporter | ||
Comment 3•8 years ago
|
||
Maybe mozregression was confused by some backouts? At the beginning, when I ran mozregression without that activity-stream pref I noticed that there were some broken builds.
Comment 4•8 years ago
|
||
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #3)
> Maybe mozregression was confused by some backouts? At the beginning, when I
> ran mozregression without that activity-stream pref I noticed that there
> were some broken builds.
That's certainly possible.
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → andrei.br92
| Assignee | ||
Comment 5•8 years ago
|
||
I wasn't able to reproduce the Topsites loading failures in today's m-c, only this weird failure state of the section when option parsing fails.
Can you please confirm?
Flags: needinfo?(jan)
| Reporter | ||
Comment 6•8 years ago
|
||
mozregression --launch 20180305100134 --pref browser.newtabpage.activity-stream.feeds.section.topstories.options:"" startup.homepage_welcome_url:"about:newtab"
Flags: needinfo?(jan)
| Assignee | ||
Comment 7•8 years ago
|
||
| Out-Of-Date | ||
If you pass in "" in mozregression when you call Services.prefs.getStringPref you will get back `""""`. Our pref parser has default argument value of "{}" so if you just pass --pref pref_name= (leave blank) it works as expected.
| Reporter | ||
Comment 8•8 years ago
|
||
> mozregression --launch 20180305100134 --pref browser.newtabpage.activity-stream.feeds.section.topstories.options= startup.homepage_welcome_url:"about:newtab"
doesn't modify browser.newtabpage.activity-stream.feeds.section.topstories.options on about:config.
> mozregression --launch 20180305100134 --pref browser.newtabpage.activity-stream.feeds.section.topstories.options: startup.homepage_welcome_url:"about:newtab"
would be an empty string (like --pref name:"") and looks the same as comment 6.
The regression is that it's no longer able to handle an empty value.
> mozregression --launch 20180305100134 --pref browser.newtabpage.activity-stream.feeds.section.topstories.options:"{}" startup.homepage_welcome_url:"about:newtab"
works as expected. It's just {} as value on about:config.
| Assignee | ||
Comment 9•8 years ago
|
||
Sorry looking more at this there might be something related to the bugs you initially reported. We use `Cu.reportError` in the catch branch where we parse the preferences [0]. It looks like Cu.reportError causes the function to return early. kmag is this expected?
[0] https://github.com/mozilla/activity-stream/blob/d4c5fa7eb6f54b29f08069b313ffa0a8556eca7a/system-addon/lib/SectionsManager.jsm#L119
Flags: needinfo?(kmaglione+bmo)
Comment 10•8 years ago
|
||
Ah. I see. You're passing a second argument to Cu.reportError. That argument used to be ignored. Now it is used, and needs to be a SavedStack it preaent.
Flags: needinfo?(kmaglione+bmo)
Updated•8 years ago
|
Iteration: --- → 60.4 - Mar 12
Priority: -- → P1
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/activity-stream
https://github.com/mozilla/activity-stream/commit/138063d4668b8705da3b46ab2590c575e0af8534
Fix Bug 1442992 - Remove second argument from Cu.reportError call.
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Comment 13•8 years ago
|
||
Target Milestone: --- → Firefox 60
Updated•7 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
•