better packaged tab handling (bug 825681)