From c64e26deeac0cebae496fa43ec4cfe69a81d8a8b Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 18 Jan 2015 11:50:20 -0700 Subject: [PATCH] Fix `set` for Firefox & Safari (don't set non-own properties in for..in loop) --- platform/firefox/vapi-background.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index e8a8d28..d257f26 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -195,6 +195,9 @@ vAPI.storage = { var key, values = [], placeholders = []; for ( key in details ) { + if ( !details.hasOwnProperty(key) ) { + continue; + } values.push(key); values.push(JSON.stringify(details[key])); placeholders.push('?, ?');