<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>26966</bug_id>
          
          <creation_ts>2009-07-04 08:33:31 -0700</creation_ts>
          <short_desc>[V8] Move security functions from V8Proxy to V8SecurityManager</short_desc>
          <delta_ts>2009-08-19 19:19:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>129789</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-07-04 08:33:31 -0700</bug_when>
    <thetext>My initial impression of which functions to move are:

        static DOMWindow* retrieveWindow();
        static DOMWindow* retrieveWindow(v8::Handle&lt;v8::Context&gt;);
        static V8Proxy* retrieve();
        static V8Proxy* retrieve(Frame*);
        static V8Proxy* retrieve(ScriptExecutionContext*);
        static Frame* retrieveFrame();
        static Frame* retrieveFrame(v8::Handle&lt;v8::Context&gt;);
        static Frame* retrieveFrameForEnteredContext();
        static Frame* retrieveFrameForCurrentContext();
        static Frame* retrieveFrameForCallingContext();
        static v8::Local&lt;v8::Context&gt; context(Frame*);
        static v8::Local&lt;v8::Context&gt; currentContext();
        static bool canAccessFrame(Frame*, bool reportError);
        static bool checkNodeSecurity(Node*);
        static bool canAccessPrivate(DOMWindow*);

I think there are some more hidden elsewhere.

Also, I would hope we can cut down on the number of retrieve* functions.  How is a developer supposed to know which one to use?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>