 
   # Returns if <object> is in the render tree.
   isPluginInRenderTree: ->
-    !!@internalInstanceId && @internalInstanceId != 0
+    # FIXME
+    # !!@internalInstanceId && @internalInstanceId != 0
+    'function' == typeof this.browserPluginNode[PLUGIN_METHOD_ATTACH]
 
   hasNavigated: ->
     not @beforeFirstNavigation

        #   @guestInstanceId,
        #   params,
        #   (w) => @contentWindow = w

  onSizeChanged: (webViewEvent) ->
    newWidth = webViewEvent.newWidth

# ID generator.
nextId = 1
getNextId = -> nextId++

# FIXME
# Discarded after Chrome 39
PLUGIN_METHOD_ATTACH = '-internal-attach'

# Attributes.
WEB_VIEW_ATTRIBUTE_ALLOWTRANSPARENCY = 'allowtransparency'
