Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
SEBWIN-287 Updated seb2 browser with further fix for lockscreen being…
Browse files Browse the repository at this point in the history
… displayed again after unlocking it with the quit password.
  • Loading branch information
danschlet committed Aug 31, 2018
1 parent 818dc7a commit 4478fbb
Show file tree
Hide file tree
Showing 30 changed files with 11 additions and 4 deletions.
Empty file modified SebWindowsBrowser/xul_seb/chrome.manifest
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/branding.jar
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/branding.manifest
100644 → 100755
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified SebWindowsBrowser/xul_seb/chrome/content/seb/css/seb.css
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/content/seb/err.xul
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/content/seb/load.xul
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/content/seb/seb.properties
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/content/seb/seb.xul
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/locale/seb/en-US/seb.dtd
100644 → 100755
Empty file.
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/locale/seb/fr-FR/seb.dtd
100644 → 100755
Empty file.
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/chrome/seb.manifest
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/components/xulApplication.js
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/debug_prefs.js
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/debug_reset_prefs.js
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/globals/prototypes.js
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/modules/SebBrowser.jsm
100644 → 100755
Empty file.
11 changes: 8 additions & 3 deletions SebWindowsBrowser/xul_seb/modules/SebHost.jsm
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ this.SebHost = {
msgHandler : {},
sendHandler : {},
reconnectTry : 0,
//reconnectTriesReached : false,
reconnectTriesReached : false,
reconnectInterval : 0,
reconnectMaxTries : 0,
reconnectIntervalObj : null,
Expand Down Expand Up @@ -138,14 +138,14 @@ this.SebHost = {
sl.debug("messageSocket close: " + e);
messageSocket = null;
base.messageServer = false;
if (!seb.isLocked && su.getConfig("lockOnMessageSocketClose","boolean",false)) {
if (!seb.isLocked && su.getConfig("lockOnMessageSocketClose","boolean",true) && !base.reconnectTriesReached) {
seb.lock();
}
}

messageSocket.onmessage = function(evt) {
// ToDo: message handling !!
sl.debug("socket message type: " + evt.type);
// sl.debug("socket message type: " + evt.type);
if (/^SEB\./.test(evt.data)) { // old string messages
switch (evt.data) {
case "SEB.close" :
Expand Down Expand Up @@ -250,6 +250,10 @@ this.SebHost = {
},

reconnectSocket : function() {
if (base.reconnectTriesReached) {
base.resetReconnecting();
return;
}
sl.debug("reconnectSocket...");
if (base.messageServer) {
sl.debug("message socket reconnected!");
Expand All @@ -260,6 +264,7 @@ this.SebHost = {
base.reconnectTry += 1;
if (base.reconnectTry > base.reconnectMaxTries) {
sl.debug("reconnectMaxTries reached");
base.reconnectTriesReached = true;
base.resetReconnecting();
seb.setUnlockScreen();
return;
Expand Down
Empty file modified SebWindowsBrowser/xul_seb/modules/SebLog.jsm
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/modules/SebServer.jsm
100644 → 100755
Empty file.
Empty file modified SebWindowsBrowser/xul_seb/modules/SebUtils.jsm
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion SebWindowsBrowser/xul_seb/modules/seb.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,15 @@ this.seb = {
imageBox.classList.remove("hidden2");
}
}
ss.sendUnlock();
base.isLocked = false;
if (!fromSocket) {
if (sh.messageServer) {
base.deleteUnconnectedMessage();
}
}
else {
ss.sendUnlock();
}
},

quit: function(e) {
Expand Down
Empty file modified SebWindowsBrowser/xul_seb/seb.ini
100644 → 100755
Empty file.

0 comments on commit 4478fbb

Please sign in to comment.