Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue 5554 (Cookies from IDN domains are not shown)

  • Loading branch information...
commit b53d47daab996ea04a892b8d6b20687bd6733e61 1 parent 8021d46
@SebastianZ SebastianZ authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 extension/content/firebug/cookies/cookieObserver.js
View
11 extension/content/firebug/cookies/cookieObserver.js
@@ -34,6 +34,8 @@ const filterByPath = "cookies.filterByPath";
const panelName = "cookies";
+const idnService = Xpcom.CCSV("@mozilla.org/network/idn-service;1", "nsIIDNService");
+
// ********************************************************************************************* //
// Cookie observer
@@ -165,6 +167,15 @@ var CookieObserver = Obj.extend(BaseObserver,
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
Please sign in to comment.
Something went wrong with that request. Please try again.