Giter Site home page Giter Site logo

Stuck loading IMAP message about messagefaces HOT 4 CLOSED

stanio avatar stanio commented on June 2, 2024
Stuck loading IMAP message

from messagefaces.

Comments (4)

stanio avatar stanio commented on June 2, 2024

Looking into it a bit further – the problem happens just with the latest MessageFaces 1.3, and doesn't happen with version 1.2.6 (changes).

from messagefaces.

JohnDDuncanIII avatar JohnDDuncanIII commented on June 2, 2024

Sorry I missed this, it seems like quite a nasty bug. Let me take a look this weekend and get back to you!

from messagefaces.

JohnDDuncanIII avatar JohnDDuncanIII commented on June 2, 2024

@stanio I believe that I've figured this out.

var inputStream = new (
	Components.Constructor(
		"@mozilla.org/scriptableinputstream;1",
		Components.interfaces.nsIScriptableInputStream
	)
);
inputStream.init(messageStream);

var content = "";
inputStream.available();
while (inputStream.available()) {

in chrome/content/headerOverlay.js fires before the imap message can complete its download, which means that the XPCOM call leads to lock contention/deadlock on the network thread responsible for completing the imap message download.

I took the advice outlined here and added

document.getElementById("messagepanebox").addEventListener(
	"load",
	function messagePaneLoader(e) {
		mfO_UpdateMessageHeaders();
		mfDisplayFace();
	},
	true
);

which fixes the problem.


It also looks like mailcheck.js broke due to http://mozilla.6506.n7.nabble.com/Upcoming-change-to-fixIterator-function-in-iteratorUtils-jsm-td367711.html (dead link — see https://groups.google.com/g/tb-planning/c/lbQIuLNv_2s), so I've fixed that as well.

I will draft a release and let you know when it's ready for download.

As an aside, I have recently moved back to the Firefox/SeaMonkey/Mozilla platform and plan on cleaning this project up a bit as I wrote this when I was initially learning javascript/html/css/xul back in college. Now that I have almost three years of professional experience, I have made a list of infrastructural and stylistic improvements that I would like to add to this project.

from messagefaces.

JohnDDuncanIII avatar JohnDDuncanIII commented on June 2, 2024

@stanio

https://github.com/JohnDDuncanIII/messagefaces/releases
https://github.com/JohnDDuncanIII/messagefaces/releases/download/1.3.1/messagefaces-1.3.1.xpi

http://cs.gettysburg.edu/~duncjo01/sites/messagefaces/
http://cs.gettysburg.edu/~duncjo01/sites/messagefaces/download/messagefaces1_3_1.xpi
http://cs.gettysburg.edu/~duncjo01/sites/messagefaces/history.html

from messagefaces.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.