svnno****@sourc*****
svnno****@sourc*****
Tue Mar 27 10:57:37 JST 2007
Revision: 3039 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3039 Author: ikezoe Date: 2007-03-27 10:57:37 +0900 (Tue, 27 Mar 2007) Log Message: ----------- * module/embed/gecko/kz-mozutils.cpp: Set printer list correctly. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/gecko/kz-mozutils.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-03-27 01:41:15 UTC (rev 3038) +++ kazehakase/trunk/ChangeLog 2007-03-27 01:57:37 UTC (rev 3039) @@ -1,3 +1,7 @@ +2007-03-27 Hiroyuki Ikezoe <poinc****@ikezo*****> + + * module/embed/gecko/kz-mozutils.cpp: Set printer list correctly. + 2007-03-27 Kouhei Sutou <kou****@cozmi*****> * src/utils/kz-history-utils.c (kz_history_time_stamp_exists): Modified: kazehakase/trunk/module/embed/gecko/kz-mozutils.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-mozutils.cpp 2007-03-27 01:41:15 UTC (rev 3038) +++ kazehakase/trunk/module/embed/gecko/kz-mozutils.cpp 2007-03-27 01:57:37 UTC (rev 3039) @@ -45,8 +45,13 @@ if (!aDOMWindow) return NULL; + nsCOMPtr<nsIDOMWindow> topWindow; + aDOMWindow->GetTop(getter_AddRefs(topWindow)); + if (!topWindow) + return NULL; + nsCOMPtr<nsIWebBrowserChrome> chrome; - wwatch->GetChromeForWindow(aDOMWindow, getter_AddRefs(chrome)); + wwatch->GetChromeForWindow(topWindow, getter_AddRefs(chrome)); nsCOMPtr<nsIEmbeddingSiteWindow> siteWindow = do_QueryInterface(chrome); if (!siteWindow)