Bug 793136: Crash on content type being null. [r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian 2012-09-24 16:42:53 -07:00
parent e3b0658487
commit 6d60343269
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ public final class Tab {
}
public void setContentType(String contentType) {
mContentType = contentType;
mContentType = (contentType == null) ? "" : contentType;
}
public String getContentType() {

View File

@ -3231,7 +3231,7 @@ Tab.prototype = {
tabID: this.id,
uri: fixedURI.spec,
documentURI: documentURI,
contentType: contentType,
contentType: (contentType ? contentType : ""),
sameDocument: sameDocument
}
};