[Webkit-unassigned] [Bug 125023] Apparent race condition (in synchronous code) --- Possible duplicate
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 29 17:22:54 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=125023
--- Comment #1 from Caitlin Potter <caitpotter88 at gmail.com> 2013-11-29 17:21:18 PST ---
Test case from the issue linked above: http://plnkr.co/edit/4tXYKqp3p5dmiMrmIUNI
Test case incorporating my patch (which moves the assignment operation to after the conditional branch): http://plnkr.co/edit/8NBJCzK8YMIRGNb8cQ2p?p=preview
To observe the weirdness in the first test case, you can try the following:
1) Set a breakpoint in angular-sanitize.js on line 386
2) When breakpoint is triggered (will require reloading the app), examine the `parts` array. The first item will not be the empty string as it was assigned to be
----
Part 2:
1) Now, set a breakpoint on line 381 and reload the app
2) When the line 381 breakpoint is triggered, step through line by line. This time, parts[0] is set to the empty string.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list