Amphtml: Lightbox: make lightbox manager and viewer installations work for more than singleDoc mode

Created on 17 Jan 2018  路  6Comments  路  Source: ampproject/amphtml

Resolve these two hacks:

    const ampdoc = Services.ampdocServiceFor(win).getAmpDoc();
    manager_ = new LightboxManager(ampdoc);
const ampdoc = Services.ampdocServiceFor(win).getAmpDoc();
  return waitForBodyPromise(/**@type {Document}*/ ampdoc.getRootNode()).then(() => {
PWA When Possible Bug

Most helpful comment

Oh wow, there's interest! xD
Not presently because nobody has expressed interest in it prior to your comment. It's currently sitting in our backlog TODO list. Do you actually want/need this for anything?

All 6 comments

This issue seems to be in Pending Triage for awhile. @cathyxz Please triage this to an appropriate milestone.

Do we have any update regarding this issue?

Oh wow, there's interest! xD
Not presently because nobody has expressed interest in it prior to your comment. It's currently sitting in our backlog TODO list. Do you actually want/need this for anything?

LOL! Yes! I tried to implement the lightbox in different shadow amp and it wasn't working. Quick search in the issues and found this one 馃槂!

This should work in the next release for some shadow docs, but there will still be a couple of problems when used with a document loaded from <amp-next-page>.

Closing for now per #17677, amp-next-page issues are tracked separately.

Was this page helpful?
0 / 5 - 0 ratings