Is there any way, like with JavaScript, to detect if one's site/ app is opened as part of the Google Chrome Web Store? The document.referrer 'chrome.google.com' only arrives in some limited ways of opening the app, but not always.
Apologies if this question is out of scope for StackOverflow as it's very much related to Chrome Web Store details. Thanks!
Related
I am developing an android app starting from a website and encapsulated with TWA (trusted web activity).
The app works, but the problem is that on the chrome history I find all the app addresses visited.
And that's not very good for the security. How can I do to prevent chrome from saving my history?
Is there any javascript or other language function?
I think you may be looking for the chrome.history API. From the link:
Use the chrome.history API to interact with the browser's record of visited pages. You can add, remove, and query for URLs in the browser's history.
I'm currently developing a web app that allows users to add a list of websites that they want to block i.e. preventing them from accessing the website from their browser.
Ideally I want to be able to block websites on every browser but this is difficult, so I narrowed my research to just Chrome for now. I came across the chrome.webRequest api which seems promising but it specifically says its for chrome extensions and am unsure if it would work for my web app.
Can anyone point me in the right direction for blocking websites on a web app, ideally using javascript. Any help is much appreciated!!
EDIT:
1) I forgot to mention that I'm using firebase for my backend.
2) People have been saying that I can't block websites outside the web apps scope, if I instead used electron to make the web app a desktop application would it then be possible?
Firstly you have a database containing URL of blocked websites. URLs are modified using your web app. That's one part. Now your problem is how to make the browser work with your database.
The only possible way for you to share blocked URLs with the browser is via API. You must have API that can communicate outside your web app.
Now browsers such as chrome/firefox give users the power to make changes inside and outside the dom. For chrome, you have chrome extension where Google provides API so the users can manipulate actions outsides regular actions such as manipulating dom. An example I can give that is closely related to your subject matter, which is an action activated before/after a user enters URL on the search box and for that, we use the following API from https://developer.chrome.com/extensions/webRequest
And it's same for Firefox.
I have built a Chrome App which needs to load some websites inside its own window.
The purpose is to display full-screen contents on TVs using Google Chromeboxes in Kiosk mode.
I can't use iframes as the content I must load doesn't allow it.
My researches led me to some code like :
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.create({'url': event.target.href})
})
This seems to open a new tab on the browser running the extension, but not in the extension window.
The vision I have about chrome apps may be confused as it's the first I'm developing, please don't hesitate to tell me the basics I would not have heard of
You need to use the <webview> tag, available in Chrome Apps, to embed external content.
This does not trigger anti-framing protection, since from the point of view of web security each <webview> is a top-level browsing context.
Note the limitations of <webview>: some web features like message boxes or permission requests have to be implemented by you.
As an example of webview usage, see the Browser sample app.
I have a "Progressive Web App" installed to my phone's homescreen.
The Facebook Javascript SDK it trying to open a login dialog popup window using window.open.
This results in an about:blank tab being opened in Chrome which never loads, and never redirects the user back to the web app.
Does anyone have any advice or experience with this problem? I imagine since these "Homescreen Apps" are fairly new, this might not be a well known issue (yet).
Looks like it was a bug with Chrome itself. Should be fixed by now (Chrome 68 was released the 24th of July).
We have an old .asp page application that runs only in IE. The problem is, most of the users are using Chrome or Firefox. Is there anyway possible to force a specific link to open in a different browser? I read that it is possible with URI SCHEME, but I wasn't able to find any good explanation.
As I mentioned, this is ONLY for intranet purposes. I know that it's impossible for users outside of the network.
Thanks