Closed Bug 343940 Opened 18 years ago Closed 18 years ago

Uncatchable "Permission denied to set property Window.String" involving javascript: URL as a background image

Categories

(Core :: DOM: Core & HTML, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: testcase)

Attachments

(2 files)

Testcase 1 causes an uncatchable exception.  I imagine there are several things going wrong:

1) The javascript: URL set as a td's background is evaluated at a strange time -- during or right after an appendChild call.

2) When the javascript: URL is evaluated, it's given an incorrect principal or context, resulting in a simple String.fromCharCode call giving "Permission denied to set property Window.String".

3) That error is allowed to affect the execution of a separate, already-running script.

I could be way off, of course -- I don't know Gecko that well ;)

Testcase 2 uses a <xul:vbox> where testcase 1 uses a <xul:textbox>, and somehow that makes the exception catchable.
Summary: Uncatchable "Permission denied to set property Window.String" and other strangeness → Uncatchable "Permission denied to set property Window.String" involving javascript: URL as a background image
These testcases put pass/fail information in the status bar using JavaScript, so they'll make the most sense if you allow JavaScript to set status bar text (Firefox disallows it by default).
Blocks: 343943
Depends on: 344890
Depends on: 351633
Is this still an issue?
WFM, both testcases say "pass" in the status bar.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: