667
edits
Changes
no edit summary
<pre>git config --unset merge.renameLimit</pre>
</blockquote>
===How do I get a Document (nsIDocument) from a Window (nsIDOMWindow)?===
Answer: Given aWindow, an nsIDOMWindow*
<pre>
nsCOMPtr<nsPIDOMWindow> win = do_QueryInterface(aWindow);
nsCOMPtr<nsIDocument> doc;
if (win) {
doc = do_QueryInterface(win->GetExtantDocument());
}
// doc is now an nsIDocument
</pre>