Closed Bug 1169336 Opened 11 years ago Closed 11 years ago

Open the InterApp Communication API to unsigned (hosted/packaged) web apps

Categories

(Core Graveyard :: DOM: Apps, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: macajc, Assigned: macajc)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently the InterApp Communication API is restricted to certified apps only. This bug is to open (behind a preference) the IAC API to unsigned apps on a unsecure way, if the preference is set to true every app will be able to connect to any IAC port.
Blocks: 1169344
Depends on: 1169345
No longer depends on: 1169345
Blocks: 1169333
No longer depends on: 1169333
Status: NEW → ASSIGNED
Blocks: 1173666
Attached patch v1 proposed patch (obsolete) — — Splinter Review
Attachment #8620826 - Flags: feedback?(fabrice)
Comment on attachment 8620826 [details] [diff] [review] v1 proposed patch Review of attachment 8620826 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/apps/InterAppCommService.jsm @@ +13,5 @@ > Cu.import("resource://gre/modules/AppsUtils.jsm"); > > const DEBUG = false; > +const DEV_MODE = !!Services.prefs.getBoolPref("dom.apps.developer_mode") || > + false; getBoolPref() can throw if the pref is not set at all. You need something like: const isDevMode = false; try { isDevMode = Services.prefs.getBoolPref(...) } catch(e) {}
Attachment #8620826 - Flags: feedback?(fabrice) → feedback+
Attachment #8620826 - Attachment is obsolete: true
Blocks: 1175154
Comment on attachment 8621767 [details] [diff] [review] v2 proposed patch Unit tests are being written in bug 1175154. Try at https://treeherder.mozilla.org/#/jobs?repo=try&revision=54c2464468da requesting review
Attachment #8621767 - Flags: review?(fabrice)
No longer blocks: 1175154
Depends on: 175154
Depends on: 1175154
No longer depends on: 175154
Attachment #8621767 - Flags: review?(fabrice) → review?(ferjmoreno)
Comment on attachment 8621767 [details] [diff] [review] v2 proposed patch This is reverted by the patch attached to bug 1169344 so no need to review or land this one.
Attachment #8621767 - Flags: review?(ferjmoreno)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: