Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix missing Xpcom prefixes

  • Loading branch information...
commit 694eb350eb2a3104d8517c89bf2d7800e3708165 1 parent e0e71af
@janodvarko janodvarko authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 extension/content/firebug/cookies/cookieModule.js
View
9 extension/content/firebug/cookies/cookieModule.js
@@ -859,7 +859,7 @@ Firebug.CookieModule = Obj.extend(Firebug.ActivableModule,
{
try
{
- var fp = CCIN("@mozilla.org/filepicker;1", "nsIFilePicker");
+ var fp = Xpcom.CCIN("@mozilla.org/filepicker;1", "nsIFilePicker");
fp.init(window, null, Ci.nsIFilePicker.modeSave);
fp.appendFilters(Ci.nsIFilePicker.filterAll | Ci.nsIFilePicker.filterText);
fp.filterIndex = 1;
@@ -868,7 +868,7 @@ Firebug.CookieModule = Obj.extend(Firebug.ActivableModule,
var rv = fp.show();
if (rv == Ci.nsIFilePicker.returnOK || rv == Ci.nsIFilePicker.returnReplace)
{
- var foStream = CCIN("@mozilla.org/network/file-output-stream;1", "nsIFileOutputStream");
+ var foStream = Xpcom.CCIN("@mozilla.org/network/file-output-stream;1", "nsIFileOutputStream");
foStream.init(fp.file, 0x02 | 0x08 | 0x20, 0666, 0); // write, create, truncate
var e = cookieManager.enumerator;
@@ -907,7 +907,7 @@ Firebug.CookieModule = Obj.extend(Firebug.ActivableModule,
{
try
{
- var fp = CCIN("@mozilla.org/filepicker;1", "nsIFilePicker");
+ var fp = Xpcom.CCIN("@mozilla.org/filepicker;1", "nsIFilePicker");
fp.init(window, null, Ci.nsIFilePicker.modeSave);
fp.appendFilters(Ci.nsIFilePicker.filterAll | Ci.nsIFilePicker.filterText);
fp.filterIndex = 1;
@@ -916,7 +916,8 @@ Firebug.CookieModule = Obj.extend(Firebug.ActivableModule,
var rv = fp.show();
if (rv == Ci.nsIFilePicker.returnOK || rv == Ci.nsIFilePicker.returnReplace)
{
- var foStream = CCIN("@mozilla.org/network/file-output-stream;1", "nsIFileOutputStream");
+ var foStream = Xpcom.CCIN("@mozilla.org/network/file-output-stream;1",
+ "nsIFileOutputStream");
foStream.init(fp.file, 0x02 | 0x08 | 0x20, 0666, 0); // write, create, truncate
var panel = context.getPanel(panelName, true);
Please sign in to comment.
Something went wrong with that request. Please try again.