mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1098666 - Don't crash when getting this through CPOWs. r=billm
This commit is contained in:
parent
a954ec858b
commit
f78929d4f7
@ -47,7 +47,7 @@ SiteSpecificUserAgent.prototype = {
|
||||
}
|
||||
|
||||
let data = { uri: aURI };
|
||||
let result = cpmm.sendSyncMessage("Useragent:GetOverride", data)[0] || HTTP_PROTO_HANDLER.userAgent;
|
||||
let result = cpmm.sendRpcMessage("Useragent:GetOverride", data)[0] || HTTP_PROTO_HANDLER.userAgent;
|
||||
|
||||
if (this.userAgentCache.size >= MAX_CACHE_SIZE) {
|
||||
this.userAgentCache.clear();
|
||||
|
@ -66,6 +66,7 @@
|
||||
ok(obj.a === 3, "constructor call");
|
||||
ok(document.title === "Hello, Kitty", "document node");
|
||||
is(typeof document.cookie, "string", "can get document.cookie");
|
||||
is(typeof document.defaultView.navigator.userAgent, "string", "can get navigator.userAgent");
|
||||
|
||||
data.i = 6;
|
||||
data.b = false;
|
||||
|
Loading…
Reference in New Issue
Block a user