Bug Report: TitleChanged Event

If a web page contains an iFrame, the HTMLViewer.TitleChanged event will fire when the iFrame loads and will set NewTitle equal to the title tag from the iFrame. This is obviously incorrect. TitleChanged should only fire on the main HTML document, not on any iFrames contained within the document.

IMHO as IFRAMEs are containing embedded HTML documents, TitleChanged should fire on these documents too.

Without a URL to a page that reliably creates the reported issue, the OP means pretty much nothing. And no valid bug report was filed in Feedback anyway…

For your testing pleasure:
http://timi.me/iftest

and of course, a project file to play with:
http://timi.me/iftest/iftest.xojo_binary_project

Bug is present in 2015r1

[quote=211912:@Tim Parnell]For your testing pleasure:
http://timi.me/iftest

and of course, a project file to play with:
http://timi.me/iftest/iftest.xojo_binary_project

Bug is present in 2015r1[/quote]

In 2015R2.4 the title reported in TitleChanged remains “Original Title”. As expected.

Oh here’s a quick question, did you test on Mac or Windows?
My test was Mac

[quote=211917:@Tim Parnell]Oh here’s a quick question, did you test on Mac or Windows?
My test was Mac[/quote]

The problem does indeed manifest on Mac, not on Windows.

You should file a bug report.

In both platforms, the TitleChanged fires twice. Except the second time around, on Mac you get the title of the iFrame.

If the title is important, the workaround is probably to dismiss the second TitleChanged title.