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)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 62
Tracking Status
firefox60 --- wontfix
firefox61 --- fixed
firefox62 --- fixed

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.
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
Iteration: --- → 61.1 - Mar 26
Priority: -- → P3
Iteration: 61.1 - Mar 26 → ---
Iteration: --- → 61.2 - Apr 9
Priority: P3 → P2
Severity: normal → enhancement
Iteration: 61.2 - Apr 9 → 61.3 - Apr 23
Iteration: 61.3 - Apr 23 → 61.4 - May 7
Iteration: 61.4 - May 7 → 62.1 - May 21
Priority: P2 → P3
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)
This is a bug, not an enhancement--about:home should not be linkable.
Severity: enhancement → normal
Keywords: sec-low
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)
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)
(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)
Blocks: 1458933
(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
I grabbed a build from the trypush and confirmed that opening page info says it's about:blank instead of about:home.
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+
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
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Assignee: nobody → edilee
Depends on: 1459655
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 → ---
Resolution: FIXED → ---
Target Milestone: Firefox 61 → ---
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Depends on: 1461407
Resolution: --- → FIXED
Whiteboard: [fixed by bug 1461407]
Target Milestone: --- → Firefox 62
Assignee: nobody → gijskruitbosch+bugs
Whiteboard: [fixed by bug 1461407] → [fixed by bug 1461407][adv-main61-]
Depends on: 1521730
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: