FPC compiler 3.3.1 introduced compiler errors on Mac when using WebView
Original Reporter info from Mantis: MIS5
-
Reporter name:
Original Reporter info from Mantis: MIS5
- Reporter name:
Description:
What worked fine in the past now gives compiler errors when trying to compile code that uses WebView on Mac.
e.g.
MyWebView.mainFrame.DOMDocument; // Error: Identifier idents no member "DomDocument"
Essentitally it seems declarations have been stripped. But I am not sure where exactly the problem relies.
But in forum one reported using source trunk but FPC 3.0.4 it happily compiles, so I guess it might be FPC or LCL or FCL
Steps to reproduce:
uses
LCLtype, CocoaPrivate;
// ...
var
TmpDom: DOMDocument;
FWebView_Cocoa: WebView;
begin
// init TmpParams before this
FWebView_Cocoa := WebView( NSView(WebView.alloc).lclInitWithCreateParams(TmpParams) );
// load webpage URL before this
TmpDom := FWebView_Cocoa.mainFrame.DOMDocument; // compile time error!
Additional information:
https://forum.lazarus.freepascal.org/index.php?topic=51470.msg377892