| Index: lib/filterComposer.js |
| =================================================================== |
| --- a/lib/filterComposer.js |
| +++ b/lib/filterComposer.js |
| @@ -14,24 +14,24 @@ |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| /** @module filterComposer */ |
| "use strict"; |
| -const {defaultMatcher} = require("matcher"); |
| -const {RegExpFilter} = require("filterClasses"); |
| -const {FilterNotifier} = require("filterNotifier"); |
| -const {Prefs} = require("prefs"); |
| -const {extractHostFromFrame, stringifyURL, isThirdParty} = require("url"); |
| -const {getKey, checkWhitelisted} = require("whitelisting"); |
| -const {port} = require("messaging"); |
| -const info = require("info"); |
| +const {defaultMatcher} = require("../adblockpluscore/lib/matcher"); |
| +const {RegExpFilter} = require("../adblockpluscore/lib/filterClasses"); |
| +const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
| +const {Prefs} = require("./prefs"); |
| +const {extractHostFromFrame, stringifyURL, isThirdParty} = require("./url"); |
| +const {getKey, checkWhitelisted} = require("./whitelisting"); |
| +const {port} = require("./messaging"); |
| +const info = require("../buildtools/info"); |
| let readyPages = new ext.PageMap(); |
| /** |
| * Checks whether the given page is ready to use the filter composer |
| * |
| * @param {Page} page |
| * @return {boolean} |
| @@ -282,17 +282,18 @@ |
| type: "composer.content.dialogClosed", |
| popupId: popupPageId |
| }); |
| browser.tabs.onRemoved.removeListener(onRemoved); |
| } |
| }; |
| browser.tabs.onRemoved.addListener(onRemoved); |
| - if (require("info").application == "firefox" && |
| + if (require( |
|
kzar
2018/03/19 21:50:07
Since info is already required can't you just use
Jon Sonesen
2018/03/20 23:25:18
Acknowledged. This was a change done with a bash s
|
| +"../buildtools/info").application == "firefox" && |
| navigator.oscpu.startsWith("Linux")) |
| { |
| // Work around https://bugzil.la/1408446 |
| browser.windows.update(window.id, {width: window.width + 1}); |
| } |
| return popupPageId; |
| }); |
| }); |