mirror of https://github.com/gorhill/uBlock.git
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:
parent
90a65ea206
commit
3ea58979d5
|
@ -1000,7 +1000,8 @@ vAPI.tabs.open = function(details) {
|
||||||
|
|
||||||
if ( vAPI.fennec ) {
|
if ( vAPI.fennec ) {
|
||||||
tabBrowser.addTab(details.url, {
|
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
|
// Note that it's impossible to move tabs on Fennec, so don't bother
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue