Check for disabled JS fails and hides entire page in Edge with AB/ABP enabled

Fixed Issue #8554007

Details

Created
Aug 19, 2016
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

Install AdBlock or AdBlockPlus from the Store in Edge

Navigate to
https://personal.vanguard.com/us/MyHome

 (note this bug may take several refreshes to reproduce)

Eventually, you should see the page appear as completely blank

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Colleen W.”

      Changed Assigned To from “Colleen W.” to “ecoengie”

      Changed Steps to Reproduce

      Changed Title from “Check for disabled JS fails and hides entire page in Edge with AB/ABP enabled” to “Check for disabled JS fails and hides entire page in Edge with AB/ABP enabled”

      Changed Status to “Site Outreach”

      Changed Assigned To from “ecoengie” to “Kelly Y.”

      Changed Steps to Reproduce

    • Site issue.
      This is caused by the way that this site checks for disabled JS. They create a <style> tag that always hides the page by default. They then inject a <script> tag immediately below this style tag that removes the style by calling document.styles[0].removeRule(). The issue here is that if AB/ABP injects their element hiding rules before this script executes, then the <style> tag that hides the page is never removed and it shows up as blank.

      This issue occurs due to some logic for handling the no script case that makes some incorrect assumptions about the state of the browser when extensions are installed. The recommended

       workaround is to wrap the <style> tag that hides the whole page in a <noscript> tag. That way, the style will only be applied if JavaScript is disabled.

    • Microsoft Edge Team

      Changed Assigned To from “Kelly Y.” to “Scott L.”

      Changed Status from “Site Outreach” to “Fixed”

    • Resolving as Fixed.  Page appears as expected with AdBlock or AdBlock Plus extension installed.

    You need to sign in to your Microsoft account to add a comment.

    Sign in