Closed Bug 1306536 Opened 8 years ago Closed 8 years ago

Do not display origin when displayURI is set to false in PermissionUI.jsm

Categories

(Firefox :: Site Permissions, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 52
Tracking Status
firefox52 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(3 files)

When displayURI is exactly set to false in PermissionPrompt, we should not display the origin containing the URI's information.

[0] http://searchfox.org/mozilla-central/rev/5bdd2876aeb9dc97dc619ab3e067e86083dad023/browser/modules/PermissionUI.jsm#332
Blocks: 1289974
Assignee: nobody → cchang
Comment on attachment 8796407 [details]
Bug 1306536 - Don't set displayURI when it's set to false;

https://reviewboard.mozilla.org/r/82276/#review81402

Looks great, thanks! Would be good to have a test for this as well. Can you add one (or modify one of the existing ones) in browser/modules/test/browser_PermissionUI.js ? Thanks!
Attachment #8796407 - Flags: review?(mconley) → review+
Comment on attachment 8797368 [details]
Bug 1306536 - Test;

https://reviewboard.mozilla.org/r/82956/#review81738

Looks great! Thanks for the test!

::: browser/modules/test/browser_PermissionUI.js:161
(Diff revision 1)
>      yield removePromise;
>    });
>  });
>  
>  /**
> + * Tests that if the PermissionPrompt set displayURI to false in popupOptions,

Nit: "set" -> "sets"

::: browser/modules/test/browser_PermissionUI.js:187
(Diff revision 1)
> +      __proto__: PermissionUI.PermissionPromptForRequestPrototype,
> +      request: mockRequest,
> +      notificationID: kTestNotificationID,
> +      message: kTestMessage,
> +      promptActions: [mainAction, secondaryAction],
> +      popupOptions: { displayURI: false, },

Let's break this up over several lines, like:

```JavaScript
popupOptions: {
  displayURI: false,
},
```
Attachment #8797368 - Flags: review?(mconley) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a6cc9dcdf0a7
Don't set displayURI when it's set to false; r=mconley
https://hg.mozilla.org/integration/autoland/rev/2ba7a111b2a7
Test; r=mconley
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/a6cc9dcdf0a7
https://hg.mozilla.org/mozilla-central/rev/2ba7a111b2a7
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: