Related articles are not opening on click
Categories
(Firefox :: New Tab Page, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | verified |
People
(Reporter: Gabi, Assigned: maxx)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
Affected versions
- Firefox Nightly 154.0a1
Affected platforms
- Windows 11 x64
Untested platforms
macOS, Ubuntu
Steps to reproduce
- Enable the crossword widget
- Click the links from related articles
Expected result
- Particle article should open in new tab
Actual result
- Articles are not opening on click
- Articles are opened from context menu - open link in a new tab
Regression range
- New feature
Additional notes
- See the attached screencast
Updated•1 month ago
|
Updated•1 month ago
|
Comment 1•1 month ago
|
||
I believe this is because the links target "_blank", and our sandboxing on the iframe doesn't have allow-popups: https://searchfox.org/firefox-main/rev/7d5b291d2351f7d04c504b03fa22ec3dcdf81b54/browser/extensions/newtab/content-src/components/Widgets/Crossword/Crossword.jsx#187
| Assignee | ||
Updated•1 month ago
|
Comment 2•1 month ago
|
||
from Particle:
update the iframe sandbox from:
sandbox="allow-scripts allow-same-origin" to:
sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"
allow-popups enables the new tab, while allow-popups-to-escape-sandbox prevents the Particle article from inheriting the widget’s sandbox restrictions.
| Assignee | ||
Comment 3•1 month ago
|
||
Comment 6•1 month ago
|
||
| bugherder | ||
Comment 7•1 month ago
|
||
| bugherder | ||
| Reporter | ||
Comment 8•1 month ago
|
||
Verified as fixed in Firefox 154.0a1 and Firefox 152.0.6 train hop addon.
| Reporter | ||
Updated•1 month ago
|
Description
•