Closed
Bug 1438367
Opened 8 years ago
Closed 8 years ago
Make about:home and about:newtab use the same nsIAboutModule flags
Categories
(Firefox :: New Tab Page, enhancement, P3)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
Firefox 62
People
(Reporter: Mardak, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Keywords: sec-low, Whiteboard: [fixed by bug 1461407][adv-main61-])
Attachments
(1 file)
In bug 1433324 we attempted to share the same flags between about:home and about:newtab
+static const uint32_t ACTIVITY_STREAM_FLAGS =
+ nsIAboutModule::ALLOW_SCRIPT |
+ nsIAboutModule::ENABLE_INDEXED_DB |
+ nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
+ nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT;
Notably, MAKE_LINKABLE was removed from about:home as it wasn't on about:newtab.
Gijs noted that switching will require migrating the indexeddb store on one of the two possible pages as they're two different origins (moz-safe-about:home and about:newtab moving to potentially about:home or moz-safe-about:newtab).
> if we only get 1 option for linkable/unlinkable, then unlinkable is definitely the right choice, and picking linkable would break about:newtab's storage, picking unlinkable would break about:home's storage
> we could try to come up with a migration for the data we're breaking, I guess
I believe things will "work" without migration, but data could be lost, e.g., blocked snippets forgotten.
A related issue is that we're running into this because we have both about:home and about:newtab. Where going with just one of them could avoid some of the problems.
| Assignee | ||
Comment 1•8 years ago
|
||
If we fix the syncing then presumably we can get rid of things relatively painlessly by just copying the data from the about:newtab store...
See Also: → 1438368
Updated•8 years ago
|
Updated•8 years ago
|
Iteration: 61.1 - Mar 26 → ---
| Reporter | ||
Updated•8 years ago
|
Iteration: --- → 61.2 - Apr 9
Priority: P3 → P2
| Reporter | ||
Updated•8 years ago
|
Severity: normal → enhancement
Updated•8 years ago
|
Iteration: 61.2 - Apr 9 → 61.3 - Apr 23
Updated•8 years ago
|
Iteration: 61.3 - Apr 23 → 61.4 - May 7
Updated•8 years ago
|
Iteration: 61.4 - May 7 → 62.1 - May 21
| Reporter | ||
Updated•8 years ago
|
Priority: P2 → P3
| Reporter | ||
Comment 2•8 years ago
|
||
k88hudson, with bug 1438368 storing snippets block list in main ActivityStreamStorage/indexeddb, is the one in content still being used? If so, if we remove MAKE_LINKABLE from about:home, would the data from main get synced to the about:home origin (and just ignore the data in moz-safe-about:home origin)?
Flags: needinfo?(khudson)
Comment 3•8 years ago
|
||
This is a bug, not an enhancement--about:home should not be linkable.
Severity: enhancement → normal
Keywords: sec-low
Comment 4•8 years ago
|
||
The blocklist in indexedDB in content is just a mirror of of the blocklist that comes from ActivityStreamStorage, so changing the origin should be fine. indexedDB in content is still depended on for caching the response from the snippets server, but it gets replaced every four hours anyway.
Flags: needinfo?(khudson)
| Reporter | ||
Comment 5•8 years ago
|
||
Gijs, given comment 4, is it okay to remove MAKE_LINKABLE that we split off from bug 1433324? I don't quite recall if that was the only concern then…
I pushed to try the ACTIVITY_STREAM_FLAGS part that was removed from the original patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a8a60a66fcbb5071e6da786ce13e1defe3d50a9a
Flags: needinfo?(gijskruitbosch+bugs)
| Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Ed Lee :Mardak from comment #5)
> Gijs, given comment 4, is it okay to remove MAKE_LINKABLE that we split off
> from bug 1433324? I don't quite recall if that was the only concern then…
I think so. It's possible some tests might complain; I don't know off-hand but I'm sure your trypush will clarify that soon enough. :-)
If we don't already, we should probably make sure we have a follow-up to merge the two URLs. There's not really a great reason to have two anymore. :-)
Flags: needinfo?(gijskruitbosch+bugs)
| Reporter | ||
Comment 7•8 years ago
|
||
(In reply to :Gijs (he/him; out 3-8 May) from comment #6)
> but I'm sure your trypush will clarify that soon enough. :-)
I believe I already fixed up tests that expected about:home to be linkable in the previous bug, and try seems to be good.
> If we don't already, we should probably make sure we have a follow-up to merge the two URLs. There's not really a great reason to have two anymore. :-)
Filed bug 1458933
| Comment hidden (mozreview-request) |
| Reporter | ||
Comment 9•8 years ago
|
||
I grabbed a build from the trypush and confirmed that opening page info says it's about:blank instead of about:home.
| Assignee | ||
Comment 10•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8972912 [details]
Bug 1438367 - Make about:home and about:newtab use the same nsIAboutModule flags.
https://reviewboard.mozilla.org/r/241460/#review247520
Attachment #8972912 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 11•8 years ago
|
||
Pushed by edilee@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2a5a941c2db9
Make about:home and about:newtab use the same nsIAboutModule flags. r=Gijs
Comment 12•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Updated•8 years ago
|
Assignee: nobody → edilee
| Reporter | ||
Comment 13•8 years ago
|
||
This got reverted on 62 and 61 when trying to fix bug 1459655 crash.
Assignee: edilee → nobody
Status: RESOLVED → REOPENED
Iteration: 62.1 - May 21 → ---
status-firefox62:
--- → affected
Resolution: FIXED → ---
Target Milestone: Firefox 61 → ---
| Reporter | ||
Comment 14•8 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Depends on: 1461407
Resolution: --- → FIXED
Whiteboard: [fixed by bug 1461407]
| Assignee | ||
Updated•8 years ago
|
Target Milestone: --- → Firefox 62
Updated•8 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Comment 15•8 years ago
|
||
Re-landed for 61 in bug 1461407.
Updated•8 years ago
|
Whiteboard: [fixed by bug 1461407] → [fixed by bug 1461407][adv-main61-]
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
•