diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/PermissionDelegate.java b/app/src/common/shared/org/mozilla/vrbrowser/browser/PermissionDelegate.java index 6d53358fb..5dceb8f89 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/PermissionDelegate.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/PermissionDelegate.java @@ -64,10 +64,10 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in public void handlePermission(final String aUri, final PermissionWidget.PermissionType aType, final Callback aCallback) { if (mPermissionWidget == null) { mPermissionWidget = new PermissionWidget(mContext); - mPermissionWidget.getPlacement().parentHandle = mParentWidgetHandle; mWidgetManager.addWidget(mPermissionWidget); } + mPermissionWidget.getPlacement().parentHandle = mParentWidgetHandle; mPermissionWidget.showPrompt(aUri, aType, aCallback); }