Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2a161697
Commit
2a161697
authored
Nov 02, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added heuristic hack that decides if run the page from moniker or gecko channel.
parent
1031c5f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
nsio.c
dlls/mshtml/nsio.c
+24
-1
No files found.
dlls/mshtml/nsio.c
View file @
2a161697
...
...
@@ -568,6 +568,29 @@ static nsresult NSAPI nsChannel_Open(nsIHttpChannel *iface, nsIInputStream **_re
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
BOOL
do_load_from_moniker_hack
(
nsChannel
*
This
)
{
PRBool
b
=
FALSE
;
/*
* We should always load the page from IMoniker, but Wine is not yet
* ready for this. This function is a heuristic, that decides which
* way of loading is better (Gecko implementation or IMoniker). The
* aim is to always return TRUE.
*/
/* Load from moniker if there is no Gecko channel available */
if
(
!
This
->
channel
)
return
TRUE
;
/* Load about protocol from moniker */
nsIWineURI_SchemeIs
(
This
->
uri
,
"about"
,
&
b
);
if
(
b
)
return
TRUE
;
return
FALSE
;
}
static
nsresult
NSAPI
nsChannel_AsyncOpen
(
nsIHttpChannel
*
iface
,
nsIStreamListener
*
aListener
,
nsISupports
*
aContext
)
{
...
...
@@ -602,7 +625,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
container
));
if
(
!
This
->
channel
)
{
if
(
do_load_from_moniker_hack
(
This
)
)
{
if
(
This
->
load_group
)
{
nsres
=
nsILoadGroup_AddRequest
(
This
->
load_group
,
(
nsIRequest
*
)
NSCHANNEL
(
This
),
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment