Bug 1396682 - Remove exposure of nsIAtom to script in rdf/. r=pike.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 05 Sep 2017 09:33:54 +1000
changeset 379046 cae86ca80e62e087ca43604b0686e69836928ca7
parent 379045 b3e93511d0376bb02821ee56e295e4e5903c3e07
child 379047 5616f7dc81a947955bb8391def67a37ce9ea123a
push id94573
push usernnethercote@mozilla.com
push dateWed, 06 Sep 2017 06:12:54 +0000
treeherdermozilla-inbound@5616f7dc81a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspike
bugs1396682
milestone57.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 1396682 - Remove exposure of nsIAtom to script in rdf/. r=pike. This is a prerequisite for deCOMtaminating nsIAtom.
rdf/base/nsIRDFXMLSerializer.idl
rdf/base/nsIRDFXMLSink.idl
--- a/rdf/base/nsIRDFXMLSerializer.idl
+++ b/rdf/base/nsIRDFXMLSerializer.idl
@@ -1,27 +1,28 @@
 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#include "nsIAtom.idl"
 #include "nsISupports.idl"
 #include "nsIRDFDataSource.idl"
 
+interface nsIAtom;  // used in [noscript] methods only
+
 [scriptable, uuid(8ae1fbf8-1dd2-11b2-bd21-d728069cca92)]
 interface nsIRDFXMLSerializer : nsISupports
 {
     /**
      * Initialize the serializer with the specified datasource.
      * @param aDataSource the datasource from which data will be
      *   serialized
      */
     void init(in nsIRDFDataSource aDataSource);
 
     /**
      * Add the specified namespace to the serializer.
      * @param aPrefix the attribute namespace prefix
      * @param aURI the namespace URI
      */
-    void addNameSpace(in nsIAtom aPrefix, in DOMString aURI);
+    [noscript] void addNameSpace(in nsIAtom aPrefix, in DOMString aURI);
 };
--- a/rdf/base/nsIRDFXMLSink.idl
+++ b/rdf/base/nsIRDFXMLSink.idl
@@ -7,22 +7,22 @@
 
   Interfaces for the RDF/XML sink, which parses RDF/XML into
   a graph representation.
 
 */
 
 #include "nsISupports.idl"
 
+interface nsIAtom;  // used in [noscript] methods only
+
 // XXX Until these get scriptable. See nsIRDFXMLSink::AddNameSpace()
-[ptr] native nsIAtomPtr(nsIAtom);
 [ref] native nsStringRef(nsString);
 %{C++
 #include "nsStringFwd.h"
-class nsIAtom;
 %}
 
 interface nsIRDFXMLSink;
 
 /**
  * An observer that is notified as progress is made on the load
  * of an RDF/XML document in an <code>nsIRDFXMLSink</code>.
  */
@@ -97,17 +97,17 @@ interface nsIRDFXMLSink : nsISupports
      */
     void endLoad();
 
     /**
      * Add namespace information to the RDF/XML sink.
      * @param aPrefix the namespace prefix
      * @param aURI the namespace URI
      */
-    [noscript] void addNameSpace(in nsIAtomPtr aPrefix,
+    [noscript] void addNameSpace(in nsIAtom aPrefix,
                                  [const] in nsStringRef aURI);
 
     /**
      * Add an observer that will be notified as the RDF/XML load
      * progresses.
      * <p>
      *
      * Note that the sink will acquire a strong reference to the