Injecting/removing CSS files via the content_scripts property in manifest.json requires two refreshes

Confirmed Issue #9850430 • Assigned to Scott S.

Details

Created
Nov 17, 2016
Privacy
This issue is public.
Found in build #
14.14966
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

Install the attached extension in Edge and Chrome
Navigate to a site where the body tag is modifiable (I went to www.w3cschools.com)

Expected

The CSS rule is applied at the same time as the injected script (i.e. the body’s background appears red and the “test” alert both appear)

Actual

The CSS rule is only applied after a second refresh, whereas the alert appears immediately on page load/refresh

Additional Information

The same behavior is observed when disabling the extension

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Scott S.”

    Changed Status to “Confirmed”

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

Sign in