Lines Matching refs:m_frame
42 if (m_frame->document() && m_frame->document()->isSandboxed(SandboxScripts)) {
45 m_frame->document()->addConsoleMessage(SecurityMessageSource, ErrorMessageLevel, "Blocked script execution in '" + m_frame->document()->url().stringCenterEllipsizedToLength() + "' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.");
49 if (m_frame->document() && m_frame->document()->isViewSource()) {
50 ASSERT(m_frame->document()->securityOrigin()->isUnique());
54 Settings* settings = m_frame->settings();
55 const bool allowed = m_frame->loader()->client()->allowScript(settings && settings->isScriptEnabled());
57 m_frame->loader()->client()->didNotAllowScript();
64 return executeScript(ScriptSourceCode(script, m_frame->document()->url()));
72 RefPtr<Frame> protect(m_frame); // Script execution can destroy the frame, and thus the ScriptController.
82 if (!m_frame->page()
83 || !m_frame->document()->contentSecurityPolicy()->allowJavaScriptURLs(m_frame->document()->url(), eventHandlerPosition().m_line))
88 RefPtr<Frame> protector(m_frame);
89 RefPtr<Document> ownerDocument(m_frame->document());
98 if (!m_frame->page())
112 ASSERT(m_frame->document()->loader());
116 if (RefPtr<DocumentLoader> loader = m_frame->document()->loader())