1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

Support back button navigation on Android (#1917)

When opening a new tab in Fennec, we should pass the ID of the current tab as parentId, so that pressing the back button afterwards closes the new tab and returns to the original tab instead of just closing Firefox.
This commit is contained in:
buttercookie42 2016-08-20 13:52:16 +02:00 committed by Raymond Hill
parent 90a65ea206
commit 3ea58979d5

View File

@ -1000,7 +1000,8 @@ vAPI.tabs.open = function(details) {
if ( vAPI.fennec ) {
tabBrowser.addTab(details.url, {
selected: details.active !== false
selected: details.active !== false,
parentId: tabBrowser.selectedTab.id
});
// Note that it's impossible to move tabs on Fennec, so don't bother
return;