Ticket #14 (new defect)

Opened 1 year ago

Last modified 5 months ago

text/html pages trigger script installation dialog

Reported by: ecmanaut Assigned to:
Priority: major Milestone:
Version: Keywords:
Cc:

Description

With GM 0.6.9.20070408.0, I still (or again, if this is a regression of an a fixed bug) get the Greasemonkey install dialog for pages whose URL matches /\.user\.js$/ and whose content-type is text/html (document.contentType == "text/html"). An example page:

http://trac.nyh.se/gm_scripts/browser/campfirefavicon.user.js

Was this bug not fixed some time ago?

Attachments

Change History

04/23/07 06:39:42 changed by aranti..@gmail.com

Are you referring to #8? If so, that applies only when GM is disabled (The monkey is grey), and has nothing to do with the content type of the resulting page. (And, I'm not sure that's in any build yet, just SVN.)

In short, content type plays no part because there is no standard content type for user scripts. It may make sense to ignore type=html, but that could have repercussions for backwards compatibility.

04/23/07 08:37:28 changed by ecmanaut

No, I'm referring to an old thread on greasemonkey-dev where we formerly leaked info about GM being installed to pages, via http://diveintomark.org/public/2006/07/detect-greasemonkey.html (for instance).

We know for a fact that content-type text/html is not a user script, so ignoring that information is catering backwards compat for the sole purpose of protecting people with misconfigured web servers from having to fix their server configurations. Fixing this it helps in many more situations than not fixing it breaks.

I agree the code should not be written to prompt for installation on one content-type only, but rather that it should be written not to suggest installation, in cases where we know it's wrong. A good regexp to detect HTML (for now relying on us not presently triggering for XHTML anyway) content types is /text\/html(;.*)?/i

04/23/07 08:49:13 changed by anonymous

The proper regexp should start with a /, continue with a circumflex character and end with text\/html(;.*)?/i. It is possibly impossible to quote circumflexes in Trac WikiFormatting. Joy. :-|

07/06/07 18:29:56 changed by anonymous

  • cc set to painting.
  • keywords set to painting.
  • summary changed from text/html pages trigger script installation dialog to painting.

07/06/07 19:32:01 changed by anonymous

07/07/07 09:45:52 changed by anonymous

  • keywords changed from painting to wine.
  • priority changed from major to trivial.
  • summary changed from painting to wine.

07/08/07 09:59:05 changed by anonymous

  • priority changed from trivial to minor.

07/11/07 04:03:39 changed by anonymous

  • keywords changed from wine to game.
  • priority changed from minor to trivial.
  • type changed from defect to enhancement.
  • summary changed from wine to game.

07/12/07 11:05:44 changed by loucypher.m..@gmail.com

  • cc deleted.
  • keywords deleted.
  • summary changed from game to text/html pages trigger script installation dialog.
  • type changed from enhancement to defect.
  • priority changed from trivial to major.

07/24/07 17:55:38 changed by aranti..@gmail.com

You mean:

/^text\/html(;.*)?/i

?

And, I might do instead:

/^text\/html(;|$)/i

08/14/07 18:15:45 changed by anonymous

04/01/08 01:35:13 changed by anonymous

江苏省顺利牧业是一家专业从事良种瘦肉型仔猪繁育、仔猪销售的独资企业。基地成立以来,一直深受省、市、县三级领导的关心与扶持,年年被评为诚实、守信企业,全国外三元育种协作组成员单位,经过不断的扩建,和仔猪品种的改良,基地常年面向全国供应25-110斤长白、杜洛克、双肌臀大约克、内 外三元、纯种四元优质瘦肉型苗猪, 养猪基地所有繁育场采用科学节约化繁育管理,技术质量高,抗病能力强、成活率高。目前加盟我公司连锁大型猪场已达50多家,确保质量。 基地主防:口蹄疫、链球菌、蓝耳病、弓形虫猪圆环病毒、二型混合感染等。 目前公司苗猪远销:苏、沪、浙、皖、鄂、赣、豫、湘、京、冀、晋、陕、新、粤、闽以及东北三省,内蒙等地。让每一个客户都能在顺利苗猪繁殖场,买到良种瘦肉型苗猪是公司最根本宗旨!

1、建立外贸型公司,原料、市场、技术、人才、资金、信息等资;

2、利用现代电子信息技术,建立和完善顺利牧业的电子商务系统和计算机管理系统,实现网上的物流管理,网下的配送服务;

04/08/08 23:50:06 changed by anonymous

电子地磅解码器,吨位遥控器/本吨位遥控器引进日本先进技术研制而成,完全采用数字式集成电路技术,采用万能解码数据处理线路,适用于10----150吨以下吨位,无须对地磅作任何改动 具有防拦截,防扫描等优点,解码器安装于车上或离地磅8米以内,在电子称旁40米或60米以内,能控制电子称的数码数据,最小值20公斤,规格10 /15/20,此产品主要产生电子磁场干扰和控制,从而使吨位变大或变小,性能稳定可靠,体积小,遥控主机 解码处理器 如烟盒大小,遥控器配两种型号,隐蔽性强,附件含使用光盘一套,

04/19/08 08:56:09 changed by anonymous

04/29/08 01:35:40 changed by show

I find that I get a serious case of add when reading blogs. There’s so much information out there I tend to read as much of

it as I can & never really stop to think to comment on people posts! How rude of me….. http://www.internationalremovals-ltd.com/en/logistics-company.html


Add/Change #14 (text/html pages trigger script installation dialog)