Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

BREAKING CHANGES

User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The commit made on March 18th, 2020 fixed a bug with SELECT elements and it required different arguments in the TBufferPanel.BufferDraw and TFMXBufferPanel.BufferDraw procedures.

The OSR demos now have a slightly different implementation of the TChromium.OnPaint event for the same reason.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update to CEF 80.1.2 removed 2 events because they were redundant :
  • TBufferPanel.OnWrongSize
  • TFMXBufferPanel.OnWrongSize
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update to CEF 81.2.21 changed the margin properties in TChromium.PDFPrintOptions from DOUBLE to INTEGER.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update to CEF 83.3.9 released on May 23rd, 2020 had different declarations for TCefCookie and TCookie.
Some functions and events related to cookies have 2 new parameters called "same_site" and "priority".

Read the announcement for more information :
https://www.briskbard.com/forum/viewtop ... f=8&t=1330
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The commit made on July 17th, 2020 moved all the JSON functions from uCEFMiscFunctions.pas to the TCEFJson class in uCEFJson.pas
  • CefParseJson is now available as TCEFJson.Parse
  • CefParseJsonAndReturnError is now available as TCEFJson.ParseAndReturnError
  • CefWriteJson is now available as TCEFJson.Write
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update to CEF 85.2.11 made on August 29th, 2020 removed the following methods and events :
  • Removed GlobalCEFApp.OnRenderProcessThreadCreated event.
  • Removed GlobalCEFApp.OnRenderThreadCreated event.
  • Removed ICefMediaSink.IsValid.
  • Removed ICefMediaSource.IsValid.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update made on September 15th, 2020 added a missing "Sender" parameter to these events :
  • TChromium.OnNavigationVisitorResultAvailable
  • TChromium.OnBrowserCompMsg
  • TChromium.OnWidgetCompMsg
  • TChromium.OnRenderCompMsg
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update to CEF 87.1.6 had a few breaking changes :
  • Modified the TChromium.OnCursorChange event. It has a new "aResult" parameter.
  • Removed the TChromium.MouseCursorChangeDisabled property.
  • Modified the parameters in the TCefJson.ParseAndReturnError function. "error_code_out" was removed.
Read this for more details :
viewtopic.php?f=8&t=1565&p=6536#p6536
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update made on January 12th, 2021 renamed some TBufferPanel properties used in Linux.

Read this for all the details :
https://www.briskbard.com/forum/viewtopic.php?p=6768#p6768
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BREAKING CHANGES

Post by salvadordf »

The update made on January 26th, 2021 fixed the TCefWindowHandle, TCefCursorHandle and TCefEventHandle declarations.

This means that the TChromiumCore.OnCursorChange event shows the right TCefCursorHandle type for the "cursor_" parameter. The name of the "cursor" parameter was also renamed to "cursor_" to avoid confusion but this detail is not as important the type change.

Before this update Delphi used HICON when you tried to use that event.

If your application has a browser in OSR mode and it uses the TChromiumCore.OnCursorChange event then you will only have to replace the "HICON" parameter type for "TCefCursorHandle".

Edit: This change also affected existing implementations of the TChromium.OnPreKeyEvent and TChromium.OnKeyEvent events which include a TCefEventHandle parameter called "osEvent" that was incorrectly set as PMsg.
Post Reply