Extends Firefox API to support multiple tab selection. Based on patch attached to bug 566510.