From 16a7bcb3d8dd57be7439053af9ba28e2bdf54dc2 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sat, 20 Dec 2014 11:08:33 +0100 Subject: [PATCH] Firefox: add missing vAPI.onLoadAllCompleted --- platform/firefox/vapi-background.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index eb673b915..e59fdab15 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1068,6 +1068,15 @@ vAPI.lastError = function() { /******************************************************************************/ +// This is called only once, when everything has been loaded in memory after +// the extension was launched. It can be used to inject content scripts +// in already opened web pages, to remove whatever nuisance could make it to +// the web pages before uBlock was ready. + +vAPI.onLoadAllCompleted = function() {}; + +/******************************************************************************/ + // clean up when the extension is disabled window.addEventListener('unload', function() {