FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
std::string Window::getLocation ( ) const

Returns window.location for the containing page.

The location as a strin g.

Reimplemented from FB::DOM::Window.

Definition at line 50 of file ActiveXCore/AXDOM/Window.cpp.

References FB::wstring_to_utf8().

51 {
52  CComBSTR bstr;
53  m_webBrowser->get_LocationURL(&bstr);
54  return FB::wstring_to_utf8(std::wstring(bstr.m_str));
55 }
std::string wstring_to_utf8(const std::wstring &src)
Accepts a std::wstring and returns a UTF8-encoded std::string.
Definition: utf8_tools.cpp:37

Here is the call graph for this function: