Tag: google chrome

Build chrome extension to tweet

I’m trying to build a simple chrome extension which consists of one icon that when clicked, pops up the official twitter window (as in here). The problem with most extensions that do this is that the window remains open after. If, however, you include this script provided by Twitter , they take care of closing […]

Where can I find the Chrome Extension Crash report?

note: It’s the Extension crash report, NOT Chrome itself crash report I developed a chrome extension only in javascript, but it crashes sometimes. I’ve grep my dir and find nothing, google search doesn’t help either.

Memory leak when transferring image data to Web Worker in Chrome

I’m repeatedly passing image data from an HTML5 canvas to a Web Worker using a Transferrable Object — Condensed Code: var worker = new Worker(“test.js”); setInterval(function () { var data = context.getImageData(0, 0, canvas.width, canvas.height); worker.webkitPostMessage(data, [data]); }, 100); The problem is that memory usage increases astronomically every few seconds and doesn’t appear to decrease […]

window.print() method stop the world

I use window.print() method, it will pause the javascript code(e.g. setInterval), when you close the print window, the code continues. See below for an example, I tested in IE9.0 and chrome 20.0 http://jsfiddle.net/f9aGR/ I also tried to open another page, then call window.print(), like <a href=’/1231′ target=’_newtab’>wtf</a> However, calling window.print() will also pause the javascript […]

Custom print preview in chrome extension

Im developing an Chrome Extension which need to customize the print preview dialog (to count pages, to realtime on/off images and font size changing). Is there any way to insert javascript into chrome print preview? Or, may be, how to create my own preview with page-splitting and other print preview attributes?

Uncaught ReferenceError: ExtensionSettings is not defined (anonymous function)

I’m getting an error when loading the Extensions page from chrome: Uncaught ReferenceError: ExtensionSettings is not defined (anonymous function) From the page: chrome://chrome/extensions/ This only happens when my extension is active, not when it is disabled (only have at most 1 extension active at all times and it’s only this extension). I should reference that […]

Chrome console to file

I would like to store the console output from my javascript in a file. Well, I would prefer to see the output in a file too see with /usr/bin/tail or other linux comand. Does anybody know if its possible?, and How to do that?

Is there is any simulater that triggers gestures events in JavaScript on Windows 7?

I have enabled the Emulate Touch Events option in Chrome’s Developer Tools, to test the touch events, it works fine, but when i pinch in and pinch out the chrome page is not triggering gesturestart and gesturechange and i am using the this driver for multi touch this is working for image, browser zoom in […]

Why is this new code slower than my old code?

The question I have replaced some code that I was having performance issues with with some new code that I had expected to perform better. Instead, it performed worse. I’d like to understand why this is the case so that I can work with chrome’s V8 runtime rather than against it. The background My code […]

Origin is not allowed by Access-Control-Allow-Origin?

I am trying to fetch weather information from Yahoo using XHR in a Chrome extension: $.ajax({ url: “https://weather.yahooapis.com/forecastrss?w=” + 250226 + “&u=c”, dataType: ‘xml’, success: function(data) { console.log(data); } }); and I have requested the permission to cross-origin using this script: $(“button”).click(function(){ chrome.permissions.request({ origins: [‘*://weather.yahooapis.com/*’] }, function(granted) { if (granted) { console.log(“Success creating permission.”); //successful […]