Changeset 615

Show
Ignore:
Timestamp:
01/19/08 09:46:48 (11 months ago)
Author:
oyasu..@gmail.com
Message:

I'd feel happier and safer like this (prevents pages rendering in html or xml mode from triggering the script install dialog).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/jhs1/chrome/chromeFiles/content/browser.js

    r609 r615  
    153153  // Show the greasemonkey install banner if we are navigating to a .user.js 
    154154  // file in a top-level tab. 
    155   if (href.match(/\.user\.js$/) && safeWin == safeWin.top) { 
     155  if (href.match(/\.user\.js$/) && safeWin === safeWin.top && 
     156      !safeWin.document.contentType.match(/(x|ht)ml/i)) { 
    156157    var browser = this.tabBrowser.getBrowserForDocument(safeWin.document); 
    157158    this.showInstallBanner(browser);