Bug 579388 - Only allow nsIMIMEService scripting from chrome. r?josh draft
authorGian-Carlo Pascutto <gcp@mozilla.com>
Wed, 15 Jun 2016 12:33:47 +0100
changeset 378228 000ed5f29c5ed9127b06833a9cc5c70e93adf1bb
parent 378227 a10daf16059f9da0d51f418fdcec9e609793e401
child 523492 f9b19541a6359d2de40e644df6201b0076e56ebf
push id20962
push usergpascutto@mozilla.com
push dateWed, 15 Jun 2016 12:45:45 +0000
reviewersjosh
bugs579388
milestone50.0a1
Bug 579388 - Only allow nsIMIMEService scripting from chrome. r?josh 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.
      */