Save real tabs and allow configuration by users via JS hook

Bug: 39616
Change-Id: I64c3b9b53f1265f5b9c19edb480040113fa85590