CZC.cz js error/Audible playback

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.
Robin_WH
Moonbather
Moonbather
Posts: 51
Joined: 2016-02-04, 01:19

CZC.cz js error/Audible playback

Unread post by Robin_WH » 2023-05-16, 18:25

On CZC.cz store web, the menus don't discend

On Audible.com in my library section, when I click on play now, a pop-up windows opens with player. Over the player is displayed a message:
An error occured
Browser not supported
Playback is not supported on this browser. Please enable playback of DRM protected content

Code: Select all

Časová značka: 16.05.2023 20:10:01
Chyba: TypeError: this.items.findLastIndex is not a function
Zdrojový soubor: https://www.czc.cz/static/dist/js/core-bundle.578007b5.js
Řádek: 1
Časová značka: 16.05.2023 20:10:01
Chyba: TypeError: t.part is undefined
Zdrojový soubor: https://www.czc.cz/static/dist/js/core-bundle.578007b5.js
Řádek: 1
Časová značka: 16.05.2023 20:12:06
Chyba: TypeError: ownerDocument.defaultView is null
Zdrojový soubor: chrome://mza/content/saving/ContentPolicy.js
Řádek: 73

Časová značka: 16.05.2023 20:09:00
Chyba: DEPRECATION WARNING: This path to Console.jsm is deprecated.  Please use Cu.import("resource://gre/modules/Console.jsm") to load this module.
You may find more details about this deprecation at: https://bugzil.la/912121
Callstack:
resource://gre/modules/devtools/Console.jsm 19 null
chrome://completeyoutubesaver/content/cysCommons.js 22 null

Zdrojový soubor: resource://gre/modules/Deprecated.jsm
Řádek: 85
Attachments
ScreenHunter_03 2023-05-16 20.10.jpg

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: CZC.cz js error/Audible playback

Unread post by Moonchild » 2023-05-16, 18:51

this.items.findLastIndex is not a function
hah yeah. ES2023 JS extension. We don't have that yet. The year isn't even finished yet on that one.
Perfect example of using new shinies before they are widely adopted.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: CZC.cz js error/Audible playback

Unread post by Moonchild » 2023-05-16, 18:53

Playback is not supported on this browser. Please enable playback of DRM protected content
We don't support in-browser DRM.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 784
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: CZC.cz js error/Audible playback

Unread post by jobbautista9 » 2023-05-17, 09:18

Moonchild wrote:
2023-05-16, 18:51
this.items.findLastIndex is not a function
hah yeah. ES2023 JS extension. We don't have that yet. The year isn't even finished yet on that one.
Perfect example of using new shinies before they are widely adopted.
I have a ready patch for it from 4 months ago after I've seen this thread. I didn't make a PR because I was waiting for the OP of that thread to do the implementation themselves (after all they said it's simple enough to implement, pretty disappointing they didn't walk the talk), and I didn't know of any site using this function yet. Good thing I have one ready; I will file an issue and open a PR shortly (I've already tested it).
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 784
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: CZC.cz js error/Audible playback

Unread post by jobbautista9 » 2023-05-17, 09:25

Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
LuftWafflePilot
Fanatic
Fanatic
Posts: 225
Joined: 2021-02-19, 20:46

Re: CZC.cz js error/Audible playback

Unread post by LuftWafflePilot » 2023-05-17, 12:13

Moonchild wrote:
2023-05-16, 18:51
this.items.findLastIndex is not a function
hah yeah. ES2023 JS extension. We don't have that yet. The year isn't even finished yet on that one.
Perfect example of using new shinies before they are widely adopted.
The funny thing is that eshop stopped working in PM, I'm not afraid to say, at least a year ago, so whoever is doing web development must be a little crazy. At the same time, since it works in FF... why not from their point of view I guess.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: CZC.cz js error/Audible playback

Unread post by Moonchild » 2023-05-17, 12:43

LuftWafflePilot wrote:
2023-05-17, 12:13
why not from their point of view I guess.
Because there's no reason to use this sugar and make work for yourself making these changes when it already worked before
UNLESS of course they are looking for "busy work" instead of actually improving functionality.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked