diff options
| author | mrmr1993 | 2017-12-02 18:42:35 +0000 |
|---|---|---|
| committer | mrmr1993 | 2017-12-02 18:42:35 +0000 |
| commit | 601aad57c843ff1368c5a9e152ea609431cac1a0 (patch) | |
| tree | 46f82dea8bad23852aa131aeedab286bb6086b5c /tests | |
| parent | ff615efa9a41f1de5df1a6eea0e8a3c809f91b4b (diff) | |
| download | vimium-601aad57c843ff1368c5a9e152ea609431cac1a0.tar.bz2 | |
Show browser-blocking complaint in the popup for empty portForTab object
To test the difference:
* load an unblocked URL (e.g. https://www.example.com) in a tab
* open the popup, see that the exclusion rules show as expected
* navigate the tab to a blocked URL (e.g. chrome://extensions)
* open the popup again
Before this commit, the popup still shows the exclusion rules, because
there is still a portForTabs object associated with the tabId.
This commit adds a second check to see if the object is empty, and the
message shows as expected, because all of the ports have been closed and
cleared from the object.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
