Closed Bug 941069 Opened 11 years ago Closed 1 year ago

revert patch 937006 once bug 937317 is landed

Categories

(Core :: Storage: IndexedDB, defect, P5)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: baku, Unassigned)

References

Details

Attachments

(1 file)

      No description provided.
Depends on: 937006
Component: DOM → DOM: IndexedDB
Attached patch crash.patchSplinter Review
is it time to go back to MOZ_CRASH? bug  937317 is landed.
Attachment #8344165 - Flags: review?(bobbyholley+bmo)
Apparently not, since now it's backed out.
Comment on attachment 8344165 [details] [diff] [review]
crash.patch

Hm. nsJSUtils::GetCallingLocation doesn't look at the Script Setting Stack, so this patch isn't correct on its own.

But this raises an interesting question of what, if anything, we want to happen here. The Script Settings Stack tracks incumbent globals, so that, when a non-scripted callback fires, we know which global it belongs to. And while globals generally have an origin and whatnot, that origin doesn't necessarily correspond with script filename (in the case of external scripts). And it certainly doesn't help us for line numbers.

So if we want a true (filename, line number) tuple here, I was mistaken that this would be resolved by the script settings stack, and we should WONTFIX this bug. But if it's more important to just get _something_, then we could grab the principal URI off the incumbent global (and report 0 for the line number, or something).

I suspect the answer here is probably WONTFIX. Thoughts?
Attachment #8344165 - Flags: review?(bobbyholley+bmo) → review-
Something is always better than nothing.
Priority: -- → P5
Severity: normal → S3

Most extant callsites do not seem to care about the return value, and those that do seem to only be conditionalizing setting the filename to "unknown" when unavailable and only propagating the line/column on success. No errors are reported, so mooting this bug.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: