You are correct they are from a different origins, chrome-
extensions:// and https://blah.com

Is there way around this?


On Oct 22, 3:07 pm, Adam Barth <[email protected]> wrote:
> If the window is from another origin, then you won't be able to read it's URL.
>
> Adam
>
>
>
> On Thu, Oct 22, 2009 at 12:05 PM, Aaron Boodman <[email protected]> wrote:
>
> > Most likely because when you first open the window, it doesn't have a URL 
> > yet.
>
> > On Thu, Oct 22, 2009 at 12:03 PM, jfc <[email protected]> wrote:
>
> >> I tried this in the chrome debugger and I said the value was
> >> undefined:
>
> >> print:
>
> >> w.location.href
> >> undefined
>
> >> I was attempting to do the following:
>
> >>    w.location.href = w.location.href + "?parm=value";
>
> >> Though if I set w.location.href = "http:/url" it did reset the URL as
> >> I wanted.
>
> >> On Oct 22, 1:54 pm, Aaron Boodman <[email protected]> wrote:
> >>> var w = window.open(...);
> >>> w.location.href = "...";
>
> >>> - a
>
> >>> On Thu, Oct 22, 2009 at 9:02 AM, jfc <[email protected]> wrote:
>
> >>> > I created an extension that will launch browser windows using
> >>> > window.open(blah, blah) (I am not using the chrome.windows calls
> >>> > here).
> >>> > The extension saved the returned value from the window.open call,
> >>> > which is the window object.
>
> >>> > How can the extension (background HTML) change the URL on that created
> >>> > window?- Hide quoted text -
>
> >>> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to