Ignore:
Timestamp:
Dec 4, 2007, 3:53:04 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

Reviewed by Sam.

Make isSafeScript const.


  • kjs/JSGlobalObject.h: (KJS::JSGlobalObject::isSafeScript):

WebCore:

Reviewed by Sam.

Add isSafeScript(const JSGlobalObject*) so we won't get the JSGlobalObject
implementation, which always returns true(!).


  • bindings/js/kjs_window.cpp: (KJS::Window::isSafeScript): Make the static isSafeScript method take two JSGlobalObjects.


  • bindings/js/kjs_window.h: (KJS::Window::isSafeScript): Implement isSafeScript and have it call the static method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSGlobalObject.h

    r28328 r28415  
    4646        virtual bool shouldInterruptScript() const { return true; }
    4747
    48         virtual bool isSafeScript(const JSGlobalObject*) { return true; }
     48        virtual bool isSafeScript(const JSGlobalObject*) const { return true; }
    4949
    5050    private:
Note: See TracChangeset for help on using the changeset viewer.