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
1 changed files with 2 additions and 1 deletions

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;