mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Bug 793136: Crash on content type being null. [r=mfinkle]
This commit is contained in:
parent
e3b0658487
commit
6d60343269
@ -263,7 +263,7 @@ public final class Tab {
|
||||
}
|
||||
|
||||
public void setContentType(String contentType) {
|
||||
mContentType = contentType;
|
||||
mContentType = (contentType == null) ? "" : contentType;
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
|
@ -3231,7 +3231,7 @@ Tab.prototype = {
|
||||
tabID: this.id,
|
||||
uri: fixedURI.spec,
|
||||
documentURI: documentURI,
|
||||
contentType: contentType,
|
||||
contentType: (contentType ? contentType : ""),
|
||||
sameDocument: sameDocument
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user