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)
Core
DOM: Editor
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...
| Reporter | ||
Updated•25 years ago
|
Comment 1•25 years ago
|
||
*** This bug has been marked as a duplicate of 71426 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Comment 2•25 years ago
|
||
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 → ---
Comment 3•25 years ago
|
||
It related to, but also *not* a dup of 71234. I'm working on this now...
Status: REOPENED → ASSIGNED
Comment 4•25 years ago
|
||
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
Comment 6•25 years ago
|
||
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.
| Assignee | ||
Comment 7•25 years ago
|
||
What makes you think I'm not taking this seriously? Don't remove the security
check. I'll fix it.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 8•25 years ago
|
||
Comment 9•25 years ago
|
||
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.
| Assignee | ||
Comment 10•25 years ago
|
||
Comment 11•25 years ago
|
||
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
Comment 12•25 years ago
|
||
sr=sfraser
Comment 13•25 years ago
|
||
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
| Assignee | ||
Comment 15•25 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 17•25 years ago
|
||
*** 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.
Description
•