bug 1515463, MessageBroadcaster.getChildAt should be out-of-bounds safe, r=peterv
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 03 Jan 2019 16:48:32 +0200
changeset 509546 e5f8f958a17f3e88c2cf1e7f5a41c3eea0ebfc1b
parent 509545 a1f41c6cfda46c159bb00127e867c24ddc5c5217
child 509547 167782666c301ff2070f4e383c36b95672d1fdfb
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1515463
milestone66.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 1515463, MessageBroadcaster.getChildAt should be out-of-bounds safe, r=peterv
dom/chrome-webidl/MessageManager.webidl
--- a/dom/chrome-webidl/MessageManager.webidl
+++ b/dom/chrome-webidl/MessageManager.webidl
@@ -537,17 +537,17 @@ interface MessageBroadcaster : MessageLi
   /**
    * Number of subordinate message managers.
    */
   readonly attribute unsigned long childCount;
 
   /**
    * Return a single subordinate message manager.
    */
-  MessageListenerManager getChildAt(unsigned long aIndex);
+  MessageListenerManager? getChildAt(unsigned long aIndex);
 
   /**
    * Some processes are kept alive after their last tab/window are closed for testing
    * (see dom.ipc.keepProcessesAlive). This function releases those.
    */
    void releaseCachedProcesses();
 };