Closed
Bug 873132
Opened 12 years ago
Closed 12 years ago
Deep-linking of ratings add page results in JS errors when signed out
Categories
(Marketplace Graveyard :: Consumer Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: muffinresearch, Unassigned)
References
Details
(Whiteboard: [fireplace])
STR:
* Log-out
* Visit https://marketplace-dev.allizom.org/app/twitter/ratings/add
Results:
* TypeError: navigator.id is undefined
* TypeError: z.context is undefined
* Splash screen stays open.
What should happen:
* Page should open after logging in
Reporter | ||
Updated•12 years ago
|
Summary: Deep-linking of ratings add page results in JS errors → Deep-linking of ratings add page results in JS errors when logged-out.
Updated•12 years ago
|
Summary: Deep-linking of ratings add page results in JS errors when logged-out. → Deep-linking of ratings add page results in JS errors when signed out
Comment 1•12 years ago
|
||
This issue will go away after 6/5.
This is happening because we load Persona asynchronously, and the builder fires off the view initialization before navigator.id exists. The view tries to use login.login(), which fails.
After 6/5, we won't need to conditionally load Persona and we can just put their include.js before ours with some clever `defer` and `async` attributes. The problem will simply go away after that.
Depends on: 873201
Reporter | ||
Comment 2•12 years ago
|
||
This commit should also prevent deeplinking add/edit when signed out as it will navigate back to the app page. https://github.com/mozilla/fireplace/commit/949d1dfb231cb36200d0235eedcfd550f46bf098
Comment 3•12 years ago
|
||
This should be fixed now that we load Persona before our own JS.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•