Closed
Bug 305528
Opened 19 years ago
Closed 19 years ago
Cannot setTimeout window.focus or window.alert
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: bzbarsky, Assigned: jst)
References
()
Details
(Keywords: fixed1.8, Whiteboard: [HAVE FIX])
Attachments
(1 file)
1.41 KB,
patch
|
shaver
:
review+
brendan
:
superreview+
brendan
:
approval1.8b4+
|
Details | Diff | Splinter Review |
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]
Reporter | ||
Comment 1•19 years ago
|
||
Requesting blocking so that we at least evaluate what's going on here...
Flags: blocking1.8b4?
Comment 2•19 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+
Reporter | ||
Comment 3•19 years ago
|
||
Yes.
Updated•19 years ago
|
Flags: blocking1.8b5+
Updated•19 years ago
|
Assignee: general → jst
Assignee | ||
Comment 4•19 years ago
|
||
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•19 years ago
|
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla1.8beta4
Comment 5•19 years ago
|
||
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•19 years ago
|
||
Fixed on trunk and branch.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
OS: All → Linux
Hardware: All → PC
Resolution: --- → FIXED
Target Milestone: mozilla1.8beta4 → ---
Comment 8•19 years ago
|
||
Verified FIXED using build 2005-09-03-05 on Windows XP SeaMonkey trunk.
Status: RESOLVED → VERIFIED
OS: Linux → All
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•