Closed Bug 429172 Opened 16 years ago Closed 16 years ago

Two carets in the browser with these steps to reproduce


(Core :: General, defect)

Windows XP
Not set





(Reporter: stevee, Assigned: roc)



(Keywords: regression)


(1 file)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041506 Minefield/3.0pre ID:2008041506

Sage08 from the mz forums found this.

1. new profile, start firefox
2. File > New Window
3. Left click in the address bar to highlight it
4. Enter:
5. Press return

- One caret, probably in the google webpage's text box

- One caret in the address bar, one caret in the google webpage's text box

Error console reports this which might be related:

Error: Permission denied to set property XULElement.selectedIndex
Source File:
Line: 2
Flags: blocking-firefox3?
Flags: blocking-firefox3?
Product: Firefox → Core
QA Contact: general → general
Flags: blocking1.9?
btw, the STR from comment #0 didn't work that wel for me.
I did:

open FF (new profile)
[File]->[New Tab]
leftclick in locationbar and type
hit enter

result same as in comment #0
I wouldn't block on this but it's worth investigating.
I don't know if this is related, but sometimes I cannot select any textarea
within the browser (including the awesomebar, search, or webpage input boxes).
once I switch to a new tab and then focus the tab that is having an issue, it
works again. I don't know how to reproduce it, but if I figure it out, I'll
post steps. 

This only happens in a new window, so it might be related.
I am going to set a dependency on bug 428840, as based on the post here the regression window appears to be the same.
Depends on: 428840
Not blocking per comment #4.
Flags: blocking1.9? → blocking1.9-
This should block (I know I have no say in this) but here is another testcase where all inputs get focused wrong and you cannot type in them:

1) Open a PDF File in the browser in one window (ex:
2) From that PDF, in Minefield go to [File]->[New Window]
3) In that new window click on the address bar so the URL highlights (do not type anything)
4) Click in the search bar, or on an input form on the website (make google your homepage) and notice that the inputs are not working ( Google IG is my homepage, so I clicked on)
5)Try to type a URL in the awesomebar and nothing happens

This looks like a focus problem because when I highlighted text in the address bar and hit backspace, it went back a page, so the address bar did not get typing focus and it was behaving as if to go back a page.
I can reproduce with the steps in comment #0.
bug 428840 comment 22 has a tryserver build with bug 426987 backed out, and for me this fixes the two-caret issue, so I'm changing this bug's dependencies.
Blocks: 426987
No longer depends on: 428840
Confirmed, the try build fixes it for me also.
This is a weird one. Making nsDocument::SaveState call DestroyContent on its children *does not* fix the regression! So it seems to be one of the other things that nsDocument::Destroy does that's needed, but they all look innocuous to me. Experimenting.
I'm going to make this block since I can reproduce it and it should fix bug 428840 which is a blocker.
Flags: wanted1.9+
Flags: blocking1.9-
Flags: blocking1.9+
Attached patch fixSplinter Review
This fixes this bug. Not sure about the other one, which I find hard to reproduce --- someone could test.

It seems that we have to start returning the docshell's script-global-object as soon as nsDocumentViewer::Close is called. I'm not sure exactly why, but hopefully someone who knows this code can explain!
Assignee: nobody → roc
Attachment #315882 - Flags: superreview?(jonas)
Attachment #315882 - Flags: review?(jonas)
Whiteboard: [needs review]
If chris (or someone ) can get a build up with that patch Robert, then I can test as I can easily reproduce both bugs. 
I've made a TryServer build, should appear in a few hours under with the tag

Thanks chris, will test and report back.
(In reply to comment #16)
> I've made a TryServer build, should appear in a few hours under
> with the tag

That test build fixes the issue I descibed in Comment 8
chris, no build with that tag has appeared on your server. Could you upload a new one only the one with a full backout is there.
Note to self:
- Open about:crashes from the bookmarks toolbar
- Middle-click to open a crash report
- Switch the tab to that page, select some text
Make sure that the correct context menu is opened, as soon as this bug is fixed.
bug 429475 has the same range as this bug and seems to be a focus issue, so may be related.
Blocks: 429475
Comment on attachment 315882 [details] [diff] [review]

It's a little unintuitive that things like PresShell->SaveState() and mSaveState controls what scriptglobal we use.

How about renaming SaveState to RemovedFromDocshell or some such.

r/sr=me with some better names for these things.
Attachment #315882 - Flags: superreview?(jonas)
Attachment #315882 - Flags: superreview+
Attachment #315882 - Flags: review?(jonas)
Attachment #315882 - Flags: review+
In regards to comment 16, I have been able to test the build with the patch and it works fine now for me, no paste issues either.
Comment on attachment 315882 [details] [diff] [review]

Fixes nasty regressions. I will do the renaming Jonas asked for.
Attachment #315882 - Flags: approval1.9?
Chatzilla pasting is broken, it does not appear to be the same regression window either. See comment 30 bug 428840. Robert does this patch fix that issue also?
Whiteboard: [needs review] → [needs approval]
Comment on attachment 315882 [details] [diff] [review]

Attachment #315882 - Flags: approval1.9? → approval1.9+
Whiteboard: [needs approval] → [needs landing]
Checked in
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041807 Minefield/3.0pre ID:2008041807

Target Milestone: --- → mozilla1.9
You need to log in before you can comment on or make changes to this bug.