One question: would it be better if I made the IgnorePolicy function non-scriptable. That way the js call would just be reloadImage(true) and ReloadImage will deal with the IgnorePolicy calls.
IOW leave the patch as is, only adding the the IgnorePolicy function to nsIContentPolicy and reloading based on that response.
One question: would it be better if I made the IgnorePolicy function non-scriptable. That way the js call would just be reloadImage(true) and ReloadImage will deal with the IgnorePolicy calls.
IOW leave the patch as is, only adding the the IgnorePolicy function to nsIContentPolicy and reloading based on that response.