void V8DOMWindowShell::updateDocument()
{
    ASSERT(m_world->isMainWorld());
    if (m_global.isEmpty())
        return;
    if (!initializeIfNeeded())
        return;
    updateDocumentProperty();
    updateSecurityOrigin();
}
Esempio n. 2
0
void V8WindowShell::updateDocument()
{
    ASSERT(m_world->isMainWorld());
    if (m_global.isEmpty())
        return;
    if (!m_contextHolder)
        return;
    updateDocumentProperty();
    updateSecurityOrigin();
}
Esempio n. 3
0
void WindowProxy::updateDocument() {
  ASSERT(m_world->isMainWorld());
  if (!isGlobalInitialized())
    return;
  if (!isContextInitialized())
    return;
  updateActivityLogger();
  updateDocumentProperty();
  updateSecurityOrigin(m_frame->securityContext()->getSecurityOrigin());
}
void V8Proxy::updateDocument()
{
    if (!m_frame->document())
        return;

    if (m_global.IsEmpty())
        return;

    // There is an existing JavaScript wrapper for the global object
    // of this frame. JavaScript code in other frames might hold a
    // reference to this wrapper. We eagerly initialize the JavaScript
    // context for the new document to make property access on the
    // global object wrapper succeed.
    initContextIfNeeded();

    // We have a new document and we need to update the cache.
    updateDocumentWrapperCache();

    updateSecurityOrigin();
}