~ubuntu-branches/ubuntu/lucid/webkit/lucid-security

« back to all changes in this revision

Viewing changes to WebCore/bindings/js/ScriptEventListener.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-03-17 15:05:11 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100317150511-nyun8s32wgt8dhh9
Tags: 1.1.90-1
* New upstream release
- This marks the preparation for the 1.2 stable branch
* debian/copyright:
- updated with changes since 1.1.22
* debian/libwebkit-1.0-2.symbols:
- added new API introduced in 1.1.23

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    // FIXME: We should be able to provide accurate source information for frameless documents, too (e.g. for importing nodes from XMLHttpRequest.responseXML).
65
65
    if (Frame* frame = node->document()->frame()) {
66
66
        ScriptController* scriptController = frame->script();
67
 
        if (!scriptController->canExecuteScripts())
 
67
        if (!scriptController->canExecuteScripts(AboutToExecuteScript))
68
68
            return 0;
69
69
 
70
70
        if (!scriptController->xssAuditor()->canCreateInlineEventListener(attr->localName().string(), attr->value())) {
96
96
    String sourceURL;
97
97
    
98
98
    ScriptController* scriptController = frame->script();
99
 
    if (!scriptController->canExecuteScripts())
 
99
    if (!scriptController->canExecuteScripts(AboutToExecuteScript))
100
100
        return 0;
101
101
 
102
102
    if (!scriptController->xssAuditor()->canCreateInlineEventListener(attr->localName().string(), attr->value())) {