Bug 1456048 - move ChromeUtils.requestPerformanceMetrics to the right scope - r=kmag
authorTarek Ziadé <tarek@mozilla.com>
Mon, 23 Apr 2018 10:49:45 +0200
changeset 471329 1048c4b6af7c64df9bf5997d1ec9da7e1e5d01d9
parent 471328 a5fe3122bc5979fb4c0a9ca8b0d6835610342666
child 471330 d3dc4f7a2080215ba14b0cc8e15a4e323c34a88a
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1456048
milestone61.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 1456048 - move ChromeUtils.requestPerformanceMetrics to the right scope - r=kmag requestPerformanceMetrics should not be made available in the Worker scope. MozReview-Commit-ID: K2nY6JIzWrE
dom/chrome-webidl/ChromeUtils.webidl
--- a/dom/chrome-webidl/ChromeUtils.webidl
+++ b/dom/chrome-webidl/ChromeUtils.webidl
@@ -118,20 +118,16 @@ namespace ChromeUtils {
   readonly attribute any recentJSDevError;
 
   /**
    * Reset `recentJSDevError` to `undefined` for the current JSRuntime.
    */
   void clearRecentJSDevError();
 #endif // NIGHTLY_BUILD
 
-#ifndef RELEASE_OR_BETA
-  void requestPerformanceMetrics();
-#endif
-
   /**
    * IF YOU ADD NEW METHODS HERE, MAKE SURE THEY ARE THREAD-SAFE.
    */
 };
 
 /**
  * Additional ChromeUtils methods that are _not_ thread-safe, and hence not
  * exposed in workers.
@@ -309,16 +305,23 @@ partial namespace ChromeUtils {
   /**
    * Creates a JS Error object with the given message and stack.
    *
    * If a stack object is provided, the error object is created in the global
    * that it belongs to.
    */
   [Throws]
   object createError(DOMString message, optional object? stack = null);
+
+#ifndef RELEASE_OR_BETA
+  /**
+   * Request performance metrics to the current process & all ontent processes.
+   */
+  void requestPerformanceMetrics();
+#endif
 };
 
 /**
  * Used by principals and the script security manager to represent origin
  * attributes. The first dictionary is designed to contain the full set of
  * OriginAttributes, the second is used for pattern-matching (i.e. does this
  * OriginAttributesDictionary match the non-empty attributes in this pattern).
  *