[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Question: Location changes on the Browser widget

There isn't a way to turn these off, but they should not be firing either.
This is logged as https://bugs.eclipse.org/bugs/show_bug.cgi?id=94896 .

Grant

"AL" <unbonnevie@xxxxxxxxx> wrote in message
news:d75i4b$3ot$1@xxxxxxxxxxxxxxxxxxx
> Hi,
>
> The SWT Browser widget lets listen for location/URL changes.  You
> install a LocationListener listener and implement the changing() and
> changed() methods both of which are passed with the LocationEvent object.
>
> My changing() and changed() methods are called and I echo out the
> location.  Please see below.  My question is why I am notified with the
> "about:blank" and "res:" location changes?  How would I turn these
> "irrelevant" notifications?  My location is C:\doc\index.html.
>
> locationChanging: res://C:\WINDOWS\System32\shdoclc.dll/navcancl.htm
> locationChanging: about:blank
> locationChanged: about:blank
> locationChanging: res://C:\WINDOWS\System32\shdoclc.dll/navcancl.htm
> locationChanging: about:blank
> locationChanged: about:blank
> locationChanging: C:\doc\index.html
> locationChanged: C:\doc\index.html
>
>
>