These two lines won't really work when `dom.mozBrowserFramesEnabled` is false. (which is still the case on firefox).
The frame actually works, but will run in parent process.
In any case, we should call these two methods only when namespace is html, otherwise it will throw for XUL frames.
May be we should just throw for html frames saying that remote html frame won't be in another process.