[Android Software Development] CosmicDan:
OK, here is a summary of webkit changes to work with latest CM10 libwebcore.so. Browser works, Facebook works, but one catch - when you select text in the browser, it usually doesn't come up with the "Copy" option. It does on input fields, but not on other text elements. Dunno how to fix it.

(1) Replace all HTML5* files from CM10, as before

(2) Use following patches:

(a) What I already said in post #1040

(b) WebSettingsClassic.smali:

--- WebSettingsClassic.smali Tue Jan 20 09:26:36 1970
+++ WebSettingsClassic.smali Tue Jan 20 09:26:36 1970
@@ -116,10 +116,12 @@

.field private mLoadsImagesAutomatically:Z

.field private mMaximumDecodedImageSize:J

+.field private mMediaPreloadEnabled:Z
+
.field private mMinimumFontSize:I

.field private mMinimumLogicalFontSize:I

.field private mNavDump:Z
@@ -176,10 +178,12 @@

.field private mUseWideViewport:Z

.field private mUserAgent:Ljava/lang/String;

+.field private mWebGLEnabled:Z
+
.field private mWebView:Landroid/webkit/WebViewClassic;

.field private mWorkersEnabled:Z

.field private mXSSAuditorEnabled:Z
@@ -329,10 +333,11 @@

.line 93
iput-boolean v2, p0, Landroid/webkit/WebSettingsClassic;->mSyntheticLinksEnabled:Z

.line 95
+ iput-boolean v2, p0, Landroid/webkit/WebSettingsClassic;->mMediaPreloadEnabled:Z
iput-boolean v3, p0, Landroid/webkit/WebSettingsClassic;->mAppCacheEnabled:Z

.line 96
iput-boolean v3, p0, Landroid/webkit/WebSettingsClassic;->mDatabaseEnabled:Z

@@ -435,10 +440,11 @@
iput-boolean v3, p0, Landroid/webkit/WebSettingsClassic;->mForceUserScalable:Z

.line 131
iput-boolean v2, p0, Landroid/webkit/WebSettingsClassic;->mPasswordEchoEnabled:Z

+ iput-boolean v2, p0, Landroid/webkit/WebSettingsClassic;->mWebGLEnabled:Z
.line 180
iput-boolean v2, p0, Landroid/webkit/WebSettingsClassic;->mUseWebViewBackgroundForOverscroll:Z

.line 281
new-instance v1, Landroid/webkit/WebSettingsClassic$EventHandler;
@@ -1117,10 +1123,13 @@
.catchall {:try_start_5 .. :try_end_5} :catchall_1

goto :goto_1
.end method

+.method private native nativeIsWebGLAvailable()Z
+.end method
+
.method private native nativeSync(I)V
.end method

.method private pin(I)I
.locals 2
@@ -3975,10 +3984,40 @@
.line 1606
:cond_0
return-void
.end method

+.method public declared-synchronized setMediaPreloadEnabled(Z)V
+ .locals 1
+ .parameter "flag"
+
+ .prologue
+ monitor-enter p0
+
+ :try_start_0
+ iget-boolean v0, p0, Landroid/webkit/WebSettingsClassic;->mMediaPreloadEnabled:Z
+
+ if-eq v0, p1, :cond_0
+
+ iput-boolean p1, p0, Landroid/webkit/WebSettingsClassic;->mMediaPreloadEnabled:Z
+
+ invoke-direct {p0}, Landroid/webkit/WebSettingsClassic;->postSync()V
+ :try_end_0
+ .catchall {:try_start_0 .. :try_end_0} :catchall_0
+
+ :cond_0
+ monitor-exit p0
+
+ return-void
+
+ :catchall_0
+ move-exception v0
+
+ monitor-exit p0
+
+ throw v0
+.end method
.method public declared-synchronized setMinimumFontSize(I)V
.locals 1
.parameter "size"

.prologue
@@ -5062,10 +5101,40 @@
.catchall {:try_start_5 .. :try_end_5} :catchall_1

goto :goto_0
.end method

+.method public declared-synchronized setWebGLEnabled(Z)V
+ .locals 1
+ .parameter "flag"
+
+ .prologue
+ monitor-enter p0
+
+ :try_start_0
+ iget-boolean v0, p0, Landroid/webkit/WebSettingsClassic;->mWebGLEnabled:Z
+
+ if-eq v0, p1, :cond_0
+
+ iput-boolean p1, p0, Landroid/webkit/WebSettingsClassic;->mWebGLEnabled:Z
+
+ invoke-direct {p0}, Landroid/webkit/WebSettingsClassic;->postSync()V
+ :try_end_0
+ .catchall {:try_start_0 .. :try_end_0} :catchall_0
+
+ :cond_0
+ monitor-exit p0
+
+ return-void
+
+ :catchall_0
+ move-exception v0
+
+ monitor-exit p0
+
+ throw v0
+.end method
.method public declared-synchronized setWorkersEnabled(Z)V
.locals 1
.parameter "flag"

.prologue

I'll try to get pure MIUI webkit with MIUI's libwebcore.so working, but I don't have very high hopes for it.