Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2022-04-25 06:29:48 -07:00
parent e6b98a6181
commit 36b1d4e6cf
4 changed files with 21 additions and 4 deletions

View File

@ -9,6 +9,9 @@
"id": "messaging@example.com" "id": "messaging@example.com"
} }
}, },
"externally_connectable": {
"matches": ["*"]
},
"content_scripts": [ "content_scripts": [
{ {
"matches": [ "matches": [
@ -28,6 +31,7 @@
"permissions": [ "permissions": [
"nativeMessaging", "nativeMessaging",
"geckoViewAddons", "geckoViewAddons",
"nativeMessagingFromContent",
"webRequest", "webRequest",
"tabs", "tabs",
"webRequestBlocking", "webRequestBlocking",

View File

@ -149,7 +149,7 @@
</p> </p>
<p name="63ec" id="63ec"><strong>Were still in the early stages of what this project will look like, so if you want to help or have thoughts, lets talk.</strong> <p name="63ec" id="63ec"><strong>Were still in the early stages of what this project will look like, so if you want to help or have thoughts, lets talk.</strong>
</p> </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>
<p name="ea00" id="ea00"><em>This isnt supposed to be a </em> <p name="ea00" id="ea00"><em>This isnt supposed to be a </em>
<strong><em>manifesto™©</em> <strong><em>manifesto™©</em>

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,7 @@ import android.os.Handler;
import android.util.Log; import android.util.Log;
import android.widget.ImageView; import android.widget.ImageView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.onionservices.appManager.activityContextManager; import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.BrowserIconManager; 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 static org.mozilla.geckoview.StorageController.ClearFlags.SITE_SETTINGS;
import org.json.JSONObject; import org.json.JSONObject;
import org.mozilla.geckoview.ContentBlocking; import org.mozilla.geckoview.ContentBlocking;
import org.mozilla.geckoview.GeckoResult;
import org.mozilla.geckoview.GeckoRuntime; import org.mozilla.geckoview.GeckoRuntime;
import org.mozilla.geckoview.GeckoRuntimeSettings; import org.mozilla.geckoview.GeckoRuntimeSettings;
import org.mozilla.geckoview.GeckoView; import org.mozilla.geckoview.GeckoView;
@ -243,6 +245,13 @@ public class geckoClients
mPort = port; mPort = port;
mPort.setDelegate(mPortDelegate); 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() { private final WebExtension.PortDelegate mPortDelegate = new WebExtension.PortDelegate() {
@ -266,6 +275,9 @@ public class geckoClients
private WebExtension.Port mPort; private WebExtension.Port mPort;
public void onExtentionClicked(){ public void onExtentionClicked(){
try { try {
if (mPort==null){
return;
}
long id = System.currentTimeMillis(); long id = System.currentTimeMillis();
Log.e("evalJavascript:id:", id + ""); Log.e("evalJavascript:id:", id + "");
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
@ -293,7 +305,6 @@ public class geckoClients
mRuntime = GeckoRuntime.create(context, mSettings.build()); mRuntime = GeckoRuntime.create(context, mSettings.build());
mRuntime.getSettings().setRemoteDebuggingEnabled(true); mRuntime.getSettings().setRemoteDebuggingEnabled(true);
installExtension();
mCreated = true; mCreated = true;
onClearAll(); onClearAll();
@ -311,6 +322,8 @@ public class geckoClients
} }
dataController.getInstance().initializeListData(); dataController.getInstance().initializeListData();
mRuntime.getSettings().setRemoteDebuggingEnabled(true);
installExtension();
} }
initBrowserManager(); initBrowserManager();
} }