Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PersonaBar doesn't load when within an iframe #4491

Closed
7 tasks done
jmbockhorst opened this issue Feb 12, 2021 · 0 comments · Fixed by #4492
Closed
7 tasks done

PersonaBar doesn't load when within an iframe #4491

jmbockhorst opened this issue Feb 12, 2021 · 0 comments · Fixed by #4492

Comments

@jmbockhorst
Copy link
Contributor

Description of bug

When the PersonaBar is loaded within an iframe it throws an error:

TypeError: Cannot read property 'MenuItems' of undefined
    at Object.buildMenuViewModel (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/util.js?cdv=1531:373:35)
    at https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/main.js?cdv=1531:101:37
    at Object.execCb (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:1696:33)
    at Module.check (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:878:55)
    at Module. (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:1139:34)
    at https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:134:23
    at https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:1189:21
    at each (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:59:31)
    at Module.emit (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:1188:17)
    at Module.check (https://amstest.info/DesktopModules/admin/Dnn.PersonaBar/scripts/contrib/require.js?cdv=1531:938:30)

This happens when running a DNN site using the test runner Cypress, which hosts the site in an iframe.

Steps to reproduce

List the precise steps to reproduce the bug:

  1. Run a DNN site using the Cypress test runner
  2. The PersonaBar does not load

Current behavior

The PersonaBar does not load.

Expected behavior

The PersonaBar should load.

Affected version

  • 09.xx.xx

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer 11
  • Microsoft Edge (Classic)
  • Microsoft Edge Chromium
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant