[Bug 37872] New: Multiple applications need support for IHTMLWindow2::open '_self' window name (CompeGPS)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jan 9 14:35:48 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=37872

            Bug ID: 37872
           Summary: Multiple applications need support for
                    IHTMLWindow2::open '_self' window name (CompeGPS)
           Product: Wine
           Version: 1.7.34
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mshtml
          Assignee: wine-bugs at winehq.org
          Reporter: focht at gmx.net
      Distribution: ---

Hello folks,

as the summary says.

Example app 'CompeGPS 7.x':
http://we01.compegps.com/download/setup_compeGPSLAND_770.exe

When clicking 'activation' and entering an invalid code, the 'back' button
doesn't work.

Relevant part of trace log:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/CompeGPS

$ WINEDEBUG=+tid,+seh,+relay,+mshtml,+ieframe wine ./CompeGPSLAND.exe >>log.txt
2>&1
...
0023:trace:mshtml:fire_event_obj (0x10709fd0) L"click" 
...
0023:trace:mshtml:call_event_handlers L"click" >>> 
...
0023:trace:mshtml:dispex_query_interface (0x662dca4)->(IID_IDispatchJS
0x108d968) returning NULL
...
0023:trace:mshtml:HTMLWindow2_QueryInterface (0x662dc70)->(IID_IDispatchEx
0x108d9ac)
0023:trace:mshtml:HTMLWindow2_AddRef (0x662dc70) ref=23
0023:trace:mshtml:WindowDispEx_GetDispID (0x662dc70)->(L"open" 10000001
0x108da20)
0023:trace:mshtml:DispatchEx_GetDispID (0x662dca4)->(L"open" 10000001
0x108da20)
0023:trace:mshtml:HTMLWindow2_Release (0x662dc70) ref=22
...
0023:trace:mshtml:HTMLWindow2_QueryInterface
(0x662dc70)->({719c3050-f9d3-11cf-a493-00400523a8a6} 0x108d8a8)
0023:trace:mshtml:dispex_query_interface (0x662dca4)->(IID_IDispatchJS
0x108d8a8) returning NULL
...
0023:trace:mshtml:HTMLWindow2_QueryInterface (0x662dc70)->(IID_IDispatchEx
0x108d97c)
0023:trace:mshtml:HTMLWindow2_AddRef (0x662dc70) ref=23
0023:trace:mshtml:WindowDispEx_InvokeEx (0x662dc70)->(d 409 1 0x108d8f8 (nil)
0x1061b038 0x1063e608)
0023:trace:mshtml:DispatchEx_InvokeEx (0x662dca4)->(d 409 1 0x108d8f8 (nil)
0x1061b038 0x1063e608)
0023:trace:mshtml:HTMLWindow2_QueryInterface (0x662dc70)->(IID_IHTMLWindow2
0x108d5e4)
0023:trace:mshtml:HTMLWindow2_AddRef (0x662dc70) ref=24 
...
0023:trace:mshtml:HTMLWindow2_open (0x662dc70)->(L"?" L"_self" L"" 0 0x108d328)
0023:fixme:mshtml:HTMLWindow2_open Unsupported name L"_self" 
--- snip ---

MSDN: http://msdn.microsoft.com/en-us/library/aa741489%28v=vs.85%29.aspx

--- quote ---
...
name [in, optional]

    Type: BSTR

    BSTR that specifies the name of the window. This name is used as the value
for the IHTMLAnchorElement::target attribute on a form or an anchor element.

    _blank

        The url is loaded into a new, unnamed window.

    _parent

        The url is loaded into the current frame's parent. If the frame has no
parent, this value acts as the value _self.

    _self

        The current document is replaced with the specified url.

    _top

        The loaded url replaces any framesets that might be loaded. If there
are no framesets defined, this value acts as the value _self.
--- quote ---

Source:
http://source.winehq.org/git/wine.git/blob/df63590706b0bcd4c114bd551491e25b65866f36:/dlls/mshtml/htmlwindow.c#l925

--- snip ---
925 static HRESULT WINAPI HTMLWindow2_open(IHTMLWindow2 *iface, BSTR url, BSTR
name,
926 BSTR features, VARIANT_BOOL replace, IHTMLWindow2 **pomWindowResult)
927 {
928     HTMLWindow *This = impl_from_IHTMLWindow2(iface);
929     HTMLOuterWindow *window = This->outer_window;
...
938     if(!window->doc_obj || !window->uri_nofrag)
939         return E_UNEXPECTED;
940
941     if(name && *name == '_') {
942         FIXME("Unsupported name %s\n", debugstr_w(name));
943         return E_NOTIMPL;
944     }
...
--- snip ---

$ sha1sum setup_compeGPSLAND_770.exe 
4fb4de12fa88fc73967d1909e080b47470df4c68  setup_compeGPSLAND_770.exe

$ du -sh setup_compeGPSLAND_770.exe 
38M    setup_compeGPSLAND_770.exe

$ wine --version
wine-1.7.34

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list