Open rogerwang opened 11 years ago
How would such an API work? If I understand this correctly, it would allow for protecting the source code (and also other resources?) within the application?
Your code should provide a callback with an argument for URL. Then the callback should return the data for the resource to WebKit. It could work in some way for stream data.
For source code protection please see #269 , it will be done by v8 snapshot. Simply encrypting the source (and other resources) with a key could be easily decrypted since we're open source.
That's right, you cannot give an end user the encypted data and the key and the decryptor's source and expect the data to stay secure :-)
Totally need this; I think I'll work around this with an http server for now...
I'd be very interested in having this as well. Any idea when this might get slotted in for development?
I'm particularly interested in changing the request headers as described at the URL below:
need protocol handler API
need protocol handler API
That's #951.
This would be awesome. What's needed to finish this?
mark
This is a great idea. I'm looking for a cross platform way to do this and its surprisingly difficult.
I started using CefSharp and had it working but then realized that CefSharp does not work on Linux/OSX.
I agree with geekgonecrazy.. whats needed to get this done? I can contribute to the bounty! How much $$ would would motivate the devs to get it done in say a few weeks?
Currently the testing version of 0.12.0 supports chrome.webrequest API (https://developer.chrome.com/extensions/webRequest). Will it meet your need?
It looks like it potentially could.. i'll have a play around with it.
So will this webRequest API achieve what you wanted for this feature request? Will you be closing this issue on its release?
Update: On further investigation it doesn't look like WebRequest will allow you to intercept AND send back custom data.. so no, I dont think this will suffice.
Take a look at the RIA folder and how it is used in this repo.
I will be porting this architecture to my framework when I flesh it out.
https://github.com/RIAEvangelist/dognews-keeper
This seems to be what people are looking for. It also uses JS pseudo classes and OOP approach.
Still has cleanup to be done to the Requires Class.
With this API developers can write customized resource loader for WebKit.
Once JS source code protection is done, developers can protect the resources in this way.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.