Bug 579388 - Only allow nsIMIMEService scripting from chrome. r=jaas+18821
authorGian-Carlo Pascutto <gcp@mozilla.com>
Wed, 15 Jun 2016 12:33:47 +0100
changeset 302881 a1eab626db95522e838cdb9120e22d129fd08c01
parent 302880 f276538c949388c0ad3f49d8c3664efdcf9ea56a
child 302882 3ba92367903b0396d44eaaec4170e89a5987d78a
push id30377
push usercbook@mozilla.com
push dateWed, 29 Jun 2016 13:04:19 +0000
treeherdermozilla-central@dc77b6514b80 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaas
bugs579388, 18821
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 579388 - Only allow nsIMIMEService scripting from chrome. r=jaas+18821 MozReview-Commit-ID: G8oU712h7Yx
netwerk/mime/nsIMIMEService.idl
--- a/netwerk/mime/nsIMIMEService.idl
+++ b/netwerk/mime/nsIMIMEService.idl
@@ -25,17 +25,17 @@ interface nsIURI;
  * acts as a general convenience wrapper of nsIMIMEInfo interfaces.
  *
  * The MIME service maintains a database with a <b>one</b> MIME type <b>to many</b>
  * file extensions rule. Adding the same file extension to multiple MIME types
  * is illegal and behavior is undefined.
  *
  * @see nsIMIMEInfo
  */
-[scriptable, uuid(5b3675a1-02db-4f8f-a560-b34736635f47)]
+[scriptable, main_process_scriptable_only, uuid(5b3675a1-02db-4f8f-a560-b34736635f47)]
 interface nsIMIMEService : nsISupports {
     /**
      * Retrieves an nsIMIMEInfo using both the extension
      * and the type of a file. The type is given preference
      * during the lookup. One of aMIMEType and aFileExt
      * can be an empty string. At least one of aMIMEType and aFileExt
      * must be nonempty.
      */