Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fix persistent permissions #10958

Merged
merged 1 commit into from
Sep 14, 2017
Merged

Fix persistent permissions #10958

merged 1 commit into from
Sep 14, 2017

Conversation

bbondy
Copy link
Member

@bbondy bbondy commented Sep 14, 2017

This merge is only for 0.18.x, I'm going to cherry-pick the commit into brianJ's notification branch PR for 0.19.x.

Submitter Checklist:
Fix #10957

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
    Already covered by this failing test:
   1) notificationBar permissions can accept permission request
   persistently:
        Promise was rejected with the following reason: timeout
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Introduced here:
c80b190#diff-8a9bac13ef6264feb2b6da7c18d86b3c

Test Plan:

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

app/filtering.js Outdated
if (response.length === permissionTypes.length) {
permissionCallbacks[message] = null
cb(response)
const repsonseAutoAdded = responseSizeThisIteration !== response.length
Copy link
Member

Choose a reason for hiding this comment

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

whoops- s/repsonseAutoAdded/responseAutoAdded

@bbondy bbondy self-assigned this Sep 14, 2017
Already covered by this test:
```
1) notificationBar permissions can accept permission request
persistently:
     Promise was rejected with the following reason: timeout
```

Fix #10957
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

++

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

++

@bsclifton bsclifton merged commit 2db92d4 into 0.18.x Sep 14, 2017
@bsclifton bsclifton deleted the persistent-permission branch September 14, 2017 21:22
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.

2 participants