A kind reminder we would like all registered users to weigh in on one of our forum's security policies.
Please take a moment to read this thread and place a vote.
https://forum.palemoon.org/viewtopic.php?f=17&t=32935

Cannot mark items as dispatched - parcel.royalmail.com

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
MrD2018
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2018-07-03, 15:32
Location: United Kingdom

Cannot mark items as dispatched - parcel.royalmail.com

Post by MrD2018 » 2025-06-25, 14:44

When trying to mark items as dispatched, either using the bulk method or individually, nothing happens. This has changed recently. Works in Chrome and Firefox.

Code: Select all

TypeError: Promise.withResolvers is not a function

User avatar
adoxa
Astronaut
Astronaut
Posts: 535
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by adoxa » 2025-06-26, 00:22

Can you show the script that's in? I'm not seeing it on the main site. Still, without being able to test, it won't help much.

User avatar
MrD2018
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2018-07-03, 15:32
Location: United Kingdom

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by MrD2018 » 2025-06-26, 12:18

The name of the script is "main.729e01f5133628272b1b.js".

User avatar
adoxa
Astronaut
Astronaut
Posts: 535
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by adoxa » 2025-06-27, 14:21

Sorry, I'm going to need the host and path, as well (the ones I tried didn't work).

User avatar
MrD2018
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2018-07-03, 15:32
Location: United Kingdom

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by MrD2018 » 2025-06-27, 15:01


User avatar
adoxa
Astronaut
Astronaut
Posts: 535
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by adoxa » 2025-06-28, 00:22

Thanks. Here's a potential workaround using a Modify HTTP Response filter.

Code: Select all

[["business.parcel.royalmail.com",["/main\\.[0-9a-f]*\\.js/",["/^/","Promise.withResolvers=function(){let resolve,reject,promise;promise=new Promise((res,rej)=>(resolve=res,reject=rej));return{promise,resolve,reject}};"]]]]
If it works, great; if not, it's up to you if want to keep going with the back-and-forth, or give up and just use another browser.

User avatar
MrD2018
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2018-07-03, 15:32
Location: United Kingdom

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by MrD2018 » 2025-06-29, 22:30

I have tried the filter and it works, thanks. Can you explain to me though what exactly was causing the page not to work and how the filter corrected it? It looks complicated but it would be good to understand how it works.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38523
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Cannot mark items as dispatched - parcel.royalmail.com

Post by Moonchild » 2025-06-30, 00:02

MrD2018 wrote:
2025-06-29, 22:30
how the filter corrected it? It looks complicated but it would be good to understand how it works.
Basically the filter polyfills the withResolvers() convenience function that Pale Moon currently doesn't implement.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite