From 758c8afdc7948094f2f3ad03455aecf4114e3d3d Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 12 Jun 2016 10:51:42 -0400 Subject: [PATCH] fix #1702 --- platform/firefox/vapi-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 5ab680dd9..7aa440d2e 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1896,7 +1896,7 @@ var httpObserver = { // the ring buffer are overwritten. pendingURLToIndex: new Map(), pendingWritePointer: 0, - pendingRingBuffer: new Array(32), + pendingRingBuffer: new Array(256), pendingRingBufferInit: function() { // Use and reuse pre-allocated PendingRequest objects = less memory // churning. @@ -1923,7 +1923,7 @@ var httpObserver = { createPendingRequest: function(url) { var bucket; var i = this.pendingWritePointer; - this.pendingWritePointer = i + 1 & 31; + this.pendingWritePointer = i + 1 & 255; var preq = this.pendingRingBuffer[i]; var si = String.fromCharCode(i); // Cleanup unserviced pending request