Closed Bug 919408 Opened 11 years ago Closed 11 years ago

Adding 'dummy-message' for testing system message

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hchang, Assigned: hchang)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch Gecko-Adding-dummy-message.patch (obsolete) — Splinter Review
For the developing system message testing framework 768228, it needs a specific system message for testing. Simply call it 'dummy-message'. Maybe we have to do more check to prevent from other apps using this testing message.
Assignee: nobody → hchang
Blocks: 768228
Please see https://github.com/mozilla-b2g/gaia/pull/12556 for more information. We do need this dummy message for testing now. (The PR now is using 'media-button' for testing. After this lands, we can then change to using 'dummy-message')
Attachment #808423 - Flags: review?(gene.lian)
Comment on attachment 808423 [details] [diff] [review]
Gecko-Adding-dummy-message.patch

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

Sorry for the delayed response.

I think this is fine because system message is always fired from the central and cannot have chance to be hacked.

r=gene

::: dom/messages/SystemMessagePermissionsChecker.jsm
@@ +66,5 @@
>    },
>    "bluetooth-opp-transfer-start": {
>      "bluetooth": []
>    },
> +  "dummy-message": { },

I'd prefer s/dummy-message/dummy-system-message/ and please add a few comments to address the need.

"dummy-system-message": { }, // For the testing framework of system message.
Attachment #808423 - Flags: review?(gene.lian) → review+
Attachment #808423 - Attachment is obsolete: true
Thanks Gene! I've changed the name and added the comment in the new attachment. Thanks.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/6e9ff87c4e97
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: