rozetka.com.ua cant login

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.
Harkonnen
Fanatic
Fanatic
Posts: 104
Joined: 2014-11-04, 12:27
Location: Kiev, Ukraine

rozetka.com.ua cant login

Post by Harkonnen » 2021-07-02, 15:25

As of a few days ago, it became impossible to login to rozetka.com.ua (major ukrainian internet shop) using Palemoon

Login popup accepts password, sends sms if 2FA is enabled, but when login popup closes site behave as your are not logged in.

No issues with it in Firefox or Chrome. I tried playing with various user agents it didnt help.

User avatar
jars_
Lunatic
Lunatic
Posts: 430
Joined: 2016-12-27, 00:12

Re: rozetka.com.ua cant login

Post by jars_ » 2021-07-02, 20:48

It seems to me, this is a Rozetka JS-coders error (see error console):
Как мне кажется, это примитивная ошибка кодеров Rozetka и скоро поправят.

Code: Select all

ReferenceError: event is not defined                 iframe_recent_goods:1:1905
	iframeStorage https://rg.rozetka.com.ua/iframe_recent_goods:1:1905
А в файле iframe_recent_goods.js(он оч.маленький) есть такое мест:

Code: Select all


    function iframeStorage(e) {                // - здесь 'e'
        var item, name, data = [];
        var url = new URL(event.origin);    //    -  а здесь 'event' который "is not defined" и где дожна быть 'e'. Выше у них везде 'event', так что тут 
                                                            // просто невнимательность.
        checkPart = String(url.hostname).substr(-1 - String(document.domain).length);
        if (checkPart != '.' + document.domain && checkPart != '/' + document.domain && checkPart != document.domain) {
            return
        }
Думаю, скоро поправят, т.к. я неделю назад заказывал и все было норм. Можно им написать даж, но это если я не ошибся ;)

User avatar
Moonchild
Project founder
Project founder
Posts: 39727
Joined: 2011-08-28, 17:27
Location: Sweden

Re: rozetka.com.ua cant login

Post by Moonchild » 2021-07-02, 21:05

jars_ wrote:
2021-07-02, 20:48
It seems to me, this is a Rozetka JS-coders error (see error console):
It is.
They are using a global ambiguous event ('event') instead of the event passed into the event handler function ('e').
We do not support ambiguous global event references, never have, and in fact it's strongly discouraged even by the powers-that-be.
You do not have the required permissions to view the files attached to this post.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: rozetka.com.ua cant login

Post by New Tobin Paradigm » 2021-07-03, 00:19

THANK FUCK FOR THAT. I am so glad holding off on this absolute fuckwit change for three years paid off cause if we had gone forward with it it would have been a fucked over disaster for our js engine, I suspect.