Closed Bug 925160 Opened 11 years ago Closed 11 years ago

[B2G][Notifications API] Logcat does not show onshow/onerror

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 affected)

RESOLVED DUPLICATE of bug 920302
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- affected

People

(Reporter: dsubramanian, Unassigned)

References

Details

(Keywords: regression, Whiteboard: burirun2 [systemsfe])

Attachments

(1 file)

I/GeckoDump(139): XXX FIXME : Got a mozContentEvent: desktop-notification-show

Description:
User is unable to see "Onshow /Onerror/Onclick/Onclose" on the logcat for notifications.

Pre-requisite: Have ADB logcat running.

Repro Steps:
1) Updated Buri Build ID: 20131009004001.
2) Go to http://mozilla.github.io/qa-testcase data/webapi/notifications/index.html.
3) Tap on "Request permission".
4) Upon permission granted, have title alone as "Test Title".
5) Tap "Show Notification".
6) Look for "Onshow firing" in the logcat.

Actual:
Logcat DOES NOT mention "Onshow" upon tapping "Show notification" button.

Expected:
Logcat mentions "Onshow" upon tapping "Show notification" button.

Notes: This fails multiple test cases. Please see the tinyURL provided. 

Environmental Variables
Build ID: 20131009004001
Gecko: http://hg.mozilla.org/releases/mozilla-aurora/rev/e5edb484e2a9
Gaia: 672c47bf94b69a329e0aacb9228a6aa16ade6226
Platform Version: 26.0a2

Repro frequency: 100%
Test Suite Name: (Notification
UCID: System0
Link to failed test case: http://goo.gl/P8wOQC
See attached: logcat
While testing on v1.1 of today's build found that the buttons(Install, Request, Show Notification, Close) on http://mozilla.github.io/qa-testcase-data/webapi/notifications/index.html where unresponsive to test it this particular defect.

Environmental Variables:

LEO Build ID: 20131009041203
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/c630289d6388
Gaia: 53e2a70d85fb3748d0768218a5efffe5806073f0
Platform Version: 18.1
RIL Version: 01.01.00.019.238
Note - this is a bug in a 1.2 feature, so this won't be reproducible in 1.1.
Whiteboard: burirun2 → burirun2 [systemsfe]
blocking-b2g: --- → koi?
I've got integration tests for this in Bug 922382 that were giving me similar results.
Depends on: 922382
Jason

Is this a 1.2 broken feature?
Flags: needinfo?(jsmith)
Yes. This means that the event handlers specified in the bug are not firing for the Web Notifications API, which breaks two System FE user stories at a basic level.
Flags: needinfo?(jsmith)
Whiteboard: burirun2 [systemsfe] → burirun2 [systemsfe] [koi+]
blocking+ - event handlers need to work for the notifications api
blocking-b2g: koi? → koi+
Whiteboard: burirun2 [systemsfe] [koi+] → burirun2 [systemsfe]
Run with v1.2 on Nexus 4. UI Tests, which show alerts on event firing versus relying on logcat, work fine. Desktop integration tests also confirm events are working. 

Might want to change this test to use a mechanism that can be seen in the OS?
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
WFM was for app perms, not browser. Even so, most likely a dupe of Bug 920302, since both would happen due to notification messages not relaying correctly in browser context. Updating to reflect.
Resolution: WORKSFORME → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: