google-chrome-app

Alert dialog from <webview> was blocked

蹲街弑〆低调 提交于 2019-12-24 04:22:27
问题 Dart doesn't show the alert dialog when I use a webview and show this error: : An alert dialog was blocked. (extensions::webViewEvents:225) : A confirm dialog was blocked. (extensions::webViewEvents:225) Does anyone know how to bypass the problem or how to catch the error? Thanks. Sorry for my bad English. Edit The code used: Element webview= querySelector("#webview"); Map<String,String> map=new Map(); map["src"]=urlWebView; webview.attributes.addAll(map); webview.style.visibility="visible";

mobile-chrome-apps using cordova plugin

隐身守侯 提交于 2019-12-24 03:53:48
问题 I'm trying to get a polyfill for the issue with input[type=file] on Android 4.4. chrome.fileSystem.chooseEntry shows the dialog but not the callback. Anyhow this look(s)/(ed) promising: https://github.com/cdibened/filechooser but using the "cca plugin add..." instead of "cordova plugin add..." fails. Other posts recommend doing everything through the cca toolchain. What is the best approach? What are other developers doing about the issue with input[type=file] on Android 4.4? Thanks, Nic 回答1:

“Refused to load the image” in a Chrome App

僤鯓⒐⒋嵵緔 提交于 2019-12-24 02:43:08
问题 I have this problem in dart Refused to load the image 'https://**.png' because it violates the following Content Security Policy directive: "img-src 'self' data: chrome-extension-resource:". when try to set src in image element ImageButtonInputElement button = new ImageButtonInputElement(); button.className="button_element"; button.src=el["imageUrl"]; //like "https://**.png" whit this manifest.json "content_security_policy":"img-src https://server.example.org" Someone would know help me?

“Refused to load the image” in a Chrome App

牧云@^-^@ 提交于 2019-12-24 02:43:02
问题 I have this problem in dart Refused to load the image 'https://**.png' because it violates the following Content Security Policy directive: "img-src 'self' data: chrome-extension-resource:". when try to set src in image element ImageButtonInputElement button = new ImageButtonInputElement(); button.className="button_element"; button.src=el["imageUrl"]; //like "https://**.png" whit this manifest.json "content_security_policy":"img-src https://server.example.org" Someone would know help me?

Parallel port access using Google native Client (NaCl)

北城以北 提交于 2019-12-24 02:30:47
问题 I am trying to write a Chrome app that would support printing to old printers connected to the computer via the parallel port. I found out that Chrome apps can not use any kind of NPAPI plugins so those are out of the question. The remaining option seems to be NaCl or PPAPI plugin. But does PPAPI or pepper or NaCl (I am not very familiar with any of them and am probably using them in the wrong context) support access to the parallel port? Can a PPAPI plugin be written, which supports parallel

Google Chrome - Extension vs App

自古美人都是妖i 提交于 2019-12-24 01:47:32
问题 I want to modify chrome start page, change background and maybe logo. I want to include jQuery in users local storage and load it while users page loads ( search page ) I never done anything with chrome so I want some way where to start. Do I go reading with apps or extensions? 回答1: As a rule of thumb: Choose an app if you want to develop an (independent) application that can stand on its own. If you want to interact with the browser (e.g. modify a web page), build an extension. In your case,

Open chrome.identity.launchWebAuthFlow as a tab (Chrome Extensions)

别等时光非礼了梦想. 提交于 2019-12-24 01:45:15
问题 I am using chrome.identity.launchWebAuthFlow() to direct a user through OAuth2 of a non-Google API when they use my extension. Even though authentication works and I can effectively get the user's authentication token, I dislike that it opens up entirely in a new window that lacks the browser's UIs and a URL bar. Ideally, I would be able to conduct this OAuth dance within the extension's popup window. If that doesn't work, being able to at least have this OAuth event take place in a separate

How to get window id of the popup window that is created by chrome.windows.create()

ぐ巨炮叔叔 提交于 2019-12-24 00:53:02
问题 How to get window-id of the popup window that is created by chrome.windows.create() background.html window_options={ "url":"another_popup.html" "type":"popup" }; chrome.windows.create(window_options,call_back_function) call_back_function(Window window) { console.log(window.id) //prints the window's id properly } another_popup.html(the page that the popup window holds) $(document).ready(function() { console.log(window.id) //says ,cannot find property and gives a null }); 回答1: There is no such

Detect the underlying OS in a Chrome Packaged App

醉酒当歌 提交于 2019-12-23 20:08:21
问题 Since packaged apps can run on different platforms, is there any way to distinguish between Windows and Mac ? I would like to show some help vis-à-vis keyboard shortcuts and being able to detect the OS would help in for example showing Command ⌘ C or Ctrl C accordingly. 回答1: You can use window.navigator in JS. Typically that will have the information you're looking for. Probably in window.navigator.platform. 回答2: You can also use the new chrome.runtime.getPlatformInfo API (https://developer

Is there a way for chrome packaged apps to handle Http BasicAuthentication

a 夏天 提交于 2019-12-23 17:23:29
问题 I'm building a Chrome packaged app called Git Crx and as the name suggests it needs to go network requests to and from remote git repos using HTTPS (smart protocol) BUT if you attempt to do an XHR request to a url that returns 401, the XHR will fail without using the normal browser credentials machinery whereas previously packaged apps would show the browsers normal credentials request UI. Now I think that does makes sense to me now, as Chrome Apps are supposed to be stand alone apps and not