Closed
Bug 1473287
Opened 6 years ago
Closed 6 years ago
Treeherder jobs view fails to load if web notifications are unavailable (such as on iOS)
Categories
(Tree Management :: Treeherder: Frontend, defect, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mgaudet, Assigned: camd)
References
Details
Attachments
(2 files)
When visiting a front-page of Treeherder (https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound lets say) on an iPhone, I see the page load completely, then suddenly all the main content will disappear. This occurs both in Safari and in Firefox on iOS (iOS web view)
Assignee | ||
Comment 1•6 years ago
|
||
I'm able to reproduce this on my iphone. While we don't officially support Treeherder on mobile, this seems like the very least one should expect to work. I will see if I can figure out what is going on here and find a fix.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → cdawson
Status: NEW → ASSIGNED
Priority: -- → P3
Assignee | ||
Comment 2•6 years ago
|
||
Matthew-- What kind of emulator did you use to get that screenshot? Perhaps I could use it to debug this issue. When I use responsive mode in Firefox desktop set to iphone, I can't reproduce.
Flags: needinfo?(mgaudet)
Reporter | ||
Comment 3•6 years ago
|
||
Regular ol' iPhone simulator: Open Xcode, then under the Xcode Menu, select Developer Tools -> Simulator Thanks :D
Flags: needinfo?(mgaudet)
Comment 4•6 years ago
|
||
FWIW, When I close the preference "dom.webnotifications.enabled", the same issue happens to my firefox on mac os.
Comment 5•6 years ago
|
||
Thank for that! Using the STR from comment 4, I see the following in the dev console: ReferenceError: "Notification is not defined" ...in showUpdateNotifications(): https://github.com/mozilla/treeherder/blob/3ce79a93a74ab2bbfd041d7270fa30a2f6379590/ui/job-view/Push.jsx#L49 Guess it should really be checking for browser support first, a la the examples on the MDN page: https://developer.mozilla.org/en-US/docs/Web/API/notification#Example I think this also demonstrates that for any mobile-support type bugs filed, the console output is vital (and we should probably mark any that are missing it as "INCOMPLETE").
Updated•6 years ago
|
Blocks: 1123814
Summary: Treeherder UI goes blank when loaded on iOS browser → Treeherder jobs view fails to load if web notifications are unavailable (such as on iOS)
Comment 7•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Attachment #9004360 -
Flags: review?(emorley)
Comment 8•6 years ago
|
||
Comment on attachment 9004360 [details] [review] Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3960 Left a comment on the PR :-)
Attachment #9004360 -
Flags: review?(emorley) → review-
Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 9004360 [details] [review] Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3960 Made the requested changes. :)
Attachment #9004360 -
Flags: review- → review?(emorley)
Updated•6 years ago
|
Attachment #9004360 -
Flags: review?(emorley) → review+
Comment 10•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/f87f841e51daa2d6d850156b3a31a21c3fb89993 Bug 1473287 - Fix when Desktop notifications not supported (#3960)
Updated•6 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment 11•6 years ago
|
||
Sorry, but this is not fixed. Opening https://treeherder.mozilla.org/#/jobs?repo=try&revision=860b4e649e7a168a54aa7e9e57fd6bbc9bf845c2 display the content for a very short amount of time and screen goes blank. Tested with both safari and Firefox on iOS 11.4.1 on iPad Pro.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•6 years ago
|
||
Treeherder bugs are marked fixed when the PR merges to master. Deployment to stage (https://treeherder.allizom.org) then occurs automatically within 15 minutes, and to production when a manual push is made to the `production` branch (normally around once a week). The currently deployed revision can be found via any of: * In-app help menu -> "What's deployed" link * Repo README (https://github.com/mozilla/treeherder) -> "What's Deployed" badge * Wiki page (https://wiki.mozilla.org/EngineeringProductivity/Projects/Treeherder) -> "Deployed changes info" This change hasn't yet been deployed to production, which is why you can still see the issue there. Could you try stage instead?
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
Resolution: --- → FIXED
Comment 13•6 years ago
|
||
When will this be pushed to prod?
Comment 14•6 years ago
|
||
There was a prod push Friday, however it had to be rolled back due to a couple of regressions from other changes. We're keen to redeploy as soon as possible, which should be sometime this week.
You need to log in
before you can comment on or make changes to this bug.
Description
•