mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
in the [SpiderMonkey Debugger API](https://firefox-source-docs.mozilla.org/js/Debugger/), there is a separate [Debugger.Script](https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Script.html) object for each function in a script, forming a tree of Script objects. since we were only issuing [getPossibleBreakpoints()](https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Script.html#getpossiblebreakpoints-query) queries to the [root Script object](https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.html#onnewscript-script-global) for each script, we were failing to report locations inside functions as available for setting breakpoints. this patch fixes that by recursively issuing the getPossibleBreakpoints() requests over the [getChildScripts()](https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Script.html#getchildscripts) tree. Testing: this patch adds a new devtools test Signed-off-by: Delan Azabani <dazabani@igalia.com> Co-authored-by: atbrakhi <atbrakhi@igalia.com> |
||
---|---|---|
.. | ||
resource_protocol | ||
user-agent-js | ||
about-memory.html | ||
android_params | ||
badcert.html | ||
cert-google-only | ||
cert-wpt-only | ||
crash.html | ||
Credits.rtf.mako | ||
debugger.js | ||
directory-listing.html | ||
gatt_blocklist.txt | ||
hsts_preload.fstmap | ||
iso-8859-8.css | ||
neterror.html | ||
org.servo.Servo.desktop | ||
package-prefs.json | ||
privatekey_for_testing.key | ||
public_domains.txt | ||
rippy.png | ||
self_signed_certificate_for_testing.crt | ||
servo.icns | ||
servo.ico | ||
servo.svg | ||
servo_64.png | ||
servo_1024.png | ||
wpt-prefs.json |