mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 793136: Crash on content type being null. [r=mfinkle]
This commit is contained in:
parent
61432139c7
commit
1540f7ce6f
@ -263,7 +263,7 @@ public final class Tab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setContentType(String contentType) {
|
public void setContentType(String contentType) {
|
||||||
mContentType = contentType;
|
mContentType = (contentType == null) ? "" : contentType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
|
@ -3231,7 +3231,7 @@ Tab.prototype = {
|
|||||||
tabID: this.id,
|
tabID: this.id,
|
||||||
uri: fixedURI.spec,
|
uri: fixedURI.spec,
|
||||||
documentURI: documentURI,
|
documentURI: documentURI,
|
||||||
contentType: contentType,
|
contentType: (contentType ? contentType : ""),
|
||||||
sameDocument: sameDocument
|
sameDocument: sameDocument
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user