Closed Bug 931383 Opened 11 years ago Closed 11 years ago

"nsICacheEntryOpenCallback is not defined" in pageInfo.js, test_clearHistory_shutdown.js

Categories

(Firefox :: Page Info Window, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28
Tracking Status
firefox27 --- fixed
firefox28 --- fixed

People

(Reporter: jruderman, Assigned: mayhemer)

References

Details

(Keywords: regression, Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

JavaScript error: chrome://browser/content/pageinfo/pageInfo.js, line 474: nsICacheEntryOpenCallback is not defined

I don't have a reliable way to reproduce, but looking at the JS, I don't see where that identifier is ever declared.
Two files have this line:

browser/base/content/pageinfo/pageInfo.js
browser/components/places/tests/unit/test_clearHistory_shutdown.js
Definitely just needs _Ci._nsICacheEntryOpenCallback;  Easy to fix.  The onCacheEntryCheck is called when the entry to examine is in the cache.  If not, that callback is not invoked.
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Attachment #825462 - Flags: review?(jruderman)
Comment on attachment 825462 [details] [diff] [review]
v1

browser/components/places/tests/unit/test_clearHistory_shutdown.js has the same bug.
Attachment #825462 - Flags: review?(jruderman) → review-
OS: Mac OS X → All
Hardware: x86_64 → All
Comment on attachment 825462 [details] [diff] [review]
v1

test_clearHistory_shutdown.js is "fixed" in this patch... But nsICacheEntryOpenCallback.ENTRY_VALID doesn't seem to exist?
(In reply to :Gavin Sharp (email gavin@gavinsharp.com) from comment #5)
> Comment on attachment 825462 [details] [diff] [review]
> v1
> 
> test_clearHistory_shutdown.js is "fixed" in this patch...

Oops, yes, I only saw the first chunk and assumed there was nothing else, according to the bug summary.

> But nsICacheEntryOpenCallback.ENTRY_VALID doesn't seem to exist?

True.
Summary: "nsICacheEntryOpenCallback is not defined" in pageInfo.js → "nsICacheEntryOpenCallback is not defined" in pageInfo.js, test_clearHistory_shutdown.js
Attached patch v2Splinter Review
- added missing Components.interfaces
- s/ENTRY_VALID/ENTRY_WANTED/

Thanks for catching all the mistakes.
Attachment #825462 - Attachment is obsolete: true
Attachment #826713 - Flags: review?(dao)
Comment on attachment 826713 [details] [diff] [review]
v2

Thanks!
Attachment #826713 - Flags: review?(dao) → review+
https://hg.mozilla.org/mozilla-central/rev/b1ce58dc63d0
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
Comment on attachment 826713 [details] [diff] [review]
v2

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 913807
User impact if declined: none, since the code behaves the same, just prints false warning in debug builds
Testing completed (on m-c, etc.): just landed on m-c
Risk to taking this patch (and alternatives if risky): zero
String or IDL/UUID changes made by this patch: none

It's no problem NOT TO take this patch on m-a.
Attachment #826713 - Flags: approval-mozilla-aurora?
Comment on attachment 826713 [details] [diff] [review]
v2

Approving to avoid the regression, given how trivial the change is and since its super low risk.
Attachment #826713 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: