Skip to content

Commit

Permalink
FF profile update
Browse files Browse the repository at this point in the history
  • Loading branch information
v-fox committed Mar 23, 2016
1 parent 2c94037 commit e855318
Show file tree
Hide file tree
Showing 32 changed files with 344 additions and 106 deletions.
@@ -1 +1,2 @@
software.opensuse.org:HSTS 0 16873 1489441291349,1,1
static.opensuse.org:HSTS 0 16883 1490236190929,1,1
software.opensuse.org:HSTS 0 16883 1490236195617,1,1

Large diffs are not rendered by default.

@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist" lastupdate="1457114202000">
<blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist" lastupdate="1458315314000">
<emItems>
<emItem blockID="i58" id="webmaster@buzzzzvideos.info">
<versionRange minVersion="0" maxVersion="*">
Expand Down Expand Up @@ -3429,6 +3429,18 @@
<match name="filename" exp="libflashplayer\.so" /> <versionRange minVersion="11.2.202.554" maxVersion="11.2.202.559" severity="0" vulnerabilitystatus="1"></versionRange>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
</pluginItem>
<pluginItem os="Linux" blockID="p1138">
<match name="filename" exp="libflashplayer\.so" /> <versionRange minVersion="11.2.202.559" maxVersion="11.2.202.569" severity="0" vulnerabilitystatus="1"></versionRange>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
</pluginItem>
<pluginItem blockID="p1139">
<match name="filename" exp="(NPSWF32.*\.dll)|(NPSWF64.*\.dll)|(Flash\ Player\.plugin)" /> <versionRange minVersion="18.0.0.326" maxVersion="18.0.0.329" severity="0" vulnerabilitystatus="1"></versionRange>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
</pluginItem>
<pluginItem blockID="p1140">
<match name="filename" exp="(NPSWF32.*\.dll)|(NPSWF64.*\.dll)|(Flash\ Player\.plugin)" /> <versionRange minVersion="20.0.0.286" maxVersion="20.0.0.306" severity="0" vulnerabilitystatus="1"></versionRange>
<infoURL>https://get.adobe.com/flashplayer/</infoURL>
</pluginItem>
</pluginItems>

<gfxItems>
Expand Down
@@ -1,5 +1,7 @@
[Compatibility]
LastVersion=45.0_2016030500/2016030500
LastVersion=45.0.1_2016031600/2016031600
LastOSABI=Linux_x86_64-gcc3
LastPlatformDir=/usr/lib64/firefox
LastAppDir=/usr/lib64/firefox/browser

InvalidateCaches=1
Binary file not shown.
Expand Up @@ -13,9 +13,9 @@ Extension10=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/{bee6eb20-0
Extension11=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/https-everywhere-eff@eff.org
Extension12=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/abhere2@moztw.org.xpi
Extension13=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/{7f57cf46-4467-4c2d-adfa-0cba7c507e54}.xpi
Extension14=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/s3download@statusbar.xpi
Extension15=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/treestyletab@piro.sakura.ne.jp.xpi
Extension16=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/ClassicThemeRestorer@ArisT2Noia4dev.xpi
Extension14=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/treestyletab@piro.sakura.ne.jp.xpi
Extension15=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/ClassicThemeRestorer@ArisT2Noia4dev.xpi
Extension16=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/s3download@statusbar.xpi

[ThemeDirs]
Extension0=/home/hacker/.mozilla/firefox/y30d7fz5.hacker/extensions/{77d2ed30-4cd2-11e0-b8af-0800200c9a66}
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -2,8 +2,8 @@ Manifest-Version: 1.0

Name: install.rdf
Digest-Algorithms: MD5 SHA1
MD5-Digest: zXMf3we1p6a0kl7OBFRojw==
SHA1-Digest: ysZ5+0fu8yITFPghq++r0DvKxMg=
MD5-Digest: uF5CPGIE8wIc+Dp2y83oMw==
SHA1-Digest: DhDV9uOIH9GJBSbiZ29oJ61JdZs=

Name: .jpmignore
Digest-Algorithms: MD5 SHA1
Expand All @@ -17,18 +17,18 @@ SHA1-Digest: hBvzrYsRacNpTOCOH+GOhYBn2mE=

Name: package.json
Digest-Algorithms: MD5 SHA1
MD5-Digest: xHhWa7+VwsUT3pfTqrV93g==
SHA1-Digest: 8/n1cTHaCVGp21222x5TYgNH9ms=
MD5-Digest: oxZt6C+6naqG4+Jz/3Nzaw==
SHA1-Digest: LtEYyy9uNCZsFClHcyidV6IEKPw=

Name: lib/linux.js
Digest-Algorithms: MD5 SHA1
MD5-Digest: u6d4VQ4tKD9zPkuGys8/Ng==
SHA1-Digest: 1Sa48dMeglTquxZ2uwZe7RnBCUU=
MD5-Digest: bnsveanRNja26NBhjlCntQ==
SHA1-Digest: VKgPA8zbhcE+/PPk/FirZZR0FJ8=

Name: lib/main.js
Digest-Algorithms: MD5 SHA1
MD5-Digest: YBmdAHeFqAAO+UTSuf+n/w==
SHA1-Digest: Dcydq/zz+VTiWccBPGjbWGwQxw0=
MD5-Digest: r8hB5ezsu+PNbBSGLX2jxQ==
SHA1-Digest: iJH83H+rErPXASJHnqSWl+ekjBc=

Name: lib/osx.js
Digest-Algorithms: MD5 SHA1
Expand All @@ -37,8 +37,13 @@ SHA1-Digest: qC0Du526nT8pI2DUl4hnAAHbwA4=

Name: lib/thunderbird.js
Digest-Algorithms: MD5 SHA1
MD5-Digest: Rdk0hPavtmbViAKn2qmE1w==
SHA1-Digest: zEDzDSH8YEfNBe4TftPEAKghO04=
MD5-Digest: 9ojyzKywhsPzfSVaAOxMdA==
SHA1-Digest: +8snOsxpQDxbqM78OkGIXmKLNtg=

Name: lib/thunderbird.js.old
Digest-Algorithms: MD5 SHA1
MD5-Digest: MvBhEe09H3GX7TAs9oM6xg==
SHA1-Digest: ZCOzFArBKwR0m4xwOzt5FNW314o=

Name: lib/utils.js
Digest-Algorithms: MD5 SHA1
Expand Down Expand Up @@ -85,7 +90,7 @@ Digest-Algorithms: MD5 SHA1
MD5-Digest: nihWuJxLmYVyYIWEKjnqNA==
SHA1-Digest: bqgQj9oDjwogksIMzW18DrU/+Ug=

Name: locale/es.properties
Name: locale/es-ES.properties
Digest-Algorithms: MD5 SHA1
MD5-Digest: ZwaFSDkJQ5rSHR4L6ys28Q==
SHA1-Digest: MRI2ZqqsqXYnKuh9F5Cne/Jt6OA=
Expand Down Expand Up @@ -167,8 +172,8 @@ SHA1-Digest: bfynN0ZGd9rEM4nK8xwlJZG39Go=

Name: locale/ru-RU.properties
Digest-Algorithms: MD5 SHA1
MD5-Digest: 5tA8NWtmpQuMsWeKxsfUag==
SHA1-Digest: hV7XQkkZhmoZa6zE6qQGCL/83A0=
MD5-Digest: kVTxJugbHiJSY5w5af7K1A==
SHA1-Digest: XCZ8Lhb2kwiEL9mttMtc7OJoDgY=

Name: locale/sk.properties
Digest-Algorithms: MD5 SHA1
Expand All @@ -195,16 +200,16 @@ Digest-Algorithms: MD5 SHA1
MD5-Digest: 4qjONx9DQwSJx6LAlpqvUA==
SHA1-Digest: TdQ5xk8Ihccyz+zz3puqslQO8Nw=

Name: locale/zh-CN.properties
Digest-Algorithms: MD5 SHA1
MD5-Digest: 4cOt8meg6GJGvXtT2sKXdw==
SHA1-Digest: tT1H7+E/h6VPtWRXm+binSVMPKU=

Name: locale/zh-TW.properties
Digest-Algorithms: MD5 SHA1
MD5-Digest: 05HKvR76ueoktbCyUJvmkw==
SHA1-Digest: 3gEMFPl2EnGV755eiGsKaZ8x/lw=

Name: locale/zn-CN.properties
Digest-Algorithms: MD5 SHA1
MD5-Digest: GB5KLHHQfr+NNlpdeNy0jw==
SHA1-Digest: C4XPB95FAQawI3P2oPqHufqQ7js=

Name: resources/gnotifier/data/ToastNotification.dll
Digest-Algorithms: MD5 SHA1
MD5-Digest: vzj8feFsYWr5sSj9SsEJug==
Expand Down
Binary file not shown.
@@ -1,4 +1,4 @@
Signature-Version: 1.0
MD5-Digest-Manifest: 8PzxIZP3QmOHqXvhkXX2yA==
SHA1-Digest-Manifest: 18A+88gpO7oydbH1IwUW6/mZSp4=
MD5-Digest-Manifest: x48lMGXz2PVJwUd6XvWmLA==
SHA1-Digest-Manifest: 8uWNoZS+1s8DuZdnqaPfjraohi4=

Expand Up @@ -5,7 +5,7 @@
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:unpack>true</em:unpack>
<em:version>1.9.4</em:version>
<em:version>1.9.5</em:version>
<em:name>GNotifier</em:name>
<em:description>GNotifier integrates Firefox/Thunderbird&apos;s notifications with the native notification system. It supports most Linux desktops and Windows 8.</em:description>
<em:creator>Michal Kosciesza &lt;michal@mkiol.net&gt;</em:creator>
Expand All @@ -17,7 +17,7 @@
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>21.0</em:minVersion>
<em:maxVersion>44.*</em:maxVersion>
<em:maxVersion>46.*</em:maxVersion>
</Description>
</em:targetApplication>

Expand All @@ -44,7 +44,7 @@
<Description>
<em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
<em:minVersion>25.0</em:minVersion>
<em:maxVersion>44.*</em:maxVersion>
<em:maxVersion>46.*</em:maxVersion>
</Description>
</em:targetApplication>

Expand Down
Expand Up @@ -252,7 +252,7 @@ linux.checkAvailable = function() {
ctypes.voidptr_t);

checkServerInfo();
console.log("Notify server name: " + checkServerInfo());
//console.log("Notify server name: " + checkServerInfo());
retValue = checkServerCapabilities();

// Debug...
Expand Down
Expand Up @@ -135,16 +135,17 @@ function AlertsService()
{}
AlertsService.prototype = {
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAlertsService]),

showAlertNotification: function GNotifier_AlertsService_showAlertNotification(
imageUrl, title, text, textClickable, cookie, alertListener, name) {

//console.log("showAlertNotification:",imageUrl, title, text, textClickable, cookie, alertListener, name);

// New nsIAlertsService API (FF 46)
showAlert: function(alert, alertListener) {
//console.log("showAlert", alert, alertListener);
this.showAlertNotification(alert.imageURL, alert.title, alert.text, alert.textClickable, alert.cookie, alertListener, alert.name, alert.dir, alert.lang);
},

showAlertNotification: function GNotifier_AlertsService_showAlertNotification(imageUrl, title, text, textClickable, cookie, alertListener, name, dir, lang) {
//console.log("showAlertNotification:",imageUrl, title, text, textClickable, cookie, alertListener, name, dir, lang);
function GNotifier_AlertsService_showAlertNotification_cb(iconPath) {

//console.log("GNotifier_AlertsService_showAlertNotification_cb:",iconPath, title, text, textClickable, cookie, alertListener, name);

// Defing close handler
var closeHandler = function(){
// Generating "alertfinished"
Expand Down Expand Up @@ -302,7 +303,7 @@ exports.main = function(options, callbacks) {
// Replace alert-service
var contract = "@mozilla.org/alerts-service;1";
let registrar = Cm.QueryInterface(Ci.nsIComponentRegistrar);

// Unregister built-in alerts-service class factory
registrar.unregisterFactory(
Cc[contract],
Expand All @@ -316,7 +317,7 @@ exports.main = function(options, callbacks) {
contract,
XPCOMUtils.generateSingletonFactory(AlertsService)
);

loaded = true;
}
}
Expand All @@ -335,6 +336,7 @@ exports.main = function(options, callbacks) {
} catch(e) {}

// Thunderbird init
//console.log("system.name:",system.name);
if (loaded && (system.name == "Thunderbird" || system.name == "SeaMonkey" || system.name == "Icedove")) {
var thunderbird = require('./thunderbird.js');
thunderbird.init();
Expand Down Expand Up @@ -376,3 +378,27 @@ exports.onUnload = function (reason) {
thunderbird.deInit();
}
}

/*let testObserver = {
observe : function(aSubject, aTopic, aData) {
if (aTopic == "console-storage-cache-event" || aTopic == "console-api-log-event"
|| aTopic == "cycle-collector-forget-skippable" || aTopic == "cycle-collector-begin"
|| aTopic == "user-interaction-inactive" || aTopic == "user-interaction-active"
|| aTopic == "sessionstore-state-write" || aTopic == "sessionstore-state-write-complete"
|| aTopic == "promise-finalization-witness" || aTopic == "xul-window-visible"
|| aTopic == "document-shown" || aTopic == "PopupNotifications-updateNotShowing"
|| aTopic == "http-on-opening-request" || aTopic == "http-on-modify-request"
|| aTopic == "http-on-examine-response" || aTopic == "third-party-cookie-accepted"
|| aTopic == "cookie-changed perm-changed")
return;
console.log("-= Data received =-");
console.log("aSubject:"+aSubject);
console.log("aTopic:"+aTopic);
console.log("aData:"+aData);
}
}
let observerService = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);
observerService.addObserver(testObserver, "*", false);*/

@@ -1,3 +1,4 @@

// Thunderbird stuff
module.exports = thunderbird = {};

Expand Down Expand Up @@ -113,20 +114,33 @@ thunderbird.mailListener = {
return folderList;
}

function isFolderExcluded(folder) {
// Junk
if (folder.getFlag(0x40000000))
return true;
// Trash
if (folder.getFlag(0x00000100))
return true;
return false;
}

var sps = require("sdk/simple-prefs").prefs;

//console.log("OnItemIntPropertyChanged: aItem.URI="+aItem.URI+" aProperty="+aProperty+" aOldValue="+aOldValue+" aNewValue="+aNewValue);

// Check if root folder is RSS folder (mailbox://nobody@Feeds)
var rootURIarr = aItem.rootFolder.URI.split("@");
var isRSS = rootURIarr[rootURIarr.length-1] == "Feeds";
if (isRSS && !sps['enableRSS'])
return;

// New mail if BiffState == nsMsgBiffState_NewMail
if (aProperty == "BiffState" &&
aNewValue == Ci.nsIMsgFolder.nsMsgBiffState_NewMail &&
( aOldValue == Ci.nsIMsgFolder.nsMsgBiffState_NoMail || aOldValue == Ci.nsIMsgFolder.nsMsgBiffState_Unknown )
// New mail if BiffState == nsMsgBiffState_NewMail or NewMailReceived = 1
if (
(aProperty == "BiffState" && aNewValue == Ci.nsIMsgFolder.nsMsgBiffState_NewMail &&
(aOldValue == Ci.nsIMsgFolder.nsMsgBiffState_NoMail || aOldValue == Ci.nsIMsgFolder.nsMsgBiffState_Unknown)) ||
(aProperty == "NewMailReceived")
) {

if (sps['simpleNewMail']) {
showSimpleNewMessageNotification(isRSS);
return;
Expand All @@ -141,14 +155,26 @@ thunderbird.mailListener = {

for (var i in folderList) {
if (folderList[i]) {
// Looking for messages with flag == Ci.nsMsgMessageFlags.New
var messages = folderList[i].messages;
while (messages.hasMoreElements()) {
var message = messages.getNext().QueryInterface(Ci.nsIMsgDBHdr);
if (message.flags & Ci.nsMsgMessageFlags.New) {
//console.log("message: ",message.subject);
showNewMessageNotification(message,isRSS);
}
var folder = folderList[i];
if (!isFolderExcluded(folder)) {
// Looking for messages with flag == Ci.nsMsgMessageFlags.New
var messages = folder.messages;
while (messages.hasMoreElements()) {
var message = messages.getNext().QueryInterface(Ci.nsIMsgDBHdr);
if (message.flags & Ci.nsMsgMessageFlags.New) {

//console.log("Message: id="+message.messageId + " gnd="+message.getUint32Property("gnotifier-done"));
/*var property = message.propertyEnumerator;
while (property.hasMore()) {
console.log(property.getNext());
}*/

if (message.getUint32Property("gnotifier-done") != 1) {
showNewMessageNotification(message,isRSS);
message.setUint32Property("gnotifier-done",1);
}
}
}
}
}
}
Expand Down

0 comments on commit e855318

Please sign in to comment.