Revision: 6256 Author: [email protected] Date: Tue Sep 29 16:01:10 2009 Log: IE plugin now uses the current thread ID as a proxy for tab ID.
This seems to work well for IE6 and IE7. Still need to test IE8. Review by: jat (desk) http://code.google.com/p/google-web-toolkit/source/detail?r=6256 Modified: /branches/farewellSwt/plugins/ie/oophm/oophm/plugin.cpp /branches/farewellSwt/plugins/ie/prebuilt/oophm.dll ======================================= --- /branches/farewellSwt/plugins/ie/oophm/oophm/plugin.cpp Thu Sep 3 15:22:56 2009 +++ /branches/farewellSwt/plugins/ie/oophm/oophm/plugin.cpp Tue Sep 29 16:01:10 2009 @@ -92,7 +92,12 @@ return S_OK; } - std::string tabKey = ""; // TODO(jat): add support for tab identity + // Use the current thread ID as a proxy for tab ID. + DWORD threadId = GetCurrentThreadId(); + char buf[20]; + snprintf(buf, sizeof(buf), "%lu", threadId); + std::string tabKey = buf; + std::string sessionKey = BSTRToUTF8(bsessionKey); std::string moduleName = BSTRToUTF8(bmoduleName); IOmNavigator* navigator; ======================================= --- /branches/farewellSwt/plugins/ie/prebuilt/oophm.dll Tue Sep 29 15:51:30 2009 +++ /branches/farewellSwt/plugins/ie/prebuilt/oophm.dll Tue Sep 29 16:01:10 2009 Binary file, no diff available. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
