Bug 113934. Backend and some minimal front end for dragging tabs between windows. r=gavin, r+sr=jst

This commit is contained in:
Boris Zbarsky
2008-08-07 19:15:40 -04:00
parent c3aef812ca
commit e9a90efb27
16 changed files with 723 additions and 120 deletions

View File

@@ -1190,12 +1190,10 @@ nsDocShell::SetChromeEventHandler(nsIDOMEventTarget* aChromeEventHandler)
// Weak reference. Don't addref.
mChromeEventHandler = piTarget;
NS_ASSERTION(!mScriptGlobal,
"SetChromeEventHandler() called after the script global "
"object was created! This means that the script global "
"object in this docshell won't get the right chrome event "
"handler. You really don't want to see this assert, FIX "
"YOUR CODE!");
nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(mScriptGlobal));
if (win) {
win->SetChromeEventHandler(piTarget);
}
return NS_OK;
}