Uploaded image for project: 'FireBreath Core'
  1. FireBreath Core
  2. FIREBREATH-42

crash in Window::getLocation()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: FireBreath 1.5.0
    • Fix Version/s: FireBreath 1.5.0
    • Operating System:
      Windows
    • Web Browser:
      Internet Explorer 6-8, Internet Explorer 9

      Description

      If I use IInternetHostSecurityManager::GetSecurityId to modify the ie Security( http://stackoverflow.com/questions/1498211/overriding-getsecurityid-in-iinternetsecuritymanager ), when I call m_host->getDOMWindow()->getLocation(), it will crash in Window::getLocation() function.

      //FireBreath\src\ActiveXCore\AXDOM\Window.cpp
      std::string Window::getLocation() const
      {
      CComBSTR bstr;
      //m_webBrowser->get_LocationURL(&bstr);
      CComPtr<IHTMLLocation> location;
      m_htmlWin->get_location(&location);
      location->get_href(&bstr);
      return FB::wstring_to_utf8(std::wstring(bstr.m_str));
      }
      should modify to:
      std::string Window::getLocation() const
      {
      CComBSTR bstr;
      m_webBrowser->get_LocationURL(&bstr);
      return FB::wstring_to_utf8(std::wstring(bstr.m_str));
      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                richard Richard Bateman
                Reporter:
                qifuren1985 xufan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: