Closed Bug 735067 Opened 13 years ago Closed 7 years ago

Error in urlbarBindings.xml when using window.open() with location parameter set to 0

Categories

(Firefox :: Address Bar, defect)

10 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: benjamin.guillet, Unassigned)

Details

Attachments

(1 file)

I you try to hide the location bar in a new window using the window.open() javascript function with its parameter location set to 0 or off, this error raises : Error: this.editor is null Source file: chrome://browser/content/urlbarBindings.xml Line: 162 HOW TO REPRODUCE THIS BUG : Go to about:config in Firefox, find the setting "dom.disable_window_open_feature.location". Set it to true by double clicking it. This ensure that Firefox will not ignore the location parameter in the window.open() function (because otherwise sometimes it does, sometimes not). Then, use the window.open() javascript function with any url, title or options. Be just sure to have on the options the location parameter set to 0 or no. To see the error, you need to open the Error console. For instance I juste created a small html page with a submit button which call a function which call window.open("http://programmerryangosling.tumblr.com/", 'Foo', "location=no"); You can find the files to reproduce the bug easily attached to this post + a screenshot of the error.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: