RE: MS Security update 891781 - Microsoft Security Bulletin MS05-0

From: Grover (Grover_at_discussions.microsoft.com)
Date: 03/03/05


Date: Thu, 3 Mar 2005 04:33:02 -0800

There is virtually no documentation on this from Microsoft, (only consumer
info, and not technical)- All of microsoft's documentation say that if you
change both pages to a second-level domain for the document.domain, then it
should function. There is one exception, which was another past security
update that stated the showModalWindow and dialogArguments needed to be in a
local variable and then change the document.domain, before passing. I was
able to workaround some of this by creating a local variable with a pointer
to the other object in the other domain (my second-level one), however, the
new MS "fix" seems to break that, as I get null objects back then. -No access
denied, no Permission denied, just Null objects. This was the same code as I
had working for a year.

Instead, what I have done is simply avoided the issue... I have taken any
cross-domain functionality that used to be in the dialog box page I created,
and moved it to it's calling page, that could deal with cross-domains. So, I
set the returnValue of the dialog page to an object with properties that I
wanted passed back for example, and do my code work there on the page after I
called showModalWindow(). I know it's not as pretty, but it's a workaround,
and it seems to work... well, almost...

now, randomly, it seems when I update the DOM object, when in the second
level domain, the calling page doesn't pass its updated contents(from a form)
from time to time. I am going to try again updating it using the
3rdlevel.2ndlvlDomain.com when the form is submitted, so maybe that will give
back the callingpage the rights to see it and pass it on. Like I said, it
seems to be a random thing, there's no consistency to when it happens. But,
for the most part, it's a workaround.

If you recall the code I had before from a past post, this is basically what
i've done to make that work...

> > document.domain = 'mydomain.com';
> > // code here
> > document.domain='myserver.mydoomain.com';
> > showModalDialog(calledPage, window, "dialogWidth:" + width +
> > "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");

document.domain = 'mydomain.com';
var oDOM = dialogArguments.objContent.DOM;

//get all of my properties from oDOM for dialog
var properties = new Object();
properties.value1=oDOM.whateverValueINeedInDialog;
properties.value2=oDOM.whateverValueINeedInDialog;

document.domain='myserver.mydoomain.com';

var returnValue = showModalDialog(calledPage, window, "dialogWidth:" + width
+ "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");

if (returnValue ) {
    // Put code that takes returnValue and processes what I need done.
}

in dialog page:
var properties = new Object();
properties.value1 = txtForm1.value;
properties.value2 = txtForm2.value;
window.returnValue = properties;
window.close();

Good luck....



Relevant Pages

  • Re: SwingWorker.execute() does nothing
    ... You would do well to follow that advise as well, being the person who started the "bonehead" theme, as well as calling the person who was involved in the design decision an "idiot". ... SwingWorker is involved only because _you_ brought it into the picture by using the Dialog instance in the same section code as the SwingWorker. ... likelihood that someone will be showing a modal progress dialog or other such thing during a long-running operation, and given the natural tendency to want to pop up the dialog *first* and *then* start the operation. ... The logical conclusion from your assertion is that every single class method in the Java API should include documentation that says "if placed after a call to Dialog.setVisible, this method will not execute until after the user has dismissed the Dialog". ...
    (comp.lang.java.programmer)
  • Re: New Orleans Vote
    ... Speaking of "documentation", the NEXT time you document what you claim ... support your skewed views - will be the FIRST time. ... what you refer to as my "grade school name calling" was nothing ...
    (alt.smokers.cigars)
  • Re: Where to find options for add_command?
    ... change color, font, size, background, for the label of Open File. ... Menu class or factory function that you are calling, ... to search the web to find the documentation for you. ... If you tell yourself the name of the module or package that contains ...
    (comp.lang.python)
  • Re: Swing didnt Swing - Help!!
    ... directory structure that goes with them, ... all covered in Jeff's documentation, ... There are also event log entries that will help identify if there's an issue ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (microsoft.public.windows.server.sbs)
  • Re: Odd behavior with WindowState
    ... problem than apply a workaround to every form whether it needs it or not. ... a maximized draw ... The above ControlBox assignment is a second case. ... Nowhere in the documentation about Visible and ControlBox is the ...
    (microsoft.public.dotnet.framework.windowsforms)