Forum Discussion

Duarte_Sousa11's avatar
Duarte_Sousa11
Copper Contributor
Oct 06, 2023

SharePoint 2016 Server - mquery.js event deprecation

Hello everyone,

 

On May 31 2023, Google Chrome announced that mutation events are deprecated and will be removed from the browser starting on its 127 version which goes to stable release on July 30 2024 (https://developer.chrome.com/blog/mutation-events-deprecation/).

 

In the meantime, I've noticed in 3 different SharePoint 2016 Server environments that the javascript library mquery.js contains some of these deprecated events such as "DOMSubtreeModified" and "DOMNodeRemoved":

Sorry about the bad quality

Since I want to avoid touching on this library by trying to replace these events by the MutationObserver alternative, is there any known solution (eg: official patch) or workaround for this?

 

Thank you all in advance.

 

Best regards,

Duarte

  • The SharePoint Product Group is aware of this and is planning to address this in a PU ahead of time.
    • mfreed7's avatar
      mfreed7
      Copper Contributor

      Stefan Goßner just checking in on this. Do you know if mquery.js has been updated to not use mutation events? (I'm running the deprecation/removal of mutation events, and the removal date is fast approaching.)

      • Dave66_75's avatar
        Dave66_75
        Copper Contributor

        mfreed7 

         

        I received this communication below when I submitted support ticket to Microsoft concerning these depricated mutation events: 

        "
        I would like to inform you that the fix for this issue will be implemented on September 2024 CU for SharePoint SE. At the moment, there is no plan to implement it for SharePoint 2016\2019."

         

        I didn't get any more info of the matter - like what are the business impacts etc. This much is certain, though: it does not look good 😞

         

  • Tristan999's avatar
    Tristan999
    Iron Contributor
    When I used to manage on-prem environments, I would look at the following blog before performing any patches.

    https://blog.stefan-gossner.com/

    You can probably throw in your question about the patch relating to your question about the deprecated event in one of the SP2016 patch update blogs.
  • viceice's avatar
    viceice
    Copper Contributor

    Same happens on SharePoint 2019, so description and tags should be extended. 🙃

     

  • BarryGoblon's avatar
    BarryGoblon
    Iron Contributor

    Duarte_Sousa11You have brought to my attention an important issue regarding the mquery.js library used in SharePoint 2016 and 2019 on-premises servers. This library contains deprecated mutation events that will be removed from Google Chrome starting with version 127, scheduled for release on July 30, 2024.

     

    While the SharePoint Product Group had initially planned to address this issue with a patch or update, recent communications from Microsoft Support indicate that a fix will only be implemented in the September 2024 Cumulative Update for SharePoint Server Subscription Edition, leaving SharePoint 2016 and 2019 versions potentially vulnerable.

     

    This news is concerning, as it could potentially break functionality for customers still running these older SharePoint versions after the Chrome update. To mitigate this risk, I'll take a proactive approach. First, I'll thoroughly test the impact of disabling mutation events in Chrome by leveraging early release versions or manually disabling the feature.

     

    This will help identify any potential breakages in our SharePoint environment. Simultaneously, I'll escalate this issue with Microsoft Support, demanding a clear understanding of the business impact and exploring potential workarounds if a fix is not provided for SharePoint 2016 and 2019. I'll also investigate alternative solutions or third-party tools that may be able to replace or work around the functionality provided by the mquery.js library. If the impact is deemed significant and no satisfactory workaround is available, I'll initiate discussions with stakeholders regarding the possibility of upgrading to a newer version of SharePoint Server that will receive the necessary updates to address this issue.

     

    Throughout this process, I'll maintain open lines of communication with Microsoft Support, ensuring they understand the criticality of this issue for our organization. Additionally, I'll provide regular updates to keep you informed of our progress and any new developments or recommendations from Microsoft. Rest assured, I am committed to mitigating any potential risks or disruptions caused by the removal of mutation events in Chrome version 127.

     

    My aim is to implement a comprehensive solution that safeguards the functionality of our SharePoint environment while minimizing any impact on our users and business operations.

    • Rob_Elliott's avatar
      Rob_Elliott
      Bronze Contributor

      BarryGoblon He's not brought it to YOUR attention as though you are a Microsoft Support person, he has posted it on the forum where all of us contribute answers & solutions!

      Rob
      Los Gallardos
      Microsoft Power Automate Community Super User.
      Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)

      • BarryGoblon's avatar
        BarryGoblon
        Iron Contributor
        what have I replied wrong? It was brought to my attention too
    • NilsA's avatar
      NilsA
      Copper Contributor
      BarryGoblon: Any news? Chrome 127 went live in July and ships with MutationEvents disabled by default. While it is possible to re-enable them this leads users reporting errors "in SharePoint".
  • danyahA's avatar
    danyahA
    Copper Contributor

    It's now November 2024, and I'm still facing issues with the deprecated `mquery.js` in SharePoint Server 2019. Has anyone found a solution or workaround? Your help would be greatly appreciated

     

Resources