Add support to open about:welcome using about:messagepreview
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
People
(Reporter: aminomancer, Assigned: emcminn)
References
(Blocks 2 open bugs)
Details
Attachments
(2 obsolete files)
Investigate what needs to change to support tweaking about:welcome through about:messagepreview
Reporter | ||
Comment 1•2 years ago
|
||
I'll probably look into this and the CFR one next week
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 3•2 years ago
|
||
I'll look at this again in a week, but if someone else wants to work on this before then, feel free. Keep in mind it's a P5 so, uber backlog.
The gist of our discussion on this was that allowing about:messagepreview to communicate with about:welcome requires pretty complex changes, so it would be better to take a simpler approach:
- Add
"about:welcome?*"
to the AboutWelcome JSActor'smatches
array, and add some new logic to AboutWelcomeChild.jsm so that it checks the URL search params for a base64-encoded message, and uses it to override the content if a message param is found. Then, about:messagepreview can just redirect toabout:welcome?message=*
when it receives a message with aboutwelcome template. This has the advantage that everything works basically as expected since the message is displaying in the same environment in which it will be displayed when we actually deploy it. I actually can't think of a major drawback to this, so if you're looking into it, I think this one is worth trying. - Have about:messagepreview basically convert about:welcome messages into spotlight messages. This works and barret made a working python script for this - it would be pretty simple to do the same in JS. The main drawback here is that aboutwelcome messages' backdrops don't seem to work correctly in spotlights, though we could investigate and resolve that issue.
Assignee | ||
Comment 4•11 months ago
|
||
I've implemented this from the Skylight end by creating a modified Spotlight for about:welcome messages to be rendered inside. The attached about:messagepreview
patch just adds a binary decoding function, to allow for localized messages with non-latin1 text (like our ru
or zh-CN
localized surveys).
Assignee | ||
Comment 5•11 months ago
|
||
Assignee | ||
Comment 6•11 months ago
|
||
Moving the binary patch into a new bug for clarity :)
Comment 7•11 months ago
|
||
Comment on attachment 9392553 [details]
Bug 1821824 - Allow about:messagepreview to decode non-latin text
Revision D205344 was moved to bug 1886856. Setting attachment 9392553 [details] to obsolete.
Assignee | ||
Comment 8•11 months ago
|
||
Work was done in a Skylight PR here:
https://github.com/mozilla/skylight/pull/115
The required support for about:messagepreview was done in the blocking bug, 1886856.
Description
•