Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there anyway to get the address of current page in firefox? is there any Gecko wrapper for
C++?
Posted
Comments
Sergey Alexandrovich Kryukov 26-Aug-13 23:33pm    
It does not seem to make a whole lot of sense... :-)
—SA

1 solution

Gecko is a layout engine: http://en.wikipedia.org/wiki/Gecko_%28layout_engine%29[^].

It means, the functionality related to the browser windows, their activation and layout is implemented outside of Gecko, in a browser using Gecko or other engine.

Your question does not really make sense, in the following aspect: Firefox is already created. Internally, it already has all the required mechanisms to deal with pages, and so on. You really need to describe the type of application which could possibly collaborate with existing Firefox, but I doubt it may make sense. Anyway, if you wanted to use Gecko, you would implement your own browser with features you need.

And the second part of the question, about a wrapper, makes even less sense: Gecko is already written in C++, so no wrapper is needed. Please see the article referenced above.

—SA
 
Share this answer
 
Comments
MrDooDoo 27-Aug-13 0:07am    
thanks for your answer. I don't know much about Gecko. Actually I mean If I want to manipulate
firefox from outside what I should do. As the simplest case, I have a hwnd to a firefox window
I want to know what is the address of the page which firefox is displaying.
In comparison to IE, it is easy and possible to access each element of page.
Sergey Alexandrovich Kryukov 27-Aug-13 0:48am    
First of all, this is a pretty bad idea. Firefix is not designed to be manipulated (automated). Why?
HWND? I see. Dirty business, I tell you. Why?
—SA
MrDooDoo 27-Aug-13 12:48pm    
No dirty business. I just asked a question that came to my mind.
Sergey Alexandrovich Kryukov 27-Aug-13 13:35pm    
No problem with asking the question. You are asking about something which is a dirty business, in the following sense: you are going to do a lot of tricks but with no reliable result; you are going to spend a lot of time with a little to no reward; in case of success, your work will do something in a short period of time; any minor changes in target applications, environment, and so on will render it useless. Overall, you are going to waste your time. My point here is to warn you.

To get some success, you need to do legitimate programming and avoid anything which requires anything beyond good programming practices.

—SA
MrDooDoo 27-Aug-13 14:04pm    
dear Sergey, thank you so much for your favor. you are a good guy, but I think that you
have biased about me. I don't understand what is wrong about my question. And how did
conclude that is related to dirty jobs? I would be glad if you could explain it. Anyway
if I did something wrong unintentionally, I apologize.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900