зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1306536 - Don't set displayURI when it's set to false; r=mconley
MozReview-Commit-ID: DI52QqsS3BE --HG-- extra : rebase_source : b637dd7ac8d802197c7b6629e1c16ea597971810
This commit is contained in:
Родитель
79e4f601c0
Коммит
a312732ab6
|
@ -133,8 +133,9 @@ this.PermissionPromptPrototype = {
|
|||
* PopupNotification when it is shown. See the documentation
|
||||
* for PopupNotification for more details.
|
||||
*
|
||||
* Note that prompt() will automatically set displayURI to
|
||||
* be the URI of the requesting pricipal.
|
||||
* Note that prompt() will automatically set displayURI to
|
||||
* be the URI of the requesting pricipal, unless the displayURI is exactly
|
||||
* set to false.
|
||||
*/
|
||||
get popupOptions() {
|
||||
return {};
|
||||
|
@ -329,7 +330,10 @@ this.PermissionPromptPrototype = {
|
|||
let secondaryActions = popupNotificationActions.splice(1);
|
||||
|
||||
let options = this.popupOptions;
|
||||
options.displayURI = this.principal.URI;
|
||||
|
||||
if (!options.hasOwnProperty('displayURI') || options.displayURI) {
|
||||
options.displayURI = this.principal.URI;
|
||||
}
|
||||
|
||||
this.onBeforeShow();
|
||||
chromeWin.PopupNotifications.show(this.browser,
|
||||
|
|
Загрузка…
Ссылка в новой задаче