[wp-trac] [WordPress Trac] #36584: Possible race condition with zxcvbn loader

WordPress Trac noreply at wordpress.org
Fri Jun 3 17:45:56 UTC 2016


#36584: Possible race condition with zxcvbn loader
--------------------------+------------------------------
 Reporter:  dominicp      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------

Comment (by dominicp):

 @peterwilsoncc, thanks for following up. I can reliably reproduce this by
 using network throttling to simulate a slow connection.

 Steps to Reproduce:

 - Navigate to a page that loads zxcvbn (I'm using WooCommerce's front-end
 edit password page, but I have been able to reproduce it in wp-
 admin/profile.php)
 - Using Chrome's dev tools, set the Network Throttling to "Regular 3G,
 750kb/s"
 - Do a hard refresh (on Windows, Ctrl+F5)
 - Try to type in the password field
 - In the js console you should see "Uncaught ReferenceError: zxcvbn is not
 defined"

 Granted, network throttling is kind of cheating, but I have seen it come
 up intermittently without throttling, and we would probably like the
 script to load reliably on slow connections anyway.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36584#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list