Bug 66196 - Web Inspector: [protocol] LiveEdit does not report about a new script
: Web Inspector: [protocol] LiveEdit does not report about a new script
Status: UNCONFIRMED
: WebKit
Web Inspector (Deprecated)
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2011-08-13 14:22 PST by
Modified: 2012-10-11 16:37 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2011-08-13 14:22:29 PST
-- create a script with a function;
-- in live edit add a function parameter; save;

expected:
protocol reports that new script appears

actual:
protocol doesn't mention a new script

-- reconnect debugger; see that the new script is there (named "...(old)")
------- Comment #1 From 2011-08-15 02:42:15 PST -------
The problem here is that when the script is edited we enter debugger context before calling Debug.LiveEdit.SetScriptSource and the context is used to compile the new script which is wrong. Instead live-edit code should compute the context where the original script has been compiled and use it for compiling the new script.