Render the Daily Crossword in a sandboxed iframe
Categories
(Firefox :: New Tab Page, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: maxx, Assigned: rhamoui)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 5 obsolete files)
Render the crossword bundle (served via Merino) inside a sandboxed iframe within the widget article.
<iframe sandbox="allow-scripts">(noallow-same-origin) inside<article className="widget">; loading spinner + error/"Try again" states.- Add
frame-src <merino-origin>to the newtab CSP meta tag inprerendered/activity-stream.html(noframe-srcexists today, sodefault-src 'none'currently blocks all iframes). - Add a configurable Merino endpoint pref (following the pattern from the World Cup Widget), defaulting to the staging endpoint
https://stage-games-particle.merino.nonprod.webservices.mozgcp.net/index.html, routed through aresolve*helper that appliestrainhopConfigoverrides (never read the raw pref). The iframesrcreads the resolved value so we can swap staging to prod and trainhop-target it.
Additional notes:
- No client-side caching or puzzle feed in v1: The iframe self-fetches its own puzzle data
- Merino plus the browser HTTP cache handle bundle versioning.
Sample Merino endpoint: https://stage-games-particle.merino.nonprod.webservices.mozgcp.net/index.html
| Assignee | ||
Comment 1•2 months ago
|
||
Updated•2 months ago
|
Backed out for causingg multiple failures on nsContentSecurityUtils.cpp
Backout link
Push with failures
Failure log(s)
| Assignee | ||
Comment 5•2 months ago
•
|
||
The failure log isn't really indicating what the "unexpected exception" is, would you be able to tell me what the error is?
edit: sorry i found it shortly after but forgot to update this comment
| Reporter | ||
Comment 7•2 months ago
|
||
Updated•2 months ago
|
Comment 8•2 months ago
|
||
firefox-release Uplift Approval Request
- User impact if declined/Reason for urgency: New tab will not be able to experiment with the Crossword widget in the en-US market
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: Follow steps in https://phabricator.services.mozilla.com/D309189
- Risk associated with taking this patch: low
- Explanation of risk level: The feature that would use this code change is behind a pref (and off by default)
- String changes made/needed?: No
- Is Android affected?: no
| Reporter | ||
Comment 9•2 months ago
•
|
||
Note that I created a revision for the dom/security/nsContentSecurityUtils.cpp changes to be uplifted to maintain train-hop compatibility.
| Reporter | ||
Comment 10•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 11•2 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: New tab will not be able to experiment with the Crossword widget in the en-US market
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: Follow steps in https://phabricator.services.mozilla.com/D309189
- Risk associated with taking this patch: low
- Explanation of risk level: The feature that would use this code change is behind a pref (and off by default)
- String changes made/needed?: No
- Is Android affected?: no
| Reporter | ||
Comment 12•2 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D311311
Comment 13•2 months ago
|
||
| bugherder | ||
| Reporter | ||
Comment 14•2 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D311311
Updated•2 months ago
|
Comment 15•2 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: New tab will not be able to experiment with the Crossword widget in the en-US market
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: Follow steps in https://phabricator.services.mozilla.com/D309189
- Risk associated with taking this patch: low
- Explanation of risk level: The feature that would use this code change is behind a pref (and off by default)
- String changes made/needed?: No
- Is Android affected?: no
| Reporter | ||
Comment 16•2 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D311311
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Description
•