Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Issue 5554 (Cookies from IDN domains are not shown)

  • Loading branch information...
commit b53d47daab996ea04a892b8d6b20687bd6733e61 1 parent 8021d46
Sebastian Zartner authored September 07, 2012
11  extension/content/firebug/cookies/cookieObserver.js
@@ -34,6 +34,8 @@ const filterByPath = "cookies.filterByPath";
34 34
 
35 35
 const panelName = "cookies";
36 36
 
  37
+const idnService = Xpcom.CCSV("@mozilla.org/network/idn-service;1", "nsIIDNService");
  38
+
37 39
 // ********************************************************************************************* //
38 40
 // Cookie observer
39 41
 
@@ -165,6 +167,15 @@ var CookieObserver = Obj.extend(BaseObserver,
165 167
     isHostFromContext: function(context, host, path)
166 168
     {
167 169
         var location;
  170
+        try
  171
+        {
  172
+            host = idnService.convertACEtoUTF8(host);
  173
+        }
  174
+        catch(exc)
  175
+        {
  176
+            if (FBTrace.DBG_ERRORS || FBTrace.DBG_COOKIES)
  177
+                FBTrace.sysout("Host could not be converted to UTF-8", exc);
  178
+        }
168 179
 
169 180
         // Invalid in Chromebug.
170 181
         try

0 notes on commit b53d47d

Please sign in to comment.
Something went wrong with that request. Please try again.