Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Unified Diff: webkit/api/public/WebFrame.h

Issue 155626: Enable isolated worlds for content scripts.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/api/public/WebFrame.h
===================================================================
--- webkit/api/public/WebFrame.h (revision 20764)
+++ webkit/api/public/WebFrame.h (working copy)
@@ -145,6 +145,13 @@
virtual void executeScriptInNewContext(const WebScriptSource* sources,
unsigned numSources) = 0;
+ // Executes JavaScript in a new world associated with the web frame.
+ // The script gets its own global scope and its own prototypes for
+ // intrinsic JavaScript objects (String, Array, and so-on). It also
+ // gets its own wrappers for all DOM nodes and DOM constructors.
+ virtual void executeScriptInNewWorld(const WebScriptSource* sources,
+ unsigned numSources) = 0;
+
// Logs to the console associated with this frame.
virtual void addMessageToConsole(const WebConsoleMessage&) = 0;

Powered by Google App Engine
This is Rietveld 408576698