Closed Bug 210020 Opened 21 years ago Closed 21 years ago

Security denied in view selection souce

Categories

(Core Graveyard :: View Source, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rbs, Assigned: doronr)

References

Details

Seems that the security folks have tightened the security checks recently. I
cannot use view selection source on the trunk. Any clues? I get the error:

JavaScript error:
 line 0: uncaught exception: [Exception... "Security error"  code: "1000" nsresu
lt: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "chrome://navigator/cont
ent/viewPartialSource.js Line: 199"]

----------
line 199 is:
  var loadFlags = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
  getBrowser().webNavigation
line199>>>>   .loadURI("view-source:data:text/html;charset=utf-8," +
escape(tmpNode.innerHTML),
                       loadFlags, null, null, null);
Probably fixed by the patch in bug 209946.
Depends on: 209946
That's right. Fixed by caillon's checkin for bug 209946:
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/content/base/src&command=DIFF_FRAMESET&file=nsContentUtils.cpp&rev1=1.42&rev2=1.43&root=/cvsroot
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
Product: SeaMonkey → Core Graveyard
You need to log in before you can comment on or make changes to this bug.