* Removes Callback and various subtly different implementations of PluginEnvironment intended to do the same thing
* Replace with "permissive" plugin environment
* Adds a message queue so better error messages can be reported
It shouldn't be. Removed mq from the plugin environment
On 2010/03/13 01:28:49, MikeSamuel wrote:
> Why is the PluginEnvironment responsible for deciding the appropriate error
> message and levels when a lookup fails?
http://codereview.appspot.com/480041/diff/7001/8005 File src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java (right): http://codereview.appspot.com/480041/diff/7001/8005#newcode41 src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java:41: PluginEnvironment.PERMISSIVE_PLUGIN_ENVIRONMENT; Is this is an intentional change in behavior? ...
http://codereview.appspot.com/480041/diff/7001/8005 File src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java (right): http://codereview.appspot.com/480041/diff/7001/8005#newcode41 src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java:41: PluginEnvironment.PERMISSIVE_PLUGIN_ENVIRONMENT; Yes this is an intentional change to allow ...
http://codereview.appspot.com/480041/diff/7001/8005
File src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java
(right):
http://codereview.appspot.com/480041/diff/7001/8005#newcode41
src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java:41:
PluginEnvironment.PERMISSIVE_PLUGIN_ENVIRONMENT;
Yes this is an intentional change to allow the playground to load referenced
scripts and styles.
On 2010/04/06 01:27:58, MikeSamuel wrote:
> Is this is an intentional change in behavior?
> Permissive does seem to load external resources.
http://codereview.appspot.com/480041/diff/7001/8001
File src/com/google/caja/opensocial/GadgetRewriterMain.java (right):
http://codereview.appspot.com/480041/diff/7001/8001#newcode76
src/com/google/caja/opensocial/GadgetRewriterMain.java:76: Callback cb = new
Callback(mc, originalSources);
On 2010/04/06 01:27:58, MikeSamuel wrote:
> Is this line still needed?
> Won't this break debugging, if the sources are no longer being captured?
Done.
http://codereview.appspot.com/480041/diff/7001/8002
File src/com/google/caja/plugin/PluginEnvironment.java (right):
http://codereview.appspot.com/480041/diff/7001/8002#newcode27
src/com/google/caja/plugin/PluginEnvironment.java:27: import
com.google.caja.service.FetchedData;
Moved FetchedData to the plugin package and changed FetchedData to load contents
of a url lazily.
On 2010/04/06 01:27:58, MikeSamuel wrote:
> Did the plugin package previously depend on the service package?
> Can FetchedData move around if need be?
> Can we not have the FetchedData ctor load from a URL? That seems a rather
large
> side effect to have happen in a ctor.
http://codereview.appspot.com/480041/diff/7001/8004
File src/com/google/caja/service/CajolingServlet.java (right):
http://codereview.appspot.com/480041/diff/7001/8004#newcode55
src/com/google/caja/service/CajolingServlet.java:55: public CajolingServlet() {
On 2010/04/06 01:27:58, MikeSamuel wrote:
> If an HTTP server or something needs a zero-arg ctor, please add a comment to
> that effect.
Done.
Issue 480041: Factor out commonly needed plugin environment
(Closed)
Created 16 years ago by Jasvir
Modified 15 years, 10 months ago
Reviewers: MikeSamuel
Base URL: http://google-caja.googlecode.com/svn/trunk/
Comments: 10