Closed Bug 892862 Opened 11 years ago Closed 11 years ago

[b2g-bluetooth] Failed to receive system message of Sco connection status changed

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gyeh, Assigned: gyeh)

References

Details

(Whiteboard: [fixed-in-birch])

Attachments

(2 files, 1 obsolete file)

Per Arthur, when Sco connection is established/destroyed, we didn't notice by system message with type "bluetooth-sco-status-changed".

The root cause here is that we should add it in dom/messages/SystemMessagePermissionsChecker.jsm for permission check.
Blocks: 889733
Eric, please help to review this patch. Thanks.
Assignee: nobody → gyeh
Attachment #774474 - Flags: review?(echou)
Comment on attachment 774474 [details] [diff] [review]
Patch 1(v1): Add SystemMessagePermissionCheck

Review of attachment 774474 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with nit addressed. Please make sure the debug message won't be enabled before you check it in. Thank you.

::: dom/messages/SystemMessageInternal.js
@@ +43,5 @@
>                    "SystemMessageManager:HandleMessagesDone",
>                    "child-process-shutdown"]
>  
>  function debug(aMsg) {
> +  dump("-- SystemMessageInternal " + Date.now() + " : " + aMsg + "\n");

We should not let this be compiled. Please readd the comment sign.
Attachment #774474 - Flags: review?(echou) → review+
(In reply to Eric Chou [:ericchou] [:echou] from comment #2)
> ::: dom/messages/SystemMessageInternal.js
> > +  dump("-- SystemMessageInternal " + Date.now() + " : " + aMsg + "\n");
> 
> We should not let this be compiled. Please readd the comment sign.

Agree. I accidentally added thie line into patch. :(
Attachment #774474 - Attachment is obsolete: true
Please help to check this patch. Thanks.
Attachment #775589 - Flags: review?(echou)
Attachment #775589 - Flags: review?(echou) → review+
Attachment #775589 - Attachment description: Patch 2(v1): Bluetooth-related system messages cleanup → Final patch, part 2, r=echou
https://hg.mozilla.org/mozilla-central/rev/8e88c01ceb0a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: