Questions tagged [google-chrome]

23162 questions
0

votes
0

answer
16

Views

PHP setcookie function not honoring httponly or secure arguments

I have no idea why this is happening or how to fix it. I can run this: setcookie('cookie_name', 1, time()+86400*365*2, "/", ".domain.com", false, false); And I get this in the response headers when I load the script: cookie_name=1; expires=Fri, 19-Feb-2021 19:08:57 GMT; Max-Age=63072000; path=/; dom...
SublymeRick
1

votes
1

answer
2.8k

Views

Ckeditor instance ready is not firing in chrome(some systems only)

Am using code as below: CKEDITOR.inline(document.getElementById('a'), { toolbar: ['Bold', 'Italic', 'Underline', '-', 'Strike', 'Subscript', 'Superscript'] }); CKEDITOR.on('instanceReady', function(ev) { alert("HI"); }); Ckeditor oninstanceready function is not firing in some system with chrome brow...
Vinoth Kumar
0

votes
0

answer
3

Views

Wait for Element inside Shadow-Root to be present using Nightwatch

Using Nightwatch I am trying to clear the browser cache of Chrome which means I have to click the Confirm button on the settings page and therefore wait for it to be present. (chrome://settings/clearBrowserData) Because Chrome is using shadow-roots this isn't as simple as selecting the element using...
Tom
1

votes
2

answer
1.5k

Views

Get total time of all resources loaded from Chrome's Network Tab?

Chrome's Network Tab is so close to telling me everything I need. The red mark on the image below is the very end of loading the page, resources and ajax requests, but it doesn't actually tell me what the figure is. It looks like I have to guess that it's 1.50 seconds or so. Is there anywhere here t...
Calpau
1

votes
2

answer
361

Views

How to resolve Undefined and Nan?

I'm building an Chrome extension and I encountered following error in my popup. I clearly defined 'total' variable and storing in it a value from local storage.But why am I getting such an error? What I'm trying to do: 1)I'm storing total variable in local storage and access it from popup.js. 2)Th...
Nikhil
1

votes
1

answer
587

Views

oauth.io (oauth.js) with Chrome Extension

I am trying to create a chrome extension. Need to auth with github. I am currently using oauth.js for auth, using chrome extension boilerplate http://extensionizr.com/ When i try my code at localhost i can auth with no problem. This is a my code for oauth: OAuth.initialize('my key'); OAuth.popup('gi...
Samed
1

votes
1

answer
8.6k

Views

Convert a image url to pdf using jspdf

function convertImgToBase64(url) { var canvas = document.createElement('canvas'); var ctx = canvas.getContext('2d'); img = document.createElement('img'), img.src = url; canvas.height = img.height; canvas.width = img.width; var dataURL = canvas.toDataURL('image/jpeg') alert(dataURL); canvas = null;...
2

votes
1

answer
24

Views

Javascript alert block audio loop only in chrome

i'm having a very strange issue here i want to display an alert with javascript with an audio looping on the background i managed to do it but it won't work in Chrome it works perfectly in Firefox, Edge, IE but not Chrome -_- in chrome the audio is looping only when you clic OK on the alert Here is...
Gaston
1

votes
2

answer
9.6k

Views

Opening local files from chrome

Is it possible to open a local file on the filesystem/network drive (c:\abc.xlsx or p:\abc.xlsx)? If so, is it possible to do it through a custom extension that I create for Google Chrome?
Amit Ben Ami
1

votes
1

answer
565

Views

Chrome API is undefined

I'm trying to get a Chrome extension that interacts with Dropbox's API, using OAuth2. I have read the Identity API documentation but I am confused on where to invoke chrome.identity.launchWebAuthFlow(). I have created a background page, and included a .js script which calls chrome.identity.launchWe...
user3696321
1

votes
1

answer
1k

Views

CSS transition on element leaving lines

I have placed a hover transition on an absolutely positioned element. The hover state applies a box-shadow to the heading element to mimic it filling the area (to get around the fact you cannot transition from a property set to auto). In Chrome only, when the transition is reversed, there are a bunc...
nickspiel
1

votes
3

answer
4.4k

Views

How to hide Chromedriver console window?

I have a simple Python script which uses selenium and webdriver to open up Facebook in a Chrome window and log in automatically. When I run it, the Chromedriver console window opens up and stays open even after the entire program has finished execution, until I close it myself. Is there a way to h...
Akshay Damle
1

votes
1

answer
444

Views

<video> tag for MPEG 4 Visual for firefox and Chrome

I am trying to play different types of MP4 videos on different browser using HTML5 video tag. MPEG-4 Visual is creating problem in chrome and Firefox. Its working fine in Safari. Its showing black screen with some audio. Why ?? Your browser does not support HTML5 video. I am using this code. This v...
Sajid
1

votes
2

answer
590

Views

Chrome favicon.ico GET request

Given the following script: Using http://www.example.com/testing/chrome.php?x=123 as the URI produces the expected results: array(1) { ["x"]=> string(3) "123" } But when viewing the system log and Apache access log, I have another GET variable named "cid" whose value is "favicon.ico" when using the...
user1032531
1

votes
0

answer
5

Views

Download Large PDF Files (Bigger Than 150 MB) With Crystal Report

I have .net mvc project. This web project has a screen which can download report file with specified credentials. This screen use Crystal Report. User specifies inputs and then click the download button after that stored procedure is executed to fetch data. User can download pdf files which's size...
John
1

votes
1

answer
3k

Views

How to enable camera and microphone in packaged application for Chrome OS or Chrome extension?

I'm testing scenario where I call a hangouts web page in separate window but application doesn't have access to microphone and camera - buttons are red and message says that "Hangouts can't use the selected microphone/camera". I have included in permissions "audioCapture" and "videoCapture". What h...
Jacek
1

votes
2

answer
75

Views

Binding extension content scripts to Chrome's start page?

Is there any way to bind a content script to Chrome's start page? I tried setting matches to "*", but it doesn't even run. With "*://*/*" it does not bind.
Flash Thunder
1

votes
1

answer
470

Views

Chrome extension i18n getMessage from specific locale

is there a way to ask for i18n messages of a specific locale using JS please? I'm working on an extension for Youtube, and in Youtube site the user can change the site language, so even if the user's browser is in English, the user able to view the site in Japanese for example. In a case like that...
Gil Goldshlager
1

votes
2

answer
926

Views

Access global variables from Require.js in the Chrome Developer Console

I am creating an ASP.NET single-page application, and have a require.js config file that runs on application start, referencing jQuery, Sammy.js, and knockout.js. I have created shims for the three third-party libraries to allow me to access them on a global level: require.config({ paths: { "jquery"...
miguelarcilla
1

votes
2

answer
2.2k

Views

Why do my svg look so bad?

My svg looks very bad in Google Chrome and Firefox too, the Svg borders have poor quality: Meanwhile, in Illustrator the svg looks awesome: I have saved the .svg file with this configuration: What is happened?
Funny Frontend
1

votes
1

answer
788

Views

Google chrome - Extensions being automatically removed

I was trying to pack an little extension i made, but chrome keeps removing it as it may have been "installed without my consent". Is there any way to stop this? Thanks! Note: This is not a duplicate from this question , as my extension is not yet in the chrome store.
SergSoftwares
1

votes
3

answer
987

Views

See request time in Chrome developer tools

During ajax development, I often need a way of seeing the time a request was sent in Chrome developer tools. Either an absolute time (such as 3:45:23 PM) or a relative time (4.56s since page load) is fine. The closest I can find is the timeline in the Network tab, showing the Start Time (you can cli...
wezten
1

votes
1

answer
1.5k

Views

Is it possible to make a Chrome CustomTabs intent not open an external application?

I want the Chrome CustomTab to always open the url in the Chrome CustomTab. Even if there is an external application that the intent can go to. Right now the user is prompted if they want to open in Chrome or the external application. Is it possible to force the intent to go through Chrome? I know a...
Michael
5

votes
1

answer
68

Views

AngularJS / Rails mobile session only last an hour

Why do mobile sessions last an hour but desktop don't expire. I'm simply setting the cookie with: // app.run $http.defaults.headers.common['X-CSRF-Token'] = $cookies.get('csrftoken'); This works perfectly fine on desktop (many months) but with mobile it only lasts ~1 hour. Why does this happen? Do...
user2954587
1

votes
1

answer
908

Views

How to permanently change navigator.useragent in Google Chrome?

I use Google Chrome version 55.0.2883.87 m. When developer tool is on, the value of navigator.userAgent comes as : Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Mobile Safari/537.36 When developer tool is off, the value comes as : M...
Ayushi Khopkar
1

votes
1

answer
487

Views

Mouse missing inside the mobile device emulator in Chrome dev tools, how to get it back?

I'm not sure if something just changed with dev tools with an update or if I accidentally pressed something on the settings but I no longer get the circle mouse indicator inside the mobile emulator. Is there a way to get it back? Steps to replicate: Open dev tools (press F12 key) Toggle the device t...
TK123
1

votes
1

answer
328

Views

Store sensitive data in indexedDB?

I am working on an application which stores some sensitive information in the user's browser(localstorage and IndexedDB), because the application runs in offline mode also. Is there some way which makes sure that the user won't be able to edit the data in IndexedDB from Developer tools. We are using...
Paridhi Sharma
5

votes
3

answer
120

Views

Why isn't it possible to download a file for status code 4XX and 5XX

I have noticed that many http clients including Firefox and Chrome don't allow file downloads for http response codes with 4XX and 5XX. However, some clients allow these downloads, like curl and wget (with --content-on-error option). Both Chrome and Firefox don't provide nice exception messages. Chr...
Robin
1

votes
3

answer
1.5k

Views

Google Tag Manager preview mode not working on click

This is not a problem with viewing the GTM console on my domain. When I click the "preview" button my GTM interface refresh, but it just won't go into preview mode! Never had this problem before and I've tried closed and opened chrome, disabled cache in devTools and tried it in incognito. Nothing of...
Jack Norberg
0

votes
0

answer
4

Views

Google 72.0.3626.109 cannot upload images using a URL

On that last update, I have lost the ability to use a website uploader function and instead of browsing to a local file, use a URL. It is defaulting to the chrome program location which it doesn't usually and saying I can't open a file in that location despite opening without issue. If I try to ope...
Steve Newton
1

votes
0

answer
7

Views

Prevent Chrome-Headless from enforncing ssl

Setup I'm running chrome-headless as a container in my docker-compose project. My main app (the one I'd like to test) is named 'app' inside the compose file. To connect from the chrome-headless container to my app, I'm using the dockers internal containerlinking: http://app:3000 docker-compose.yml v...
Seltsam
1

votes
2

answer
122

Views

In Selenium how does ChromeDriver executable finds Chrome browser?

For Selenium, we define the chrome executable path in System.setProperty. When a URL is passed in driver.get and Chrome invokes: 1 - How does chrome executable know where Chrome browser is actually installed? 2 - What would happen if I do not have Chrome browser? Responses appreciated!!
user10336830
0

votes
1

answer
12

Views

clicking a button in javascript without button id

I am attempting to automate a button click on a website. The only problem is, the HTML for the button looks like this (please note that this is not the exact button I am trying to click, it is just a real example of what a lot of buttons look like): Continue Obviously, there is no ID for this butt...
Louis
1

votes
1

answer
73

Views

Why is puppeteer reporting “UnhandledPromiseRejectionWarning: Error: Navigation failed because browser has disconnected!”?

I've got a simple node.js script to capture screenshots of a few web pages. It appears I'm getting tripped up somewhere along the line with my use of async/await, but I can't figure out where. I'm currently using puppeteer v1.11.0. const puppeteer = require('puppeteer'); //a list of sites to screens...
Al R.
1

votes
4

answer
132

Views

Open jsPDF created pdf in Chrome's new tab/window

How can I open with javascript link data:application/pdf;filename=generated.pdf;base64;DATA in Chrome 71? Link from console opened successfully, but not from code - unfortunately. The snippet does not work for security reason. Only for code demonstration. I read some similar questions, but did not f...
eustatos
0

votes
0

answer
6

Views

How to Truly Permanently enable Flash for All Sites on Chrome

On the latest Chrome versions, google has edited the flash settings to 2 Default (ask) to use Flash or Block all Sites from using Flash and this frustrates me alot, having to whitelist every site with flash (I visit many every day) and I was wondering if someone could help me Yes Ive tried the Chrom...
SkylerSpark
0

votes
0

answer
4

Views

chrome.windows.create() no longer seems to honor width parameter (windows)

until recently chrome.windows.create() properly opened the window to the requested width but no longer seems to do so. now, (only on windows platform) the following chrome.windows.create( { "url" : fireflyURL+"?portname="+this.pathname...
Chrys G
0

votes
0

answer
5

Views

Get Value from Chrome Extension Popup to Print in Website Textbox

Trying to get value of textbox 'name_textbox' in chrome extension popup to content_script.js popup.js document.addEventListener('DOMContentLoaded', docLoad , false); function injectTheScript() { textIn=document.getElementById('name_textbox'); chrome.tabs.query({active: true, currentWindow: true}, f...
Seb Tota
2

votes
4

answer
45

Views

How to loop delay 1 second “inside Console of Google Chrome”

I want to run myCustomFunction inside "Console of Google Chrome" with 1 second delay on each loop. Tried setInterval but no avail as no execution delay was observed inside Console of Google Chrome. const myCustomFunction = i => console.log('iteration test number', i); for (let i = 0; i < 11; i++)...
bg27
0

votes
0

answer
7

Views

How to open excel/word file instead of downloading it in chrome?

Per title. Instead of downloading the files, how to view a word/excel file when clicking into its link by using chrome?
snakehand

View additional questions