Closed Bug 824672 Opened 12 years ago Closed 12 years ago

"Close" button on app error page doesn't close

Categories

(Firefox OS Graveyard :: Gaia, defect, P3)

All
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
B2G C3 (12dec-1jan)
blocking-basecamp +

People

(Reporter: markh, Assigned: alive)

References

Details

(Keywords: b2g-testdriver, unagi, Whiteboard: interaction, UX-P2)

Attachments

(1 file, 1 obsolete file)

Most everything.me apps are not working for me (which is a different bug). In the error page I see, eg,: """ on Twitter is having problems on Twitter is not loading properly [Close] [Try again] """ If you click the "close" button, nothing happens. logcat shows: E/GeckoConsole(11686): [JavaScript Warning: "Scripts may not close windows that were not opened by script." {file: "app://system.gaiamobile.org/js/error.js" line: 3}] and repeats every time you hit "close"
TRIAGE: function broken, blocking IMO.
Assignee: nobody → alive
Triage: QAWANTED to confirm. Everything.me works for people in the triage.
Keywords: qawanted
(In reply to Joe Cheng [:jcheng] from comment #2) > Triage: QAWANTED to confirm. Everything.me works for people in the triage. Long press power button to invoke airplane mode, and then you could simulate a 'network error' environment.
blocking-basecamp: ? → +
Priority: -- → P3
Target Milestone: --- → B2G C3 (12dec-1jan)
Can't we simply remove the 'Close' button. Now that e.me 'applications' runs inside a different process this makes it hard to allow window.close for them. The simpler solution would be to let the user close them the same way an application is close with the Card View.
(In reply to Vivien Nicolas (:vingtetun) from comment #4) > Can't we simply remove the 'Close' button. Now that e.me 'applications' runs > inside a different process this makes it hard to allow window.close for > them. The simpler solution would be to let the user close them the same way > an application is close with the Card View. Agree, for short term v1 release.
(In reply to Vivien Nicolas (:vingtetun) from comment #4) > Can't we simply remove the 'Close' button. Now that e.me 'applications' runs > inside a different process this makes it hard to allow window.close for > them. The simpler solution would be to let the user close them the same way > an application is close with the Card View. I'm quite new to this device, so I'm probably missing some context, but I'm not sure what "the same way an application is close with the Card View" means. When that error screen is displayed there is no other obvious way to close the window (eg, no "back" or other elements for this purpose). Pressing "home" obviously works though.
Josh, need your input. We may have to remove the close button in custom error page. 2 options: a) remove the close button only in wrapper error page. b) remove the close button in all app error page.
Flags: needinfo?(jcarpenter)
(In reply to Alive Kuo [:alive] from comment #7) > Josh, need your input. We may have to remove the close button in custom > error page. > 2 options: > a) remove the close button only in wrapper error page. > b) remove the close button in all app error page. Or new idea...but remember the technical issue in comment 4 makes it hard to have a close button in wrapper-type application(e.me).
(In reply to Mark Hammond (:markh) from comment #6) > (In reply to Vivien Nicolas (:vingtetun) from comment #4) > > Can't we simply remove the 'Close' button. Now that e.me 'applications' runs > > inside a different process this makes it hard to allow window.close for > > them. The simpler solution would be to let the user close them the same way > > an application is close with the Card View. > > I'm quite new to this device, so I'm probably missing some context, but I'm > not sure what "the same way an application is close with the Card View" > means. When that error screen is displayed there is no other obvious way to > close the window (eg, no "back" or other elements for this purpose). > Pressing "home" obviously works though. Pressing Home is a good enough way of going out an application. Basically you can close other applications by long pressing on the Home button and swiping the application to the top.
https://github.com/mozilla-b2g/gaia/pull/7213 Patch v1: Remove the close button in custom error page. It's much simpler for now.
Attachment #696011 - Flags: review?(21)
(In reply to Vivien Nicolas (:vingtetun) from comment #9) > Pressing Home is a good enough way of going out an application. Basically > you can close other applications by long pressing on the Home button and > swiping the application to the top. Hold up. That's a UX call. And I respectfully disagree: * Your proposed solution fails to provide users with a clear method for clearing and exiting an error dialogue. It relies on them eventually hitting the Home button (no doubt out of confusion and frustration). That is very poor usability. The error should be rarely encountered, and easily cleared. A built in "Close" method provides that mechanism. * Relying on the Home button would be doubly poor for usability if it leaves the app open in the background. If the user goes back to the app ("I want to play my game!"), they presumably run into the error screen again. We should prevent that. Ping me if you guys need faster responses, but please don't bum rush changes like these without at least waiting a few hours for myself or someone else from UX to respond to our needsinfos. That's poor form. Let me know what we can do here. Why can we not retain the current, spec'd design? Because it's hard?
Flags: needinfo?(jcarpenter)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: interaction, UX-P2
(In reply to Josh Carpenter [:jcarpenter] from comment #13) > * Relying on the Home button would be doubly poor for usability if it leaves > the app open in the background. If the user goes back to the app ("I want to > play my game!"), they presumably run into the error screen again. We should > prevent that. Ah, yes, I think this is exactly what has been happening for me, effectively turning a transient error into a permanent one (given that pressing "home" was the only way of leaving the error page)
I spoke w/ Alive on IRC, and we agreed that: * For now, we should remove the Close button from OOP app error prompts, but keep it for non-OOP apps. * I will then open a second about trying to put a working Close button, * I will open another bug for related problems with E.me content opening after an error has been encountered, and failing to load properly even when the cause of the initial error has since been resolved.
Patch v2: Remove the close button only in wrapper. App couldn't be tested now because of 824677.
Attachment #696011 - Attachment is obsolete: true
Attachment #696248 - Flags: review?(21)
Related: Errors break E.me content, even after error states have been resolved. https://bugzilla.mozilla.org/show_bug.cgi?id=822329 App UI should never be visible when an overlay (prompt, value selector, etc) is open https://bugzilla.mozilla.org/show_bug.cgi?id=825144
FTR, arranging for privileged code to call nsIDOMWindowUtils.allowScriptsToClose() on the window would allow the script's window.close() to succeed - but I'm not sure if that is actually feasible in this context.
(In reply to Mark Hammond (:markh) from comment #18) > FTR, arranging for privileged code to call > nsIDOMWindowUtils.allowScriptsToClose() on the window would allow the > script's window.close() to succeed - but I'm not sure if that is actually > feasible in this context. Obviously this is not. This is pure web content.
(In reply to Josh Carpenter [:jcarpenter] from comment #15) > I spoke w/ Alive on IRC, and we agreed that: > > * For now, we should remove the Close button from OOP app error prompts, but > keep it for non-OOP apps. What is a non-OOP app? > * I will then open a second about trying to put a working Close button, Sounds good. > * I will open another bug for related problems with E.me content opening > after an error has been encountered, and failing to load properly even when > the cause of the initial error has since been resolved. Could be a regression, not related to this bug. (In reply to Josh Carpenter [:jcarpenter] from comment #13) > (In reply to Vivien Nicolas (:vingtetun) from comment #9) > > Pressing Home is a good enough way of going out an application. Basically > > you can close other applications by long pressing on the Home button and > > swiping the application to the top. > > Hold up. That's a UX call. UX call? Right. This is also a dev call when it is technically complicated to do what you expect and when the deadline is coming so fast. The issue does not exist anymore since there is no more close button. I'm not saying the UX is better but broken functionnalities seems worse. If this button is really important for you let's do what you suggest in the other comment: open a new bug to add back this button with the blocking-basecamp? flag. If it is important enough to stop the product from shipping then it will be done. > And I respectfully disagree: > Sorry if I look rude too. Just rushing in order to finish the product in time with what we have handy. > * Your proposed solution fails to provide users with a clear method for > clearing and exiting an error dialogue. It relies on them eventually hitting > the Home button (no doubt out of confusion and frustration). That is very > poor usability. The error should be rarely encountered, and easily cleared. > A built in "Close" method provides that mechanism. > > * Relying on the Home button would be doubly poor for usability if it leaves > the app open in the background. If the user goes back to the app ("I want to > play my game!"), they presumably run into the error screen again. We should > prevent that. > > Ping me if you guys need faster responses, but please don't bum rush changes > like these without at least waiting a few hours for myself or someone else > from UX to respond to our needsinfos. That's poor form. True. And I can only agree that a built-in close button is better. But should we hold v1 for such a button? I don't think so. And If I'm wrong a new bug opened to add it back with the blocking-basecamp? flag would make a decision for us. > > Let me know what we can do here. Why can we not retain the current, spec'd > design? Because it's hard? Because it is not doable the way the error page is implemented. The error page is regular web content not opened by a script and regular web content can not decide to close a window/tab. The close button needs to leave outside the content in order to let us close the window. I will consider this bug has closed since I believe the blocking-basecamp+ flag has been added because of a broken functionality and feel free to open new bugs to change the current behavior with blocking-basecamp? flag set. I'm sorry about that since I don't really like the new behavior too...
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
(In reply to Vivien Nicolas (:vingtetun) from comment #19) > Obviously this is not. This is pure web content. Sorry - it wasn't obvious to me. I was thinking that maybe the app launch code could call this (eg, shell.js or similar).
Keywords: qawantedverifyme
QA Contact: tchung → jsmith
(In reply to Vivien Nicolas (:vingtetun) from comment #20) > UX call? Right. This is also a dev call when it is technically complicated > to do what you expect and when the deadline is coming so fast. The issue > does not exist anymore since there is no more close button. I'm not saying > the UX is better but broken functionnalities seems worse. > > If this button is really important for you let's do what you suggest in the > other comment: open a new bug to add back this button with the > blocking-basecamp? flag. If it is important enough to stop the product from > shipping then it will be done. I hear ya, we know how crazy slammed you guys are, so if you think there's a usability impact—like in this instance—just needsinfo myself or the relevant designer and we can work together to figure out what we'd like to do, and what's feasible within the precious time remaining :)
Comment on attachment 696248 [details] https://github.com/mozilla-b2g/gaia/pull/7224 Cancel the review flag since the revert is reverted.
Attachment #696248 - Flags: review?(21)
Verified removal of the Close button in Unagi build 20121231070201.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Whiteboard: interaction, UX-P2 → interaction, UX-P2, BerlinWW
Whiteboard: interaction, UX-P2, BerlinWW → interaction, UX-P2
I will connect w/ VIvien and Alive this week to figure out what we can do here.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: