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 452376 e5f8f958a17f3e88c2cf1e7f5a41c3eea0ebfc1b
parent 452375 a1f41c6cfda46c159bb00127e867c24ddc5c5217
child 452377 167782666c301ff2070f4e383c36b95672d1fdfb
push id110883
push useropettay@mozilla.com
push dateThu, 03 Jan 2019 15:38:30 +0000
treeherdermozilla-inbound@e5f8f958a17f [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();
 };