Commit 749e700
committed
fix(macOS): add comprehensive WebView debugging and navigation delegates
WINDOWS FIX (UwbWebView.cs):
- Corrected UniTask.WhenAny return type handling
- Fixed: error CS0019 'bool' vs 'int' comparison
- Changed to: int winIndex = await UniTask.WhenAny(...)
MACOS IMPROVEMENTS (ImmutableWebView.mm):
1. Enable developer extras and Safari debugging (always on, not just #ifdef)
- Allows remote debugging of WebView content
2. Add didFinishNavigation delegate
- Logs successful page loads
- Tests JavaScript execution immediately after load
- Helps diagnose if JS is running
3. Improve error delegates (didFailNavigation, didFailProvisionalNavigation)
- Add detailed NSLog with error code
- Helps diagnose navigation failures
4. Recompile ImmutableWebView.bundle with all changes
GOAL: Get detailed logs to understand why JavaScript is not executing in CI/CD1 parent 3efb516 commit 749e700
2 files changed
Lines changed: 22 additions & 5 deletions
File tree
- Plugins/Mac/Sources
- src/Packages/Passport/Runtime/ThirdParty/Gree/Assets/Plugins/ImmutableWebView.bundle/Contents/MacOS
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | 140 | | |
143 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
146 | 147 | | |
147 | | - | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
267 | 282 | | |
268 | 283 | | |
| 284 | + | |
269 | 285 | | |
270 | 286 | | |
271 | 287 | | |
272 | 288 | | |
273 | 289 | | |
| 290 | + | |
274 | 291 | | |
275 | 292 | | |
276 | 293 | | |
| |||
0 commit comments