mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
e6b98a6181
commit
36b1d4e6cf
|
@ -9,6 +9,9 @@
|
|||
"id": "messaging@example.com"
|
||||
}
|
||||
},
|
||||
"externally_connectable": {
|
||||
"matches": ["*"]
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": [
|
||||
|
@ -28,6 +31,7 @@
|
|||
"permissions": [
|
||||
"nativeMessaging",
|
||||
"geckoViewAddons",
|
||||
"nativeMessagingFromContent",
|
||||
"webRequest",
|
||||
"tabs",
|
||||
"webRequestBlocking",
|
||||
|
|
|
@ -149,7 +149,7 @@
|
|||
</p>
|
||||
<p name="63ec" id="63ec"><strong>We’re still in the early stages of what this project will look like, so if you want to help or have thoughts, let’s talk.</strong>
|
||||
</p>
|
||||
<p name="9376" id="9376"><a href="mailto:orionhiddentechnologies@gmail.com" data-href="mailto:orionhiddentechnologies@gmail.com" rel="nofollow"><strong>pippin@pippinlee.com</strong></a>
|
||||
<p name="9376" id="9376"><a href="mailto:messaging@example.com" data-href="mailto:orionhiddentechnologies@gmail.com" rel="nofollow"><strong>pippin@pippinlee.com</strong></a>
|
||||
</p>
|
||||
<p name="ea00" id="ea00"><em>This isn’t supposed to be a </em>
|
||||
<strong><em>manifesto™©</em>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,6 +8,7 @@ import android.os.Handler;
|
|||
import android.util.Log;
|
||||
import android.widget.ImageView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.hiddenservices.onionservices.appManager.activityContextManager;
|
||||
import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.BrowserIconManager;
|
||||
|
@ -39,6 +40,7 @@ import static org.mozilla.geckoview.StorageController.ClearFlags.SITE_DATA;
|
|||
import static org.mozilla.geckoview.StorageController.ClearFlags.SITE_SETTINGS;
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.geckoview.ContentBlocking;
|
||||
import org.mozilla.geckoview.GeckoResult;
|
||||
import org.mozilla.geckoview.GeckoRuntime;
|
||||
import org.mozilla.geckoview.GeckoRuntimeSettings;
|
||||
import org.mozilla.geckoview.GeckoView;
|
||||
|
@ -243,6 +245,13 @@ public class geckoClients
|
|||
mPort = port;
|
||||
mPort.setDelegate(mPortDelegate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GeckoResult<Object> onMessage( final @NonNull String nativeApp, final @NonNull Object message, final @NonNull WebExtension.MessageSender sender) {
|
||||
Log.e("MessageDelegate", "onConnect");
|
||||
return null;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
private final WebExtension.PortDelegate mPortDelegate = new WebExtension.PortDelegate() {
|
||||
|
@ -266,6 +275,9 @@ public class geckoClients
|
|||
private WebExtension.Port mPort;
|
||||
public void onExtentionClicked(){
|
||||
try {
|
||||
if (mPort==null){
|
||||
return;
|
||||
}
|
||||
long id = System.currentTimeMillis();
|
||||
Log.e("evalJavascript:id:", id + "");
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
@ -293,7 +305,6 @@ public class geckoClients
|
|||
|
||||
mRuntime = GeckoRuntime.create(context, mSettings.build());
|
||||
mRuntime.getSettings().setRemoteDebuggingEnabled(true);
|
||||
installExtension();
|
||||
|
||||
mCreated = true;
|
||||
onClearAll();
|
||||
|
@ -311,6 +322,8 @@ public class geckoClients
|
|||
}
|
||||
|
||||
dataController.getInstance().initializeListData();
|
||||
mRuntime.getSettings().setRemoteDebuggingEnabled(true);
|
||||
installExtension();
|
||||
}
|
||||
initBrowserManager();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue