Results 1 to 2 of 2

This is a discussion on Browser Action Breaks on Update (4.0.237.0) within the Chrome Troubleshooting section, part of the Google Chrome category: So Anyone know whats going on? First thing I noticed once chrome auto-updated was that my extension no longer has ...


  1. #1
    Apache787 is offline Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Default Browser Action Breaks on Update (4.0.237.0)

    So Anyone know whats going on?

    First thing I noticed once chrome auto-updated was that my extension no longer has an icon (using a png image, not a canvas)

    Second thing I noticed, my content scripts are no longer running, either a)no longer being added to the page, or b) no longer receiving communication from the .addListener() function

  2. #2
    Apache787 is offline Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Default

    Alright, looks like 2 things changed after a few rounds of debugging.

    Content Scripts:
    Code:
    Using this no longer works:
    window.addEventListener("load", function() {
    	chrome.extension.connect({name: "load"}).postMessage();
    }, false);
    
    Instead, use this:
    window.onload = chrome.extension.connect({name: "load"}).postMessage();
    Manifest.json
    Code:
    Using this no longer works:
      "browser_action": {
          "name": "Title",
          "icons": ["icon.png"],
          "popup": { "path": "popup.html", "height": 136 }
      }
    
    Instead, use this:
      "browser_action": {
          "default_title": "Title",
          "default_icon": "icon.png",
          "popup": { "path": "popup.html", "height": 136 }
      }

Similar Threads

  1. Cannot submit correctly form within a browser action?
    By NicholasPufal in forum Plugins Development
    Replies: 4
    Last Post: 03-29-2011, 07:36 PM
  2. Page Action development problems :x
    By henasraf in forum Plugins Development
    Replies: 7
    Last Post: 08-17-2009, 08:03 PM
  3. Google Bookmarks Page Action
    By Wossname in forum Chrome Plugins
    Replies: 6
    Last Post: 08-11-2009, 11:18 PM
  4. Page Action addListener gives error.
    By rajesh.poddar in forum Plugins Troubleshooting
    Replies: 1
    Last Post: 08-11-2009, 07:03 AM
  5. Subscribe as a page action
    By rock_galore in forum Chrome Plugins
    Replies: 19
    Last Post: 06-23-2009, 05:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •