jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

devicepx script is causing some admin screen breakage

Open DrewAPicture opened this issue 12 years ago • 7 comments

WordPress: 4.0.0 JetPack: 3.1.1, 3.2 (didn't test earlier versions)

A client reported (and I confirmed) some breakage on admin screens for Gravity Forms related to the devicepx script, due to document.body being null. @georgestephanis was able to track down the error in the unminified source to L#260.

The error as reported against the minified source in FF 33.0.2 was:

TypeError: document.body is null
http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201445
Line 7

Latest Chrome is also tossing "Can't read property 'style' of null"

DrewAPicture avatar Nov 07 '14 19:11 DrewAPicture

The errors I caught from the unminified version are as follows:

screen shot 2014-11-07 at 3 53 27 pm

georgestephanis avatar Nov 07 '14 20:11 georgestephanis

@georgestephanis Any follow up here? Still seeing this issue w/ Jetpack 3.3.

DrewAPicture avatar Jan 07 '15 18:01 DrewAPicture

Let's look at this in relation to Core's responsive images feature.

zinigor avatar Dec 01 '15 11:12 zinigor

Related: #2918 (tracking ticket for HiDPI and srcset)

kraftbj avatar Dec 01 '15 17:12 kraftbj

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

stale[bot] avatar Jul 06 '18 21:07 stale[bot]

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`, etc.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

github-actions[bot] avatar Jul 26 '21 00:07 github-actions[bot]

I couldn't immediately duplicate, but devicepx is now behind a theme support flag anyhow. It shouldn't be used. It doesn't work on modern versions of browsers.

kraftbj avatar Jul 26 '21 22:07 kraftbj