Bug 840574 - Add applicationId to tabs; use it to open new urls in the correct tabs. r=margaret

Note that I'm not actually sure where delayLoad and selected are used by
Gecko and thus the side effects of changing them (but I did set the flags
as I'd expect for them to work).
This commit is contained in:
Michael Comella
2015-05-01 15:04:07 -07:00
parent 1e50dff8be
commit d632ee27c0
4 changed files with 122 additions and 45 deletions

View File

@@ -50,6 +50,7 @@ public class Tab {
private String mTitle;
private Bitmap mFavicon;
private String mFaviconUrl;
private String mApplicationId;
// The set of all available Favicons for this tab, sorted by attractiveness.
final TreeSet<RemoteFavicon> mAvailableFavicons = new TreeSet<>();
@@ -194,6 +195,14 @@ public class Tab {
return mFavicon;
}
protected String getApplicationId() {
return mApplicationId;
}
protected void setApplicationId(final String applicationId) {
mApplicationId = applicationId;
}
public BitmapDrawable getThumbnail() {
return mThumbnail;
}