New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 814241 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Cannot step into a callback function evaluated within a blackboxed script

Reported by petton.n...@gmail.com, Feb 21 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce the problem:
1. Blackbox a script
2. Try to step into a call of a function from the blackboxed script. The function call contains a callback function.

Example with sugar.js blackboxed:

foo.filter(function(x) {
  // I want the debugger to pause here when stepping
  return bar(x);
})

I expect the implementation of `filter` to be blackboxed, but not the inner function.

What is the expected behavior?
The debugger should stop inside the callback

What went wrong?
The steps in the callback calls are ignored

Did this work before? N/A 

Chrome version: 64.0.3282.140  Channel: stable
OS Version: Fedora 27
Flash Version:
 
Labels: Needs-Triage-M64
Cc: krajshree@chromium.org
Labels: Triaged-ET Needs-Feedback
petton.nicolas@ - Thanks for filing the issue...!!

Could you please provide a sample test file/url to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!

Comment 3 by alph@chromium.org, Mar 5 2018

Components: -Platform>DevTools Platform>DevTools>JavaScript
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by kozy@chromium.org, Mar 6 2018

Could you provide more detailed example?

I tried with following snippet, with blackboxed blackbox.js:
<script>
var foo = {
  filter: cb => cb()
};
//# sourceURL=blackbox.js
</script>
<script>
debugger;
foo.filter(() => 42);
</script>
StepInto successfully went to () => 42 function.

Comment 5 by kozy@chromium.org, May 3 2018

Status: WontFix (was: Assigned)

Sign in to add a comment