Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Added logs and handle CompletableFutures exception#1600

Merged
bluemarvin merged 2 commits into
masterfrom
wip/noapi_awesome_issue
Aug 22, 2019
Merged

Added logs and handle CompletableFutures exception#1600
bluemarvin merged 2 commits into
masterfrom
wip/noapi_awesome_issue

Conversation

@keianhzo

Copy link
Copy Markdown
Contributor

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.

@keianhzo keianhzo requested a review from bluemarvin August 19, 2019 17:41
future.complete(items);

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 keianhzo force-pushed the wip/noapi_awesome_issue branch from 3cb3077 to c1e5d2e Compare August 20, 2019 08:26
@keianhzo

Copy link
Copy Markdown
Contributor 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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