ampproject / ampproject/amphtml

Google Map with <amp-iframe>

Open
#38,556 2 comments 0 reactions 0 assignees View on GitHub
Component: amp-iframe P3: When Possible Stale Type: Bug WG: components
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

When using amp-iframe to insert a google map and user click on the link to open the map or the streetview to fullscreen into a new tab, the navigator return an error of cross-origin opener policy

### Reproduction Steps

See the issue at https://fenetresdrummond.ca/ the map is located at the bottom of the page in the footer.

### Relevant Logs

_No response_

### Browser(s) Affected

_No response_

### OS(s) Affected

_No response_

### Device(s) Affected

_No response_

### AMP Version Affected

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the error with the amp-iframe example on fenetresdrummond.ca, focusing on the Google Maps and Street View links opened in a new tab. Trace the amp-iframe popup behavior and Cross-Origin-Opener-Policy interaction; the work is done when those links open without the reported cross-origin error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.