Closed Bug 829103 Opened 11 years ago Closed 6 years ago

multiple window.alert only displayed once

Categories

(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED WONTFIX
blocking-basecamp -

People

(Reporter: kanru, Unassigned)

Details

Attachments

(1 file)

In bug 829093 we called window.alert twice but only one of them is displayed.
(In reply to Kan-Ru Chen [:kanru] from comment #0)
> In bug 829093 we called window.alert twice but only one of them is displayed.

I know I ran into this issue as well, but I recall this happening with more than just alert. What about other prompts?
Unclear why this should block -- can you provide more info about concrete user impact?
Flags: needinfo?(kchen)
I'm not able to reproduce it, do you have an STR?

I tested it by patching dialer and opening it:
diff --git a/apps/communications/dialer/js/dialer.js b/apps/communications/dialer/js/dialer.js
index e897468..5d52eb6 100644
--- a/apps/communications/dialer/js/dialer.js
+++ b/apps/communications/dialer/js/dialer.js
@@ -1,5 +1,10 @@
 'use strict';
 
+setTimeout(function () {
+  alert('First');
+  alert('Second');
+});
+
 var CallHandler = (function callHandler() {
   var callScreenWindow = null;
   var callScreenWindowLoaded = false;

With gaia: e213bb2465d34639f1e1f45f2000dbf2d4b10345
Attached patch Alert reproSplinter Review
Apply this patch and follow the STR:

 1. Open settings -> Bluetooth
 2. Pair with a device
 3. Deny it from the other device
 4. Wait

You will found two log message "==== errorMessage ..." in logcat but only one alert window is ever showed.

One of them is from a DOMRequest onerror callback and the other one is from a system message handler callback.

I cannot reproduce this by using setTimeout nor addEventListener on visibilitychange either.

bb? because of potential message lose.
Flags: needinfo?(kchen)
blocking-

request approval-gaia-master if this needs to be in v1
blocking-basecamp: ? → -
Keywords: dev-doc-needed
Component: Gaia::System → Gaia::System::Window Mgmt
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: