Closed Bug 978652 Opened 10 years ago Closed 10 years ago

Navigating while new Workers are queued causes all kinds of trouble

Categories

(Core :: DOM: Workers, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla30
Tracking Status
firefox30 --- verified
firefox-esr24 --- unaffected
seamonkey2.26 --- wontfix

People

(Reporter: jruderman, Assigned: bent.mozilla)

Details

(4 keywords, Whiteboard: [fuzzblocker][adv-main30+])

Crash Data

Attachments

(1 file, 1 obsolete file)

Attached file testcase (obsolete) —
When I load the testcase, one or more things goes wrong:


Crash [@ PresShell::ClearImageVisibilityVisited]

###!!! ASSERTION: This is unsafe! Fix the caller!: 'Error', file dom/events/nsEventDispatcher.cpp, line 447

[Exception... "Component returned failure code: 0x80570027 (NS_ERROR_XPC_SECURITY_MANAGER_VETO) [nsIDOMJSWindow.frames]"  nsresult: "0x80570027 (NS_ERROR_XPC_SECURITY_MANAGER_VETO)"  location: "JS frame :: resource://app/modules/sessionstore/FrameTree.jsm :: walk :: line 136"  data: no]

###!!! ABORT: How did we get here?  Are we failing to notify listeners that we should notify?: 'mDocument->IsBeingUsedAsImage()', file layout/base/nsPresContext.cpp, line 1909

JavaScript error: chrome://browser/content/tabbrowser.xml, line 3163: NS_ERROR_NOT_INITIALIZED: Component not initialized
###!!! ASSERTION: Inner window no longer correct!: 'outer && outer->GetCurrentInnerWindow() == mLoadInfo.mWindow', file dom/workers/WorkerPrivate.cpp, line 3526
Can you try this again with the fix in bug 975695?
Flags: needinfo?(jruderman)
Keywords: sec-high
Attached file testcase v2
This fixes the error "Constructor Worker requires 'new'".
Attachment #8384407 - Attachment is obsolete: true
With "testcase v2", I can reproduce the bug in an old build but not in a new one. So I guess bug 975695 fixed the problem :)

(I'm not sure when Worker was changed to require 'new'.)
Assignee: nobody → bent.mozilla
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(jruderman)
Resolution: --- → FIXED
Bug 916644, probably.

Bobby, did we look at crashtest to see if this made any tests inoperative?
Flags: needinfo?(bobbyholley)
Target Milestone: --- → mozilla30
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #5)
> Bobby, did we look at crashtest to see if this made any tests inoperative?

We did not, no.
Flags: needinfo?(bobbyholley)
Whiteboard: [fuzzblocker] → [fuzzblocker][adv-main30+]
Marking verified as per Jesse's comment 4.
Status: RESOLVED → VERIFIED
c#4 suggests fixed by a bug which was fixed in gecko 29, c#5 suggests fixed in a bug which changed behavior/landed in gecko 30.

Either way, I'm not investing tons of time into this for SeaMonkey 2.26.1 which is based on Gecko 29, on the off chance c#4 is correct.
Comment 5 is a response to the bit in parentheses in comment 4.  This was probably fixed bug the bug referred to in comment 4.
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: