     if value?.url
       @recreateIframe()
       @previewer.openPath value.url
+      @checkSameOrigin value.url
       @previewPane.secureInfo?.destroy()
+      @sameOriginMessage?.destroy()
 
   openUrl: (url) ->
     @recreateIframe()

    url    = unless force then path.replace(/\?.*/, "") else "#{path}?#{Date.now()}"

    @workspaceRef.child("url").set url
    @workspace.addToHistory
      message: "$0 opened #{url}"
      by     : KD.nick()

  viewAppended: ->
    super

    @previewer.on "ViewerLocationChanged", =>
      @saveUrl()
      @previewPane.secureInfo?.destroy()
      @sameOriginMessage?.destroy()

    @previewer.on "ViewerRefreshed",       => @saveUrl yes

