Closed
Bug 548205
Opened 14 years ago
Closed 14 years ago
Disallow embeddings reaching into our guts (part 1: jsnum.h)
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: gal, Assigned: gal)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 2 obsolete files)
7.07 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
Content and DOM include jsnum.h because they want isfinite() and double_is_int32. Work around the former and offer an API for the latter and stop jsnum.h from being included. This greatly speeds up re-compilation time of firefox. Disallowing the import of jsnum.h might be problematic for other embeddings. I can take out that #error #ifdef. Brendan what do you think?
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: general → gal
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 428636 [details] [diff] [review] patch This crosses a bunch of modules. I assume you can + for DOM and content as well.
Attachment #428636 -
Flags: review?(brendan)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #428636 -
Attachment is obsolete: true
Attachment #428636 -
Flags: review?(brendan)
Assignee | ||
Updated•14 years ago
|
Attachment #428641 -
Flags: review?(brendan)
Comment 4•14 years ago
|
||
Been talking on iChat -- I advocated more EXPORTS trimming, gave other review comments about WIN32 not _WIN, JS_DoubleIsIntThatFitsInJsval (or should that end in ...JSVal?) instead of JS_DoubleIsInt32 (which is just misleading). Argh, JS_DoubleIsInt31? /be
Comment 5•14 years ago
|
||
Er, never mind on JS_DoubleIsInt32 -- the right name (I misremembered). /be
Assignee | ||
Comment 6•14 years ago
|
||
Attachment #428641 -
Attachment is obsolete: true
Attachment #428641 -
Flags: review?(brendan)
Assignee | ||
Updated•14 years ago
|
Attachment #428642 -
Flags: review?(brendan)
Comment 7•14 years ago
|
||
Comment on attachment 428642 [details] [diff] [review] patch Assuming it tryservers well, r=me. /be
Attachment #428642 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 8•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/ea169ceb1162
Whiteboard: fixed-in-tracemonkey
Comment 9•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/ea169ceb1162
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 10•13 years ago
|
||
Interestingly, jsnum.h was added again in bug 636079...
Comment 11•13 years ago
|
||
I filed bug 622231 for comment 10.
You need to log in
before you can comment on or make changes to this bug.
Description
•