My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 5554 attachment: issue5554.patch (952 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/extension/content/firebug/cookies/cookieObserver.js b/extension/content/firebug/cookies/cookieObserver.js
index d2f92cb..19f5fdd 100644
--- a/extension/content/firebug/cookies/cookieObserver.js
+++ b/extension/content/firebug/cookies/cookieObserver.js
@@ -34,6 +34,8 @@

const panelName = "cookies";

+const idnService = Xpcom.CCSV("@mozilla.org/network/idn-service;1", "nsIIDNService");
+
// ********************************************************************************************* //
// Cookie observer

@@ -165,6 +167,15 @@
isHostFromContext: function(context, host, path)
{
var location;
+ try
+ {
+ host = idnService.convertACEtoUTF8(host);
+ }
+ catch(exc)
+ {
+ if (FBTrace.DBG_ERRORS || FBTrace.DBG_COOKIES)
+ FBTrace.sysout("Host could not be converted to UTF-8", exc);
+ }

// Invalid in Chromebug.
try
Powered by Google Project Hosting