google-chrome

Handling crash dumps from Firefox and Google Chrome

Hey all, I'm developing a cross-platform NPAPI+XPCOM extension for Firefox and Google Chrome (Windows, Linux and Mac). I was wondering if anyone could enlighten me on the best practices of handling component crashes. As I understand it, currently Mozilla's Crash Reporter submits mini-dumps and crash reports created to Mozilla Dev. I ex...

How to move and resize the browser's window in Opera and Chrome?

I was looking for a way to resize and move the browser's window and I've found it: self.resizeTo(w, h) and self.moveTo(x, y) - this seems to work perfectly, but only in Firefox and IE (tested with IE8, don't know how does it work in the previous versions). How can I force the same behavior (resizing and moving) in Opera and Chrome? In th...

Detecting the clicked links after ajax load in Chrome using $("a:focus")

I have a page which has a list item, and each item has a delete button. Clicking the delete button loads the child page (delete.asp?id=123) in a hidden div. delete.asp has a javascript alert (on document ready) which successfully fires when the button is clicked. It also has $("a:focus").hide(); which removes clicked link. I can't seem...

Update a greasemonkey script in chrome without reinstalling?

Is there a way to do this? I just want to be able to save, refresh the page, and have my changes show up like I do in Firefox. Having to drag it over and install it every time gets annoying. Any ideas? ...

Chrome Extension for Amazon Cloud

Hi, Is there any extension for chrome which is similar to Hybridfox or Elasticfox? Regards, Allahbaksh ...

Google Chrome - buggy curved borders?

Hey, I have a relatively positioned div within a centred div of width 50%... I mean the outer one is set to width: 50% and margin-left/right: auto. I then have another div with class headerContainer and another one with class header. There is an image with class headerImg within the header div. It would seem that, when a curved border ...

Required Field Validators firing in Chrome & Safari when button has CausesValidation="false"

I'm having some problems with my ASP.NET 4 application in Chrome & Safari (works in Firefox and IE). I have a button declared using the following code: <asp:Button ID="btnEOI1" runat="server" CssClass="buttonCSS" Text="Lodge an Expression of Interest" OnClick="btnEOI_Click" CausesValidation="False" /> In the c...

Google Chrome display JSON AJAX response as tree and not as a plain text

I cannot find an answer to this one: My AJAX calls return JSON data. In Google Chrome Developer Tools > Resources > XHR when I click on the resource on the left and then on the Content tab I see the JSON string as a string and not as a tree as Firebug and Firebug Lite do. How do I force Chrome to diplay it as a tree. Is there a Content...

Google chrome same url cache

I'm testing my servlet using google chrome. When i tried to load the same url twice, say, localhost/myserver/servlet chrome only sent out one request to the server. However, if I modified the second url to be: localhost/myserver/servlet?id=2 it sent two different requests. I've enabled the incognito mode, but it seems that chrome sha...

HTML5 canvas: Same code outputs different results in different browsers

In a simple canvas test I created for performance and quality measurement purposes, a canvas is painted with randomised colors and images during an unlimited period. A sample is shown here: http://litterific.com/minisite/ Warning: Only open this in Opera or Chrome, the script is pretty heavy can hang up on slow computers, don't le...

window onload event fails in Chrome (with demo)

I'm adding some <script/> tags from javascript to load some libraries (e.g., jquery). When all libraries are loaded, I execute main code. To wait until everything's ready, I use solution similar to the one in this answer (found it on the web). Now, the story: http://jsfiddle.net/EH84z/ It works fine in Firefox, but quite often fails in ...

How do I learn what changes my css values?

I am a newbie (very much so), so my question might be dumb, but I couldn't find the answer. For a contact table on a webpage I have set the height of 30px, but when I look at it in Google Developer tools, the height value is crossed out. I've tried to find out what causes my value to be overriden, but no luck. The developer tools shows...

onpopstate event doesn't trigger in Chrome/Safari

Chrome and Safari doesn't trigger the HTML5 onpopstate event. Here is my example: <!doctype html> <html> <head> <title></title> <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script> window.onpopstate = function(e) { document.getElementById("log").i...

CSS Navigation Drops only in Google Chrome. Rails Tutorial Feedback

I am going through the awesome Rails Tutorial http://railstutorial.org/chapters/filling-in-the-layout#sec:custom_css I've run into an issue with the Navigation dropping down into the body of the page, but this only happens in Chrome (I'm on Linux, Ubuntu 10.10 if that matters). Here is a screenshot and a URL to show you actually what the...

Iframe issue in Google Chrome

I am creating a dynamic iframe. In order to listen for 'blur' even on iframe I have made it work in FF and IE using iframe's contentWindow.document and iframe respectively. But this does not work in Google Chrome (May be not work in other webkit browsers). My question is I am looking for an event which can call my handler anytime user lo...

regex.test() only works every other time

Regex test() is giving me issues in Firefox and Chrome, yet it works flawlessly in Opera and Safari. troubled code: var pattern = /(\s+(?!\$\w+)|(^(?!\$\w+)))/g; if(pattern.test(String(id).replace(/\s+OR|AND\s+/g, ''))) { searchError("You suck."); return 1; } When you pass in white space, it blocks it every time. When you pass in s...

CKEditor textarea extending out past box in Chrome and Safari

In FF, Opera, IE the CKEditor is working and looks great. But in Chrome and Safari it is not sizing correctly, and is extending past the container that it is inside. I assume this is because Chrome and Safari are currently the most standards compliant. See the images below. Chrome Opera I tried removing all of my CSS files to see ...

How to make Google Chrome to stop automatically modify contenteditable elements HTML source ?

Hello, I am using contenteditable attribute for a purpose of my own WYSIWYG editor. Most of the problems I solved myself, however one I can't figure out. Contenteditable is acting little weird, because my editor generates XHTML code and as soon as I insert this code in contenteditable element, it modifies it to non-XHTML code, e.g.: <h...

Dynamic iframe resize woes in google chrome. Help!

Hey guys long time reader first poster. Well I seem to be having an iFrame resize issue with Google Chrome. > <script language="javascript" type="text/javascript"> function resizeIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; } </script> < That's in my header. > <iframe id="conten...

How can i prevent the textarea from stretching beyond his parent DIV elemnt? (google-chrome issue only)

How can i prevent the textarea from stretching beyond his parent DIV elemnt? I have this textarea inside a table that it is inside a DIV and it seems that it cause the entire table to streach out of it's bounds. You can see an example of the same situation even in a more simple case, just putting a text area inside a div (like what is ...