Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Support setScriptSource #46

Open
caspervonb opened this issue Jul 28, 2015 · 9 comments
Open

Support setScriptSource #46

caspervonb opened this issue Jul 28, 2015 · 9 comments

Comments

@caspervonb
Copy link

Long shot, but are there any plans to implement setScriptSource?

@andysterland
Copy link
Member

Unfortunately IE11 doesn't support a mechanism for apply changes against running documents. Such a feature was added to Edge and I'm sure we'll consider it in the future :).

@caspervonb
Copy link
Author

Just to be clear, It is currently implemented in Edge? Are the semantics the same as V8's implementation? Any resources with more info on this?

Until then, how about at-least implementing canSetScriptSource to always return false if it is not doing so already.

@andysterland
Copy link
Member

(Didn't mean to close this in such a hurry, sorry!)

The feature, editing a running document, exist in the JavaScript runtime for Edge (Chakra). It's similar to the V8 implementation in that it takes source content and a script id. I'll hunt around on MSDN to find the documentation. It's exposed in a similar manner to all the other diagnostic interfaces for Chakra, which is not at all like a JSON RPC.

Out of curiosity what's the scenario you had in mind? In a question I should have asked earlier.

@andysterland andysterland reopened this Jul 29, 2015
@caspervonb
Copy link
Author

One of my projects (amok) has a feature that spins up a file watcher on script parse and calls setScriptSource whenever the source changes, there's a bit more to it but thats the gist of it.

Now currently only chrome based browsers are supported, but am always looking to support more especially If I don't have to maintain the protocol bridge myself 😄

@alexcope
Copy link
Contributor

One of my next goals is to enable attaching to Edge (#48). Once that is done I can look into how much work it is to implement setScriptSource only when we are attached to Edge.

@caspervonb
Copy link
Author

Sounds great 👍

@caspervonb
Copy link
Author

Been a while, any update on this? Edge support is still pending?

@alexcope
Copy link
Contributor

Other projects have taken higher priority for now. There is no ETA on when work will resume on this project. Sorry.

@ckuetbach
Copy link

This is a great project. I am doing a lot of work with embedded WebViews and it helps a lot to debug the IE inside a MS Office WebApp for Word.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants