Closed
Bug 466432
Opened 16 years ago
Closed 16 years ago
nsIDOMHTMLMediaElement's currentTime attribute is overridden by Windows macro
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: Seno.Aiko, Assigned: Seno.Aiko)
References
Details
(Keywords: fixed1.9.1)
Attachments
(1 file, 1 obsolete file)
|
831 bytes,
patch
|
Details | Diff | Splinter Review |
During the build of nsDOMClassinfo.cpp on Windows you get this warning:
nsIDOMHTMLMediaElement.h(111) : warning C4002: too many actual parameters for macro 'GetCurrentTime'
This is the same problem as bug 328368, so I guess the same patch is in order.
Attachment #349720 -
Flags: superreview?(vladimir)
Attachment #349720 -
Flags: review?(chris.double)
Attachment #349720 -
Flags: superreview?(vladimir)
Attachment #349720 -
Flags: superreview+
Attachment #349720 -
Flags: review?(chris.double)
Attachment #349720 -
Flags: review+
Keywords: checkin-needed
Comment 1•16 years ago
|
||
Comment on attachment 349720 [details] [diff] [review]
undef GetCurrentTime
Sorry:
{
patching file dom/public/idl/html/nsIDOMHTMLMediaElement.idl
Hunk #1 FAILED at 45
1 out of 1 hunks FAILED
}
Attachment #349720 -
Attachment is obsolete: true
Updated•16 years ago
|
Keywords: checkin-needed
I hope the uuid doesn't change again before this is checked in.
Keywords: checkin-needed
Comment 3•16 years ago
|
||
Comment on attachment 352530 [details] [diff] [review]
same patch with the current uuid
[Checkin: Comment 3]
http://hg.mozilla.org/mozilla-central/rev/408fe87e1242
Attachment #352530 -
Attachment description: same patch with the current uuid → same patch with the current uuid
[Checkin: Comment 3]
Comment 4•16 years ago
|
||
NB: I'd like to get this into 1.9.1 too...
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Flags: blocking1.9.1+
Pushed 49a3dae96ab3 to 1.9.1
Keywords: fixed1.9.1
Comment 6•16 years ago
|
||
This is the wrong patch: suppose someone decides they want to use one of the media IDL files in their binary extensions, xulrunner app, whatever, and they also want to use the GetCurrentTime Windows macro -- they lose. The correct solution is to use the XPIDL binaryname annotation on the attribute, which lets you override the default C++ method name for an interface attribute or method:
http://mxr.mozilla.org/mozilla-central/source/xpcom/base/nsIConsoleMessage.idl#48
In that case the C++ method name instead became GetMessageMoz (and SetMessageMoz had the attribute not been readonly).
I think this fix is wrong, and I think this should be fixed correctly.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
It's not that bad. We have #undefs like this elsewhere and it hasn't been a problem in pratice. The fix you describe is better, sure, but we don't have to block on that. Please file a followup bug.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•