| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * This file is part of Adblock Plus <https://adblockplus.org/>, |    2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
|    3  * Copyright (C) 2006-2017 eyeo GmbH |    3  * Copyright (C) 2006-2017 eyeo GmbH | 
|    4  * |    4  * | 
|    5  * Adblock Plus is free software: you can redistribute it and/or modify |    5  * Adblock Plus is free software: you can redistribute it and/or modify | 
|    6  * it under the terms of the GNU General Public License version 3 as |    6  * it under the terms of the GNU General Public License version 3 as | 
|    7  * published by the Free Software Foundation. |    7  * published by the Free Software Foundation. | 
|    8  * |    8  * | 
|    9  * Adblock Plus is distributed in the hope that it will be useful, |    9  * Adblock Plus is distributed in the hope that it will be useful, | 
|   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of |   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  416   }; |  416   }; | 
|  417  |  417  | 
|  418  |  418  | 
|  419   /* Context menus */ |  419   /* Context menus */ | 
|  420  |  420  | 
|  421   let contextMenuItems = new ext.PageMap(); |  421   let contextMenuItems = new ext.PageMap(); | 
|  422   let contextMenuUpdating = false; |  422   let contextMenuUpdating = false; | 
|  423  |  423  | 
|  424   let updateContextMenu = () => |  424   let updateContextMenu = () => | 
|  425   { |  425   { | 
|  426     if (contextMenuUpdating) |  426     // Firefox for Android does not support context menus. | 
 |  427     // https://bugzilla.mozilla.org/show_bug.cgi?id=1269062 | 
 |  428     if (!("contextMenus" in chrome) || contextMenuUpdating) | 
|  427       return; |  429       return; | 
|  428  |  430  | 
|  429     contextMenuUpdating = true; |  431     contextMenuUpdating = true; | 
|  430  |  432  | 
|  431     chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => |  433     chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => | 
|  432     { |  434     { | 
|  433       chrome.contextMenus.removeAll(() => |  435       chrome.contextMenus.removeAll(() => | 
|  434       { |  436       { | 
|  435         contextMenuUpdating = false; |  437         contextMenuUpdating = false; | 
|  436  |  438  | 
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  739   ext.windows = { |  741   ext.windows = { | 
|  740     create(createData, callback) |  742     create(createData, callback) | 
|  741     { |  743     { | 
|  742       chrome.windows.create(createData, createdWindow => |  744       chrome.windows.create(createData, createdWindow => | 
|  743       { |  745       { | 
|  744         afterTabLoaded(callback)(createdWindow.tabs[0]); |  746         afterTabLoaded(callback)(createdWindow.tabs[0]); | 
|  745       }); |  747       }); | 
|  746     } |  748     } | 
|  747   }; |  749   }; | 
|  748 }()); |  750 }()); | 
| OLD | NEW |