Open Bug 1467822 Opened 6 years ago Updated 2 years ago

GetFunctionName should filter out Windows paths

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

Tracking Status
firefox62 --- affected

People

(Reporter: Dexter, Unassigned)

References

Details

|GetFunctionName| tries to filter out paths using a "/" separator. This will not work on Windows paths, which can be "\\".

[1] - https://searchfox.org/mozilla-central/rev/c621276fbdd9591f52009042d959b9e19b66d49f/js/xpconnect/src/XPCWrappedJSClass.cpp#484-485
Blocks: 1382172
Priority: -- → P3
See https://bugzilla.mozilla.org/show_bug.cgi?id=1467818#c2.

Apparently built-in JavaScript sources are referenced using their location in the omnijar (using '/' as a path separator on every platform). Thus changing |GetFunctionName| to use |PATH_SEPARATOR| would actually be wrong in this context.
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.