Closed Bug 1565418 Opened 5 years ago Closed 5 years ago

latest firefox build version 68 upgrade broke my company's menu

Categories

(Core :: DOM: Core & HTML, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: atsao, Unassigned)

References

(Regression)

Details

(Keywords: regression, site-compat)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134

Actual results:

latest version https://www.ssfautoparts.com
the menu tab does not work anymore. Still works on older version 66

Non of our client can use latest firefox to do business on our website.

Expected results:

The menu click should load different ajax content.

Just to be specific not all menu are broken. Certain menu item if you compare it with Chrome. Click on Expertise on the top menu tab and then click on either Car Lines and SSF Technical does not work. But other menu tab still functional.

(edited, to add URL)

https://www.ssfautoparts.com/assets/scripts/public-02122018.min.js

function LoadThisPage(objID, Page, root, loginContent, thisMenu, shopMenu, shopMenuTab, menuDisp) {
...
    if (window.ActiveXObject) {
...
    } else if (window.XMLHttpRequest) {
...
        if (is_chrome_safari || isNewIERV) {
            var xhReq = new XMLHttpRequest();
            xhReq.open("GET", url, false);
            xhReq.send(null);
            var PageContent = xhReq.responseXML.getElementsByTagName("PageContent");
            if (PageContent != null || PageContent[0].firstChild.data != 'Not Valid') {
                PageContent = PageContent[0].firstChild.data;
                //document.getElementById(objID).innerHTML = '<div>Loading Page...</div>';
                resetScroll();
                setTimeout(function () {
                    document.getElementById(objID).innerHTML = PageContent;
                    if (canGetCookie) {
                        getCookie(root + 'getCookie.aspx');
                    }
                }, 0);
            }
        } else {
            oLoadedXML = document.implementation.createDocument("", "", null);
            oLoadedXML.async = false;
            var loaded = oLoadedXML.load(url);

This code uses XMLDocument.prototype.load [1] that is non-standard and removed recently [2]

then, if I modify if (is_chrome_safari || isNewIERV) { line above to just if (true) {, it seems to work.

[1] https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/load
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=332175

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
See Also: → 332175
Keywords: site-compat
Keywords: regression
Summary: latest firebug build version 68 upgrade broke my compnay's menu → latest firefox build version 68 upgrade broke my company's menu
See Also: 332175

Anthony, thank you for the bug report.

Is it possible for your company's site to fix its sniffing to not run different code in Firefox from all other browsers? That should fix the problem...

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(atsao)

Yes we can try that. We update again shortly.

Flags: needinfo?(atsao)

o.k. Thanks we made some changes based on your suggestion not to do the outdated xml load appears to be working now.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.