Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added logs and handle CompletableFutures exception #1600

Merged
merged 2 commits into from Aug 22, 2019

Conversation

keianhzo
Copy link
Collaborator

Fixes #1570 Better exception handling for Places related content in suggestions. There seems to be some problem with Places in x86_64 https://mozilla.slack.com/archives/CA4JKKLSG/p1565878585191200 already informed the AC team. In the meantime this helps to show the available content in the awesome bar instead of showing nothing.

@@ -90,6 +93,11 @@ public void setComparator(Comparator comparator) {
items.sort(mComparator);
}
future.complete(items);

}).exceptionally(th -> {
Log.e(LOGTAG, "Error getting bookmarks suggestions: " + th.getLocalizedMessage());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the exceptions do not contain PII? I'm paranoid after all the work it took to clean up FxR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being part of AC I guess they don't, maybe @pocmo can answer that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would hope not but since these API deal with bookmarks and history I could conceive of something get leaked out.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this calls into Kotlin and Rust code of AS libraries we can't really guarantee that at the AC level.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keianhzo we should probably make the Logs debug then so they get stripped out for release?

@keianhzo
Copy link
Collaborator Author

@bluemarvin updated

@bluemarvin bluemarvin merged commit e7b20eb into master Aug 22, 2019
@bluemarvin bluemarvin deleted the wip/noapi_awesome_issue branch August 26, 2019 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Awesome bar and bookmarks don't work in noapi nmode
3 participants