Cannot setTimeout window.focus or window.alert

VERIFIED FIXED

Status

()

Core
DOM
VERIFIED FIXED
13 years ago
12 years ago

People

(Reporter: bz, Assigned: jst)

Tracking

({fixed1.8})

Trunk
x86
All
fixed1.8
Points:
---
Bug Flags:
blocking1.8b4 +
blocking1.8b5 +

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [HAVE FIX], URL)

Attachments

(1 attachment)

This is fallout from splitwindow, based on the regression date range (which is
somewhere in
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2005-07-30+07%3A00%3A00&maxdate=2005-07-31+12%3A00%3A00&cvsroot=%2Fcvsroot
).  To reproduce, load the URL in the URL bar and note that the JS console shows
an error instead of an alert saying "success" coming up.  The error is:

Error: uncaught exception: [Exception... "Illegal operation on WrappedNative
prototype object"  nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" 
location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0"  data: no]
Requesting blocking so that we at least evaluate what's going on here...
Flags: blocking1.8b4?

Comment 2

13 years ago
Just for kicks, the same thing happens if you're using script directly instead
of a javascript: URI, right?
Flags: blocking1.8b4? → blocking1.8b4+

Updated

13 years ago
Flags: blocking1.8b5+

Updated

13 years ago
Assignee: general → jst
(Assignee)

Comment 4

13 years ago
Created attachment 193751 [details] [diff] [review]
Make xpconnect attempt to use obj's outer if it can't find a wrapper using the given obj

This makes XPCWrappedNative::GetWrappedNativeOfJSObject() use obj's outer if it
can't find a wrapper with the given obj, which in this case is an inner window,
but the function we're calling comes from the outer window.
Attachment #193751 - Flags: superreview?(brendan)
Attachment #193751 - Flags: review?(shaver)
(Assignee)

Updated

13 years ago
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla1.8beta4
Comment on attachment 193751 [details] [diff] [review]
Make xpconnect attempt to use obj's outer if it can't find a wrapper using the given obj

Pre-emptive a=me as well as sr=me.  This is it.

/be
Attachment #193751 - Flags: superreview?(brendan)
Attachment #193751 - Flags: superreview+
Attachment #193751 - Flags: approval1.8b4+
Comment on attachment 193751 [details] [diff] [review]
Make xpconnect attempt to use obj's outer if it can't find a wrapper using the given obj

r=shaver
Attachment #193751 - Flags: review?(shaver) → review+
(Assignee)

Comment 7

13 years ago
Fixed on trunk and branch.
Status: ASSIGNED → RESOLVED
Last Resolved: 13 years ago
Keywords: fixed1.8
OS: All → Linux
Hardware: All → PC
Resolution: --- → FIXED
Target Milestone: mozilla1.8beta4 → ---
Verified FIXED using build 2005-09-03-05 on Windows XP SeaMonkey trunk.
Status: RESOLVED → VERIFIED
OS: Linux → All
You need to log in before you can comment on or make changes to this bug.