Closed Bug 642672 Opened 13 years ago Closed 13 years ago

Unable to allow popups from HTML files loaded through file: protocol

Categories

(Firefox :: General, defect)

4.0 Branch
x86_64
Windows 7
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 204285

People

(Reporter: jaws, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0

If a HTML file that is loaded via file:/// contains a window.open(), the popup is blocked and there isn't a way to remove popup blocking.

This error is logged to the console when clicking "Allow popups for":
Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPermissionManager.add]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://browser/content/browser.js :: <TOP_LEVEL> :: line 5786"  data: no]

Reproducible: Always

Steps to Reproduce:
1. Save this file to locally: https://www.msu.edu/~weinjare/popup_bug.html
2. View this file using Firefox: file:///C:/<path_to_file>/popup_bug.html
3. Try to allow popups
Actual Results:  
This exception is logged to the error console:
Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPermissionManager.add]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://browser/content/browser.js :: <TOP_LEVEL> :: line 5786"  data: no]

I also have screenshots of the UI, since there is a little jankiness because there is no host to reference in the context menus.

Expected Results:  
Ability to allow popups.
Lowered to minor because the workaround is simply choosing the bottom option of the context menu to open the specific popup.

It also could be odd to "allow popups" for all files on the hard drive. This could be implemented per folder, or the option to allow popups could be disabled if using the file: protocol.
Severity: normal → minor
Version: unspecified → 4.0 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: