maildev@lists.thunderbird.net

Thunderbird email developers

View all threads

Re: [Maildev] jQuery and innerHTML issues

CL
Christopher Leidigh
Tue, Aug 13, 2019 6:28 PM

Paul
I have been looking at that and other similar articles debating about
taking the plunge or not.
I think that's going to be a lot of work, but has to be done sometime. 
Conversations by Jonathan P.

uses jQuery, I'm also thinking of reaching out to him.

Jorg
Executing the following in the console or code from a button click
actually generates a similar error.

openContentTab('<a class="moz-txt-link-rfc2396E" href="http://www.jorgk.com">http://www.jorgk.com</a>',"tab");

openContentTab('<a class="moz-txt-link-rfc2396E" href="http://www.jorgk.com">http://www.jorgk.com</a>',"tab");
undefined
[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIWebNavigation.loadURI]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://global/content/elements/browser-custom-element.js :: loadURI/<
:: line 849"  data: no] browser-custom-element.js:849:26
    loadURI chrome://global/content/elements/browser-custom-element.js:849
    _wrapURIChangeCall
chrome://global/content/elements/browser-custom-element.js:788
    loadURI chrome://global/content/elements/browser-custom-element.js:848
    openTab chrome://messenger/content/specialTabs.js:816
    openTab chrome://messenger/content/tabmail.xml:610
    openTab chrome://communicator/content/utilityOverlay.js:246
    openContentTab chrome://communicator/content/utilityOverlay.js:273
    <anonymous> debugger eval code:1
    getEvalResult
resource://devtools/server/actors/webconsole/eval-with-debugger.js:134
    evalWithDebugger
resource://devtools/server/actors/webconsole/eval-with-debugger.js:105
    evaluateJS resource://devtools/server/actors/webconsole.js:1005
    evaluateJSAsync resource://devtools/server/actors/webconsole.js:910
    evaluateJSAsync self-hosted:1005
    onPacket resource://devtools/server/main.js:1291
    send resource://devtools/shared/transport/local-transport.js:64
    makeInfallible
resource://devtools/shared/ThreadSafeDevToolsUtils.js:109
    makeInfallible
resource://devtools/shared/ThreadSafeDevToolsUtils.js:109
Security Error: Content at
about:neterror?e=malformedURI&u=%3Ca%20class%3D%22moz-txt-link-rfc2396E%22%20href%3D%22http%3A//www.jorgk.com%22%3Ehttp%3A//www.jorgk.com%3C/a%3E&c=UTF-8&f=regular&d=Please%20check%20that%20the%20URL%20is%20correct%20and%20try%20again.
may not load or link to chrome://global/skin/icons/warning.svg.

On 8/13/2019 12:00 PM, maildev-request@lists.thunderbird.net wrote:

Send Maildev mailing list submissions to
maildev@lists.thunderbird.net

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net

or, via email, send a message with subject or body 'help' to
maildev-request@lists.thunderbird.net

You can reach the person managing the list at
maildev-owner@lists.thunderbird.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Maildev digest..."

Today's Topics:

 1. Re: jQuery and innerHTML issues (J?rg Knobloch)
 2. Re: jQuery and innerHTML issues (Paul Morris)

Message: 1
Date: Mon, 12 Aug 2019 21:15:28 +0200
From: J?rg Knobloch jorgk@jorgk.com
To: maildev@lists.thunderbird.net
Subject: Re: [Maildev] jQuery and innerHTML issues
Message-ID: 1da31bd8-163a-5c2a-ed22-109a4cb00da8@jorgk.com
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: http://lists.thunderbird.net/pipermail/maildev_lists.thunderbird.net/attachments/20190812/9704045d/attachment-0001.html


Message: 2
Date: Mon, 12 Aug 2019 15:18:52 -0400
From: Paul Morris paul@thunderbird.net
To: maildev@lists.thunderbird.net
Subject: Re: [Maildev] jQuery and innerHTML issues
Message-ID: 25126c50-60d2-16af-50a0-99bb8121f7fd@thunderbird.net
Content-Type: text/plain; charset=utf-8; format=flowed

On 8/11/19 10:30 PM, Christopher Leidigh wrote:

In my adopted extension ThunderStats by Micz , there is a significant
use of jQuery including manipulation of HTML for the the main tab.

This is probably not immediately relevant, but if you ever decide to
drop the jQuery dependency:

http://youmightnotneedjquery.com/

-Paul


Subject: Digest Footer


Maildev mailing list
Maildev@lists.thunderbird.net
http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net


End of Maildev Digest, Vol 26, Issue 11


Paul I have been looking at that and other similar articles debating about taking the plunge or not. I think that's going to be a lot of work, but has to be done sometime.  Conversations by Jonathan P. uses jQuery, I'm also thinking of reaching out to him. Jorg Executing the following in the console or code from a button click actually generates a similar error. openContentTab('<a class="moz-txt-link-rfc2396E" href="http://www.jorgk.com">http://www.jorgk.com</a>',"tab"); openContentTab('<a class="moz-txt-link-rfc2396E" href="http://www.jorgk.com">http://www.jorgk.com</a>',"tab"); undefined [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.loadURI]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://global/content/elements/browser-custom-element.js :: loadURI/< :: line 849"  data: no] browser-custom-element.js:849:26     loadURI chrome://global/content/elements/browser-custom-element.js:849     _wrapURIChangeCall chrome://global/content/elements/browser-custom-element.js:788     loadURI chrome://global/content/elements/browser-custom-element.js:848     openTab chrome://messenger/content/specialTabs.js:816     openTab chrome://messenger/content/tabmail.xml:610     openTab chrome://communicator/content/utilityOverlay.js:246     openContentTab chrome://communicator/content/utilityOverlay.js:273     <anonymous> debugger eval code:1     getEvalResult resource://devtools/server/actors/webconsole/eval-with-debugger.js:134     evalWithDebugger resource://devtools/server/actors/webconsole/eval-with-debugger.js:105     evaluateJS resource://devtools/server/actors/webconsole.js:1005     evaluateJSAsync resource://devtools/server/actors/webconsole.js:910     evaluateJSAsync self-hosted:1005     onPacket resource://devtools/server/main.js:1291     send resource://devtools/shared/transport/local-transport.js:64     makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:109     makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:109 Security Error: Content at about:neterror?e=malformedURI&u=%3Ca%20class%3D%22moz-txt-link-rfc2396E%22%20href%3D%22http%3A//www.jorgk.com%22%3Ehttp%3A//www.jorgk.com%3C/a%3E&c=UTF-8&f=regular&d=Please%20check%20that%20the%20URL%20is%20correct%20and%20try%20again. may not load or link to chrome://global/skin/icons/warning.svg. On 8/13/2019 12:00 PM, maildev-request@lists.thunderbird.net wrote: > Send Maildev mailing list submissions to > maildev@lists.thunderbird.net > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net > > or, via email, send a message with subject or body 'help' to > maildev-request@lists.thunderbird.net > > You can reach the person managing the list at > maildev-owner@lists.thunderbird.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Maildev digest..." > > > Today's Topics: > > 1. Re: jQuery and innerHTML issues (J?rg Knobloch) > 2. Re: jQuery and innerHTML issues (Paul Morris) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 12 Aug 2019 21:15:28 +0200 > From: J?rg Knobloch <jorgk@jorgk.com> > To: maildev@lists.thunderbird.net > Subject: Re: [Maildev] jQuery and innerHTML issues > Message-ID: <1da31bd8-163a-5c2a-ed22-109a4cb00da8@jorgk.com> > Content-Type: text/plain; charset="us-ascii" > > An HTML attachment was scrubbed... > URL: <http://lists.thunderbird.net/pipermail/maildev_lists.thunderbird.net/attachments/20190812/9704045d/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Mon, 12 Aug 2019 15:18:52 -0400 > From: Paul Morris <paul@thunderbird.net> > To: maildev@lists.thunderbird.net > Subject: Re: [Maildev] jQuery and innerHTML issues > Message-ID: <25126c50-60d2-16af-50a0-99bb8121f7fd@thunderbird.net> > Content-Type: text/plain; charset=utf-8; format=flowed > > On 8/11/19 10:30 PM, Christopher Leidigh wrote: > >> In my adopted extension ThunderStats by Micz , there is a significant >> use of jQuery including manipulation of HTML for the the main tab. >> > This is probably not immediately relevant, but if you ever decide to > drop the jQuery dependency: > > http://youmightnotneedjquery.com/ > > -Paul > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Maildev mailing list > Maildev@lists.thunderbird.net > http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net > > > ------------------------------ > > End of Maildev Digest, Vol 26, Issue 11 > ***************************************
JK
Jörg Knobloch
Tue, Aug 13, 2019 8:52 PM

On 13 Aug 2019 20:28, Christopher Leidigh wrote:

Executing the following in the console or code from a button click
actually generates a similar error.

Well, what you passed in was invalid, this will do the same:
openContentTab('<klops>',"tab");

Somehow it's trying to tell you that about:neterror can't load
chrome://global/skin/icons/warning.svg, but it seems to show that icon.

In any case, that looks 500% unrelated to the jQuery issue.

Jörg.

On 13 Aug 2019 20:28, Christopher Leidigh wrote: > Executing the following in the console or code from a button click > actually generates a similar error. Well, what you passed in was invalid, this will do the same: openContentTab('<klops>',"tab"); Somehow it's trying to tell you that about:neterror can't load chrome://global/skin/icons/warning.svg, but it seems to show that icon. In any case, that looks 500% unrelated to the jQuery issue. Jörg.