mozilla / positron

a experimental, Electron-compatible runtime on top of Gecko
Other
562 stars 64 forks source link

GuestWebContentsPrototype.getURL fails because contentDocument is null #92

Closed mykmelez closed 8 years ago

mykmelez commented 8 years ago

@brendandahl, #91 appears to have regressed GuestWebContentsPrototype.getURL, as _this.webView.browserPluginNode.contentDocument is null. So the URL bar in the sample browser becomes empty after loading a page. Which makes sense, since the document is now in the remote process, so it can't be dereferenced in the local one.

Perhaps the solution here is to maintain the current value of the URL locally, updating it each time it changes via the mozbrowserlocationchange event handler.