summaryrefslogtreecommitdiff
path: root/dom/broadcastchannel
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-02 11:07:35 -0700
committerwolfbeast <mcwerewolf@gmail.com>2018-06-07 08:52:09 +0200
commitb3ab294201fcee08a5d26ae3c7fffc504ba70379 (patch)
tree04820ea1ba44b247afe55a0f3454b347675916bb /dom/broadcastchannel
parent5736dbea0243aeeac6b1bf40583a2c9c53420fc6 (diff)
downloaduxp-b3ab294201fcee08a5d26ae3c7fffc504ba70379.tar.gz
Refactor structured clone JSAPI to prevent mismatched scopes.
Roll-up of bugs 1442722, 1455071, 1433642, 1456604 and 1458320.
Diffstat (limited to 'dom/broadcastchannel')
-rw-r--r--dom/broadcastchannel/BroadcastChannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/broadcastchannel/BroadcastChannel.cpp b/dom/broadcastchannel/BroadcastChannel.cpp
index c3c2d448b1..874212db7a 100644
--- a/dom/broadcastchannel/BroadcastChannel.cpp
+++ b/dom/broadcastchannel/BroadcastChannel.cpp
@@ -154,8 +154,8 @@ public:
bool success;
SerializedStructuredCloneBuffer& buffer = message.data();
- auto iter = mData->BufferData().Iter();
- buffer.data = mData->BufferData().Borrow<js::SystemAllocPolicy>(iter, mData->BufferData().Size(), &success);
+ auto iter = mData->BufferData().Start();
+ buffer.data = mData->BufferData().Borrow(iter, mData->BufferData().Size(), &success);
if (NS_WARN_IF(!success)) {
return NS_OK;
}