-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong 3P frame.html loaded when testing local compiled binary #12439
Comments
@lannka Setting Can you provide some context for why you expect |
I do expect And I agree the fix should be somewhere getAdsLocalhost. What is unclear to me is the current relation between If we can consolidate these 2 variables, then we can probably get rid of this getAdsLocalhost function. |
I'm adding @bradfrizzell for comment. Yes, this bug was exposed by #12152. The issue is captured under #12054 (comment), and is assigned to @bradfrizzell for a fix. @lannka, some observations:
At this point, a fix needs to be made by whoever owns the 3rd party ad frame code. |
I have a fix out for review at #12458 |
I'm looking at https://github.com/ampproject/amphtml/blob/master/src/mode.js#L104
This is great. Can you share a code pointer where this is done?
The fix makes sense. |
Right, I'm looking at the same place. There is no |
And see https://github.com/ampproject/amphtml/blob/master/build-system/tasks/prepend-global/index.js#L164 for where we enable |
I agree that the logic is complicated. This is because the config is written during build time, and returned at runtime. I wonder how they can be consolidated without a file read. |
All 3P frames are loading
//ampproject.net/dist.3p/1513120604167/frame.html
.This might be due to this change #12152 , which sets config.localDev=true,
hence triggered the following logic in 3p-frame.js:
To reproduce,
then load page http://localhost:8000/examples/ads.amp.html
The text was updated successfully, but these errors were encountered: