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
Make DocInfo.pageViewId64 async #23998
Make DocInfo.pageViewId64 async #23998
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
@@ -104,7 +105,15 @@ export class DocInfo { | |||
}, | |||
canonicalUrl, | |||
pageViewId, | |||
pageViewId64, | |||
get pageViewId64() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean we are relying on get pageViewId64()
getting called after extensions service is ready?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only after it's registered which happens very soon afterwards in runtime.adopt()
.
Does this even need to be on document info? |
@jridgewell Good point. Maybe not. I do see one concern here. If this hasn't changed, FIE and the parent doc shares the same ampdoc instance. Maybe we should not store pageViewId within the Do you see this as the case? If so I think that's an issue we need to fix asap |
This would also affect amphtml/extensions/amp-a4a/0.1/a4a-variable-source.js Lines 26 to 71 in dcaf2ce
|
True, it should only affect PAGE_VEW_ID. cc @lannka Should page_view_id be supported in FIE? |
Talked to @lannka offline, we will be sharing |
* Make DocInfo.pageViewId64 async. * Fix types.
…cript-img-with-http-protocol * 'master' of github.com:ampproject/amphtml: (1326 commits) Fix and enable e2e tests for AMPHTML ads FIE rendering mode (ampproject#23995) 🏗 Update WorkerDOM to 0.17.0 (ampproject#24024) Make DocInfo.pageViewId64 async (ampproject#23998) 🐛 Updates amp-sidebar in amp-story (ampproject#23956) Revert "Revert "📖Update documentation for carousel 0.2 (ampproject#23840)" (ampproject#23967)" (ampproject#24016) 🔥 Revert "📈 Initial StorySpec Implementation (ampproject#23030)" (ampproject#24013) Extension skeleton code for payment widgets (ampproject#23045) 🏗🐛 Don't call `travisBuildNumber()` in the global scope (ampproject#24021) Remove suppressTypes from amp-mustache. (ampproject#23993) 🐛 Move `terser` from `dependencies` to `devDependencies` (ampproject#24018) Revert "Revert "Set the new loaders experiment to 1% of traffic. (ampproject#23780)" (ampproject#23963)" (ampproject#24014) SwG release 0.1.22.63 (ampproject#23997) Resolve navTiming variable earlier if possible (ampproject#23580) 🏗 Don't run all the runtime tests for validator-only changes (ampproject#24010) Collect document ready signal (ampproject#23981) Validator rollup (ampproject#24000) Remove flaky story branching test. (ampproject#23994) Include amp-base-carousel in amp-carousel's build. (ampproject#23984) Partial validator rollup (ampproject#23996) amp-bind: Rate-limit history operations (ampproject#23938) ...
* Make DocInfo.pageViewId64 async. * Fix types.
Fixes #23988.
Bug introduced in: https://github.com/ampproject/amphtml/pull/23451/files#r314530969
Affects browsers that don't implement
WebCrypto
orCrypto.getRandomValues
: https://caniuse.com/#search=getRandomValues