Commit a1cf4fc8 authored by Boris Zbarsky's avatar Boris Zbarsky
Browse files

Bug 864845 part 2. Make window.content chromeonly. r=mystor

parent 44ac20b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ function runtests()
{
  is(messages.size, 3, "received the right number of messages.");
  is(messages.get("test"), "success", "test in frame failed.");
  isnot(messages.get("content"), "success", "parent[\"content\"] should be the WebIDL property of Window.");
  is(messages.get("content"), "success", "parent[\"content\"] should be the subframe named 'content'");
  isnot(messages.get("dump"), "success", "parent[\"dump\"] should be the WebIDL property of Window.");

  SimpleTest.finish();
+1 −1
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ partial interface Window {
                                                                   optional DOMString options = "",
                                                                   any... extraArguments);

  [Replaceable, Throws, NeedsCallerType] readonly attribute object? content;
  [ChromeOnly, Replaceable, Throws, NeedsCallerType] readonly attribute object? content;

  [ChromeOnly, Throws, NeedsCallerType] readonly attribute object? __content;