Hi,

On eBay-motors site on some of the vehicles ad the Extension will run
once and then after few seconds it will start again. Its not same as a
page reload/refresh. The original (first run) content-script variables
are maintained.
This doesn't happen with firefox extension with identical code.

Here's test script:
manifest.json :
{
  "name": "ebay bug content script reload",
  "author": "tech4computer",
  "version": "0.1",
  "description": "On eBay motors page content_script starts again
after few seconds.",
  "content_scripts": [
    {
      "matches": [
                    "http://cgi.ebay.com/ebaymotors/*_Cars_Trucks?
hash=item*"
                        ],
      "js": ["content_script.js"]
    }
  ]
}

content_script.js :
<start>

if ( !x ) var x=0;
x=x+1;
alert("x = "+x);

<end>

Test:
1. load extension
2. Goto ebay-motors car ad:
http://cgi.ebay.com/ebaymotors/DVD-NAVIGATION-POWER-DOORS-STOW-N-GO-NO-RESERVE_W0QQitemZ120517081075QQcmdZViewItemQQptZUS_Cars_Trucks?hash=item1c0f60b7f3#ht_27556wt_1165
posting: 2005 Dodge Grand Caravan SXT

3. You will get an alert message:
x = 1
after 5-10 seconds you will get
x = 2

4. Reload/Refresh page
x = 1

The x = 2 indicates that the script is run two times. It happens on
some ads.
-- 
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to