Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Intelligence without character is a dangerous thing." -- G. Steinem


computers / alt.comp.software.seamonkey / Re: DTA 3.1.2 was broken in SM 2.53.17b

SubjectAuthor
* DTA 3.1.2 was broken in SM 2.53.17brdtom
`* DTA 3.1.2 was broken in SM 2.53.17bDirk Fieldhouse
 `- DTA 3.1.2 was broken in SM 2.53.17bfrg

1
DTA 3.1.2 was broken in SM 2.53.17b

<070fc264-9a9b-736f-6243-7ca0bd699faf@mail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=257&group=alt.comp.software.seamonkey#257

  copy link   Newsgroups: alt.comp.software.seamonkey
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rtcape@mail.com (rdtom)
Newsgroups: alt.comp.software.seamonkey
Subject: DTA 3.1.2 was broken in SM 2.53.17b
Date: Mon, 27 Mar 2023 07:52:22 -0600
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <070fc264-9a9b-736f-6243-7ca0bd699faf@mail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="c24ade1411d60306edeff63c8e5d6a0d";
logging-data="3415576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19niA0z6BAHBUldlqgWG8w3"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.17
Cancel-Lock: sha1:uLweyfbmSxAimqvDk9Y5q3K223Y=
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: rdtom - Mon, 27 Mar 2023 13:52 UTC

DTA 3.1.2 was broken in SM 2.53.17b
Builds for March 4 through March 15 were broken because
DeferredSave was removed from omni.ja
I have made a workaround.
http://forums.mozillazine.org/viewtopic.php?f=6&t=3108557

Re: DTA 3.1.2 was broken in SM 2.53.17b

<pbKdnVO_s9tgxf_5nZ2dnZfqn_adnZ2d@brightview.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=498&group=alt.comp.software.seamonkey#498

  copy link   Newsgroups: alt.comp.software.seamonkey
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 15 May 2023 16:08:29 +0000
Subject: Re: DTA 3.1.2 was broken in SM 2.53.17b
Newsgroups: alt.comp.software.seamonkey
References: <070fc264-9a9b-736f-6243-7ca0bd699faf@mail.com>
From: surname@gmx.net.plusremovethisandtherest.example.com (Dirk Fieldhouse)
Organization: Speaking personally
Date: Mon, 15 May 2023 17:08:28 +0100
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:91.0) Gecko/20100101 Firefox/91.0
SeaMonkey/2.53.16
MIME-Version: 1.0
In-Reply-To: <070fc264-9a9b-736f-6243-7ca0bd699faf@mail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <pbKdnVO_s9tgxf_5nZ2dnZfqn_adnZ2d@brightview.co.uk>
Lines: 59
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-NKG2hyQy4jB5E2u257hidDvSEyKiW+8qlXNjO452CN44l8btr8uVf0hLO/AQU6Jax9BoKu35NmLJgH/!pdhzKwl4fxICpCRAsPRx/H6QtpylG6sKqlxQOc43O/kf99Jk3UachJ+2Y0y7xhjQ8PfjHNcGlPZE!B4DLeGDLhq17dC+B5LezaDk7
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dirk Fieldhouse - Mon, 15 May 2023 16:08 UTC

On 27/03/2023 14:52, rdtom wrote:
> DTA 3.1.2 was broken in SM 2.53.17b
> Builds for March 4 through March 15 were broken because
> DeferredSave was removed from omni.ja
> I have made a workaround.
> http://forums.mozillazine.org/viewtopic.php?f=6&t=3108557

frg wrote
<http://forums.mozillazine.org/viewtopic.php?p=14952628&sid=0fa9ba4f129a7a291d46d0fb78d8bb2b#p14952628>:

>> Temporary Fixes for DTA
>
> If I understand correctly only needed if we take out DeferredSave.jsm again? Right?
>
> Maybe you should ask Dirk if he can put this in and update the real one.

I can only find DeferredSave in modules/support/filtermanager.js. I hope
this would be enough:

--- old/DownThemAll/modules/support/filtermanager.js
+++ new/DownThemAll/modules/support/filtermanager.js
@@ -21,7 +21,7 @@
const {mapInSitu} = require("utils");
const {OS} = requireJSM("resource://gre/modules/osfile.jsm");
const {Task} = requireJSM("resource://gre/modules/Task.jsm");
-const {DeferredSave} =
requireJSM("resource://gre/modules/DeferredSave.jsm");
+const {DeferredTask} =
requireJSM("resource://gre/modules/DeferredTask.jsm");

const nsITimer = Ci.nsITimer;

@@ -326,10 +326,16 @@
this._localizedLabels[prop.key] = prop.value;
}
this._file = require("api").getProfileFile(FILTERS_FILE, true);
- this._saver = new DeferredSave(
- this._file.path,
+ let saver = async function () {
+ let json = JSON.stringify.bind(JSON, this, null, 2)
+ let path = this._file.path
+ await OS.File.writeAtomic(path, json, {tmpPath: `${path}.tmp`});
+ }
+ this._saver = new DeferredTask(
+ saver,
JSON.stringify.bind(JSON, this, null, 2),
100);
+ this._saver.flush = this._saver.finalize;
this._reload();
},

But as this JS syntax is completely deranged, my confidence is low...

/df

--
London
UK

Re: DTA 3.1.2 was broken in SM 2.53.17b

<kcf6qrF2hkuU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=499&group=alt.comp.software.seamonkey#499

  copy link   Newsgroups: alt.comp.software.seamonkey
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: frgrahl@gmx.net (frg)
Newsgroups: alt.comp.software.seamonkey
Subject: Re: DTA 3.1.2 was broken in SM 2.53.17b
Date: Mon, 15 May 2023 19:01:15 +0200
Lines: 62
Message-ID: <kcf6qrF2hkuU1@mid.individual.net>
References: <070fc264-9a9b-736f-6243-7ca0bd699faf@mail.com>
<pbKdnVO_s9tgxf_5nZ2dnZfqn_adnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net dhE6IXIw+PQqA+0T6fZkvA2NCtgLHp8d5q+1I4G9XG1oO5ync=
Cancel-Lock: sha1:ZFPvNOW2xhNsvJ+Ldozq3PPKM8M=
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0
In-Reply-To: <pbKdnVO_s9tgxf_5nZ2dnZfqn_adnZ2d@brightview.co.uk>
 by: frg - Mon, 15 May 2023 17:01 UTC

Dirk Fieldhouse wrote:
> On 27/03/2023 14:52, rdtom wrote:
>> DTA 3.1.2 was broken in SM 2.53.17b
>> Builds for March 4 through March 15 were broken because
>> DeferredSave was removed from omni.ja
>> I have made a workaround.
>> http://forums.mozillazine.org/viewtopic.php?f=6&t=3108557
>
> frg wrote
> <http://forums.mozillazine.org/viewtopic.php?p=14952628&sid=0fa9ba4f129a7a291d46d0fb78d8bb2b#p14952628>:
>
>
>>> Temporary Fixes for DTA
>>
>> If I understand correctly only needed if we take out DeferredSave.jsm again?
>> Right?
>>
>> Maybe you should ask Dirk if he can put this in and update the real one.
>
> I can only find DeferredSave in modules/support/filtermanager.js. I hope this
> would be enough:
>
> --- old/DownThemAll/modules/support/filtermanager.js
> +++ new/DownThemAll/modules/support/filtermanager.js
> @@ -21,7 +21,7 @@
>  const {mapInSitu} = require("utils");
>  const {OS} = requireJSM("resource://gre/modules/osfile.jsm");
>  const {Task} = requireJSM("resource://gre/modules/Task.jsm");
> -const {DeferredSave} = requireJSM("resource://gre/modules/DeferredSave.jsm");
> +const {DeferredTask} = requireJSM("resource://gre/modules/DeferredTask.jsm");
>
>  const nsITimer = Ci.nsITimer;
>
> @@ -326,10 +326,16 @@
>              this._localizedLabels[prop.key] = prop.value;
>          }
>          this._file = require("api").getProfileFile(FILTERS_FILE, true);
> -        this._saver = new DeferredSave(
> -            this._file.path,
> +        let saver = async function () {
> +          let json = JSON.stringify.bind(JSON, this, null, 2)
> +          let path = this._file.path
> +          await OS.File.writeAtomic(path, json, {tmpPath: `${path}.tmp`});
> +        }
> +        this._saver = new DeferredTask(
> +            saver,
>              JSON.stringify.bind(JSON, this, null, 2),
>              100);
> +        this._saver.flush = this._saver.finalize;
>          this._reload();
>      },
>
>
> But as this JS syntax is completely deranged, my confidence is low...
>
> /df
>

Best would probably to copy the jsm into DTA. But can stay for now. Not
blocking anything just dead code unless you run an add-on which needs it.

FRG

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor