Closed Bug 381467 Opened 17 years ago Closed 2 years ago

[meta] Switch application/x-javascript to application/javascript

Categories

(Core :: General, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: sdwilsh, Assigned: sgautherie)

References

()

Details

(Keywords: meta)

Attachments

(7 files, 1 obsolete file)

For lack of a better product/component...

I'll be filing and fixing bugs for the various parts of our tree.  We need to then fix http://lxr.mozilla.org/mozilla/source/content/xul/document/src/nsXULContentSink.cpp#1018 so that it's in a more sensible order.
Depends on: 381468
Do we absolutely have to have multiple bugs/patches for this?
And for the reference - from bug 380250:

--- Comment #39 from Christian Biesinger (:bi) <cbiesinger@gmx.at>  2007-05-21 09:33:14 PDT ---
(In reply to comment #37)
> Is application/javascript preferred over application/x-javascript now? Why? The
> x-javascript version is the de-facto standard in moz code - see

application/javascript has been registered recentlyish,
http://www.rfc-editor.org/rfc/rfc4329.txt
(In reply to comment #1)
> Do we absolutely have to have multiple bugs/patches for this?

Well, mxr/lxr searches get too many results fast, so that's a big reason why I'm splitting it up.  Also, it's easier to get reviewed with bugs in specific areas.
For clarification purposes, everything in our backend ought to be using the same thing, so we can fix nsXULContentSink.cpp such that it is optimized properly (right now it's application/x-javascript, but we have places in the code base that use application/javascript).
Assigning this to myself to keep it on my radar.
Assignee: nobody → comrade693+bmo
Assignee: sdwilsh → nobody
Product: Firefox → Core
QA Contact: general → general
Blocks: 442577
No longer blocks: 442577
Depends on: 442577
Current status:
Found 537 matching lines in 211 files
Depends on: 442581
Depends on: 455222
Depends on: 455762
Depends on: 455768
Depends on: 520892
Depends on: 520897
Depends on: 520899
Depends on: 520901
Depends on: text-ecmascript
Used a tool to replace
|<script type="application/x-javascript"|
by
|<script type="application/javascript"|

"Found 71 matching lines in 27 files"
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #406012 - Flags: review?(honzab.moz)
Comment on attachment 406012 [details] [diff] [review]
(Av1) /security/manager/pki/*
[Checkin: Comment 9]

r=honzab
Attachment #406012 - Flags: review?(honzab.moz) → review+
Comment on attachment 406012 [details] [diff] [review]
(Av1) /security/manager/pki/*
[Checkin: Comment 9]


http://hg.mozilla.org/mozilla-central/rev/3a42ae54a001
Attachment #406012 - Attachment description: (Av1) /security/manager/pki/* → (Av1) /security/manager/pki/* [Checkin: Comment 9]
Depends on: 523476
Comment on attachment 407409 [details] [diff] [review]
(Bv1) /tools/performance/*
[Checkin: Comment 12]

Was there a reason you prefer application/javascript to application/ecmascript or one of the other types?
Comment on attachment 407409 [details] [diff] [review]
(Bv1) /tools/performance/*
[Checkin: Comment 12]


http://hg.mozilla.org/mozilla-central/rev/6810cc6dc5db


(In reply to comment #11)
> Was there a reason you prefer application/javascript to application/ecmascript
> or one of the other types?

That was not my choice, but iiuc the rfc,
{
3.  Deployed Scripting Media Types and Compatibility
  The media types,
      * application/javascript
      * application/ecmascript
   which are also defined in this document, are intended for common use
   and should be used instead.

8.2.  application/ecmascript
      File extension(s):           .es
}
and ecmascript is "normalized" whereas javascript has new versions...
Attachment #407409 - Attachment description: (Bv1) /tools/performance/* → (Bv1) /tools/performance/* [Checkin: Comment 12]
Depends on: 529784
Attachment #413306 - Flags: review?(cbiesinger) → review+
Attachment #413329 - Flags: review?(dbaron)
Comment on attachment 413329 [details] [diff] [review]
(Dv1) /layout/*, Fix some nits too

If you're going to do directory-wide cleanups for things like this, separate them by what you're cleaning up.  It's not worth my time to review a mix of whitespace changes and all sorts of other things.
Attachment #413329 - Flags: review?(dbaron) → review-
Blocks: 531717
Keywords: checkin-needed
Whiteboard: [c-n: Cv1 to m-c after 'Firefox 3.6 RC code freeze']
Comment on attachment 415063 [details] [diff] [review]
(Ev1) /layout/base/crashtests/123946-1.html, EOL/whitespace fix (only)
[Checkin: Comment 17]


http://hg.mozilla.org/mozilla-central/rev/091a108677ad
Attachment #415063 - Attachment description: (Ev1) /layout/base/crashtests/123946-1.html, EOL/whitespace fix (only) → (Ev1) /layout/base/crashtests/123946-1.html, EOL/whitespace fix (only) [Checkin: Comment 17]
Per your comment 15.
Attachment #415068 - Flags: review?(dbaron)
Comment on attachment 415068 [details] [diff] [review]
(Dv2) /layout/* and fix some related nits too

I think we want our tests to have the variation in types that reflects the real Web rather than making all of our tests switch to one thing.  The non-test changes (i.e., layout/tools) look fine, though.
Attachment #415068 - Flags: review?(dbaron) → review-
Per your comment 19.
Attachment #415068 - Attachment is obsolete: true
Attachment #415875 - Flags: review?(dbaron)
Comment on attachment 413306 [details] [diff] [review]
(Cv1) /docshell/resources/content/netError.xhtml
[Checkin: Comment 21]


http://hg.mozilla.org/mozilla-central/rev/2337f12e8e9c
Attachment #413306 - Attachment description: (Cv1) /docshell/resources/content/netError.xhtml → (Cv1) /docshell/resources/content/netError.xhtml [Checkin: Comment 21]
Keywords: checkin-needed
Whiteboard: [c-n: Cv1 to m-c after 'Firefox 3.6 RC code freeze']
Comment on attachment 415875 [details] [diff] [review]
(Dv3) /layout/tools/*
[Checkin: Comment 23]

r=dbaron, if you remove "and fix some related nits too." from the description of the patch
Attachment #415875 - Flags: review?(dbaron) → review+
Comment on attachment 415875 [details] [diff] [review]
(Dv3) /layout/tools/*
[Checkin: Comment 23]


http://hg.mozilla.org/mozilla-central/rev/29224597307a
Attachment #415875 - Attachment description: (Dv3) /layout/tools/* and fix some related nits too → (Dv3) /layout/tools/* [Checkin: Comment 23]
Attachment #429994 - Flags: review?(dbaron)
Comment on attachment 429994 [details] [diff] [review]
(Ev1) /layout/*, tests part

We should have a variety of approaches in our tests rather than switching everything to one, so we shouldn't do this.
Attachment #429994 - Flags: review?(dbaron) → review-
Depends on: 551881
No longer depends on: 583418

The bug assignee didn't login in Bugzilla in the last 7 months.
:overholt, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: bugzillamozillaorg_serge_20140323 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(overholt)
Summary: Switch application/x-javascript to application/javascript → [meta] Switch application/x-javascript to application/javascript

Some patches landed here, so I think this can be marked fixed.

Assignee: nobody → bugzillamozillaorg_serge_20140323
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(overholt)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: