WebView2: Waiting for Document Loaded | by Rick Strahl. buff.ly/Qu4Fv4J #windowsdev #dotnet #wpf #csharp #webview

WebView2: Waiting for Document...
WebView2: Waiting for Document Loaded

WebBrowser loading is always async and the WebView2 control is no different - in fact it's more complex as there a number of events that need to be handled in order to properly handle loading the control. In this post I describe how you can create a simplified load checking routine, or use the Westwind.WebView library and WebViewHandler to wait on content and process document access using linear `await` syntax.

WebView2: Waiting for Document Loaded

WebBrowser loading is always async and the WebView2 control is no different - in fact it's more complex as there a number of events that need to be handled in order to properly handle loading the control. In this post I describe how you can create a simplified load checking routine, or use the Westwind.WebView library and WebViewHandler to wait on content and process document access using linear `await` syntax.

Pues después de corregir un problema por culpa del #WebView que usa #windows11 para los login federados empezamos la #SemanaSanta2025
#litube is a lightweight #Android #WebView wrapper for #YouTube, offering many additional features such as ads blocking, background play, video download and playback progress memory.
https://f-droid.org/packages/com.hhst.litube
litube | F-Droid - Free and Open Source Android App Repository

a feature-rich Android webview wrapper for YouTube

@ajsadauskas @JessTheUnstill @tomiahonen yes, and to add insult to injury #Mozilla didn't even wanted to sell people like @fuchsiii or me a #FirefoxOS device, with the only one being "launched" in the #EU being a #SimLock'd & #NetLock'd #prepaid phone in #Spain one could only attain in-store with all the "#KYC" nonsense they had, demanding a legal address in Spain back then.

And #nerds like myself are far from the "#consoomer #Normies" for whom stuff that isn't on shelves at Staturn/MediaMarkt, BestBuy, Walmart, ... doesn't exist. I'm used to importing #tech that I want!

We Tried Signal's MobileCoin So You Never Have To...

YouTube

Modern #TechStack|s are convenient but they also make #developers lazy and result in the #enfattening of #Software and #Games.

Nowadays we have shitty #WebApps that eat up 100+MB just for a #WebView and which are instantly useless once they don't have a high-speed, low latency internet connection!

  • People like #GraceHopper and #MargaretHamilton propably wouldn't even be mad, but just disappointed, knowing how a modern #IDE eats more computing power than the entire human race had at their career peaks...

And don't even get me started on all the #WastefulComputing aka. "#AI" #bs and #Shitcoin - #Scams!

Kevin Karhan :verified: (@kkarhan@infosec.space)

@sekka@shark.community But one of the best tracks - abeit #Blues, not #Chill or #Jazz - is Blue Mary Blues Real Bout - Fatal Fury Special (Neo Geo CD Version) https://www.youtube.com/watch?v=-3XTuBZiC4w https://inv.nadeko.net/watch?v=-3XTuBZiC4w Hard to believe they were able to get this done with a 135 kbit/s CD-ROM drive and 2 MB of cache! #music #mukke #mood #KingOfFighters #OST #GameMusic #Soundtrack #NeoGeo #NeoGeoCD

Infosec.Space

androido webvista che non carica in chitogatto…

Con #Android, ahinoi, nulla da fare: ogni volta che mi metto a programmare per esso, immediatamente me ne pento, perché il sistema operativo è così terribilmente terribile che minimo una volta su due qualcosa va storto, esce il solito caso limite frutto di un complotto contro gli sviluppatori, di questo passo credo che perderò la pazienza per sempre. (Mentre, invece, quando le cose non vanno storte mi dimentico di scriverle… spoiler per il prossimo post?) 😓

Vabbè. Volevo aggiornare un minimo il famigerato SpaccWebView, perché al mondo servirebbe un APK della Spacc BBS e a me servirebbe pure un’altra robina; e, come tutte le mie cose, probabilmente non sarà mai completo al 100%, però intanto una particolare cosa necessaria da implementare era il caricamento di file nelle pagine web… altrimenti immagina che merda la app per un forum dove nemmeno si riesce a caricare immagini. (E poi il copiare link tenendoli premuti; roba standard di qualunque browser, ci frega poco.) 🛸

Ecco, Android è l’unica piattaforma dove segui le istruzioni alla lettera e le cose non funzionano; anzi, le istruzioni spesso non ci sono, in questo caso per esempio mancavano almeno per Android inferiore a Lollipop… ma pure rubando i codici delle altre persone alla lettera non funziona un cazzo. Precisamente, sui miei dispositivi con Android ben aggiornato, il codice per Lollipop e superiori funziona normalmente; ma, sul Galaxy Ace 4 con #KitKat 4.4.4 non c’è stato verso (e non c’è tuttora). 🤗💣

E allora, qui ci sarebbe davvero da ridere, perché ho precisamente 1 altro dispositivo con Android 4.4.4 in casa, che subito mi è tornato utile per debuggare… il TIM Easy 4G. (Se entro questa settimana non finisco di editare l’unboxing che ho promesso mamma mia pestatemi perché non è possibile che ho il culo così pesante.) Lo stesso codice che è rotto per il Samsung, lì funziona, e allora… e allora per una volta forse non posso neanche dare la colpa con certezza a Google, ma almeno sono felice (insomma…) del fatto che in mezz’ora ho perso tempo a scrivere e riscrivere solo codice corretto, non sbagliato. 🙄

Il picco di questa storia era il TIM che da solo salva inaspettatamente il pomeriggio, quindi evito di annoiare ulteriormente e passo al piangere prima di chiudere: su Internet si legge che Android KitKat ha in effetti un #bug nel componente WebView, che appunto rompe il caricamento di file; nello specifico, quello che osservo è che il parametro ValueCallback<Uri> del metodo void openFileChooser di WebChromeClient è null (o almeno, lo è sicuramente quando la Activity si ricarica dopo l’apertura del file picker), quando dovrebbe invece essere un oggetto utile su cui chiamare un’altra funzione per passare i dati del file da caricare… 💱

Che cazzo e vaffanculo, però!!! A capire questa stronzata gli LLM ovviamente non hanno aiutato, ho dovuto fare ricerche con un sacco di termini solo per arrivare a queste risposte estremamente deludenti, e in tutto questo non esiste nemmeno una vera soluzione (non si può nemmeno aggiornare il coso #WebView, che all’epoca non era modulare)… Per giunta, vai a capire come mai si dice che questo problema sia di KitKat in generale, ma dei miei due dispositivi su questa versione proprio quello di Samsung ha dato problemi… mentre il telefono preso per meme no. (Oh, per me si fotta il Galaxy, se funziona sul TIM allora la app va bene!) 🦇

#Android #bug #KitKat #WebView

[Android] Initial upload support, Context menu for links, More config options (4330c971) · Commits · Spacc Inc. / SpaccDotWeb · GitLab

GitLab.com

GitLab

@ahrienby that's because #iOS and #Android are quite different and unless you want to generate 100+ MB #Cordova / #nwjs containers, you're better off writing native code...

  • Pretty shure both just spawn a modified #WebView context...

Just dropped my #ConFoo slides on 'Building Desktop Apps with PHP'! 🚀

Covered #localfirst, #NativePHP, #PHPDesktop & built a single-binary desktop app with #FrankenPHP, #Webview & #StaticPHPCLI. Huge kudos to @simonhamp for pushing NativePHP forward! 🙏

https://gamma.app/docs/Building-Desktop-Apps-with-PHP-Confoo-2025-zeyd7c4qykll78b?mode=doc