Closed Bug 834541 Opened 8 years ago Closed 3 years ago
59 bytes, text/x-review-board-request
hasHistoryEntries is cached most of the time, though sometimes we have to requery, and that query is synchronous.
No longer blocks: fxdesktopbacklog
Whiteboard: p=0 → p=13 [qa?]
a couple instances in WindowsJumpLists.jsm could be easily converted to be async. The one on shutdown could be converted using AsyncShutdown... but actually, if we could completely remove the API, it would be even better. WindowsJumpLists.jsm is the only _external_ consumer in our code, the instances in queries are there just as micro optimizations (don't even query if we know there's no history), we could just ignore those optimizations since they only help someone that doesn't have any history (very small minority of users). The check on shutdown is basically a "did we run clear history on shutdown?" question, and we can figure a better way to reply that question that doesn't involve disk access or even knowing if there's history (it could listen to a clear on shutdown topic or directly to history, unfortunately "shutdown-cleanse" has gone).
Points: --- → 5
Whiteboard: p=13 [qa?]
Summary: make hasHistoryEntries asynchronous → make hasHistoryEntries asynchronous and deprecate it
Summary: make hasHistoryEntries asynchronous and deprecate it → remove hasHistoryEntries
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Comment on attachment 8973949 [details] Bug 834541 - Remove the public History.hasHistoryEntries synchronous API. https://reviewboard.mozilla.org/r/242280/#review248504
Attachment #8973949 - Flags: review?(standard8) → review+
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. hg error in cmd: hg rebase -s 8f16311fb00e415258833ff313a9982bf5e32c4b -d 2d5c99b70e34: rebasing 462825:8f16311fb00e "Bug 834541 - Remove the public History.hasHistoryEntries synchronous API. r=standard8" (tip) merging toolkit/components/places/nsNavHistory.cpp merging toolkit/components/places/nsNavHistory.h merging toolkit/components/places/nsNavHistoryResult.cpp merging toolkit/components/places/tests/unit/test_browserhistory.js warning: conflicts while merging toolkit/components/places/nsNavHistory.h! (edit, then use 'hg resolve --mark') warning: conflicts while merging toolkit/components/places/tests/unit/test_browserhistory.js! (edit, then use 'hg resolve --mark') unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/80cabc246b5f Remove the public History.hasHistoryEntries synchronous API. r=standard8
You need to log in before you can comment on or make changes to this bug.