Closed Bug 84191 Opened 25 years ago Closed 25 years ago

from browser unable to open "new composer window" from Open Web Location dialog

Categories

(Core :: DOM: Editor, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: bugzilla, Assigned: security-bugs)

References

Details

(Keywords: regression, Whiteboard: [PDT+])

Attachments

(2 files)

summary sez it all, spun off from bug 71234. not sure if this should go to the editor folx, or xp apps: gui --punt as needed. however, this is a very annoying regression which has been around since early March! it occurs on all platforms, and in both the branch and trunk. basically, you cannot open a file in the editor via the Open Web Location dialog. to repro: 1. in the browser window, bring up the Open Web Location dialog [shift+accel+L, of File > Open Web Location]. 2. select "New Composer Window" from the droplist. 3. either enter a url in the textfield, or click Choose to enter a local file. 4. click Open. expected: file should be opened in a new editor window. result: nothing happens. no console output in the verification build --lemme check if i get anything w/my debug...
*** This bug has been marked as a duplicate of 71426 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Beth: I don't think this is a dup of 71426. Openning any page is failing. 71426 is about editing a particular URL.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
It related to, but also *not* a dup of 71234. I'm working on this now...
Status: REOPENED → ASSIGNED
The problem is because of the 'security manager' checks. This code was added to "editPage()" in utilityOverlay.js: // URL Loading Security Check var focusedWindow = launchWindow.document.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : focusedWindow._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"].getService(). QueryInterface(nsIScriptSecurityManager); try { secMan.checkLoadURIStr(sourceWin, url, nsIScriptSecurityManager.STANDARD); } catch (e) { throw "Edit of " + url + " denied."; } When the code "isDocumentFrame(focusedWindow)" is executed, it simply fails and never returns! I put lots of dumps in this and rewrote lines to execute the "isDocumentFrame()" method on its own line, and I get this message in the debug output (I was trying to load a local file, m:\junk.html): The link to file:///M:/junk.html was blocked by the security manager. Remote content may not link to local content. Do we need to do this security check when loading into Composer?
Assignee: cmanske → mstoltz
Severity: major → critical
Status: ASSIGNED → NEW
Target Milestone: --- → mozilla0.9.2
*** Bug 81038 has been marked as a duplicate of this bug. ***
I wish someone would take this seriously. I'm going to simply remove the security code check by 6/14 if I don't hear from anyone else.
What makes you think I'm not taking this seriously? Don't remove the security check. I'll fix it.
Status: NEW → ASSIGNED
Sorry, didn't mean to sound so harsh! But this issue has actually been around a long time, different bugs, though! So there's been a "multiple pileup" conspiring to not make this work for Composer.
Hurray! This works for me! So can you explain why in the previous version didn't work when loading into a Composer window? r=cmanske
Blocks: 83989
sr=sfraser
a= asa@mozilla.org for checkin to the trunk. (on behalf of drivers)
PDT+ with Clayton's permission.
Whiteboard: [PDT+]
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
verified in 6/22 build.
Status: RESOLVED → VERIFIED
*** Bug 87464 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: