mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
26 lines
749 B
JavaScript
26 lines
749 B
JavaScript
const Cc = Components.classes;
|
|
const Ci = Components.interfaces;
|
|
const Cu = Components.utils;
|
|
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
function CookiePromptService() {
|
|
}
|
|
|
|
CookiePromptService.prototype = {
|
|
classDescription: "Cookie Prompt Test Service",
|
|
contractID: "@mozilla.org/embedcomp/cookieprompt-service;1",
|
|
classID: Components.ID("{509b5540-c87c-11dd-ad8b-0800200c9a66}"),
|
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsICookiePromptService]),
|
|
|
|
cookieDialog: function(parent, cookie, hostname,
|
|
cookiesFromHost, changingCookie,
|
|
rememberDecision) {
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
function NSGetModule(compMgr, fileSpec) {
|
|
return XPCOMUtils.generateModule([CookiePromptService]);
|
|
}
|