Closed
Bug 274143
(caminoSWM)
Opened 19 years ago
Closed 17 years ago
Fix "single-window mode" prefs
Categories
(Camino Graveyard :: Tabbed Browsing, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
Camino1.5
People
(Reporter: alqahira, Assigned: mikepinkerton)
References
Details
(Keywords: fixed1.8.1, regression, testcase)
Attachments
(2 files)
437 bytes,
text/html
|
Details | |
17.08 KB,
patch
|
Details | Diff | Splinter Review |
Previously, Camino 0.8+ honored Mozilla prefs user_pref("browser.block.target_new_window", true); user_pref("browser.always_reuse_window", true); to create a pseudo-single window mode. Merging aviary onto the trunk eliminated those prefs from Gecko and replaced them with various browser.link prefs (20041207; bug 172962 comment 211). Most of the browser.link prefs don't work in Camino, however (the one setting to the one pref that appears to correspond to the two above does); I assume there's something that ties the underlying preference into actual behavior in Camino. It would be nice to fully implement these new options, at least as hidden prefs, to be on par with Firefox and SeaMonkey (and perhaps add a UI for the less esoteric of the settings).
Assignee | ||
Comment 1•19 years ago
|
||
something to investigate for sure to make sure nothing regressed.
Target Milestone: --- → Camino0.9
Updated•19 years ago
|
Keywords: aviary-landing
On the trunk, single window mode needs some application level help. SWM assumes that it can work its way up to the outermost DOM window of any browser and find an nsIDOMChromeWindow from which it can get a working nsIBrowserDOMWindow object. I'm guessing this requirement caught Camino by surprise.
Reporter | ||
Comment 3•18 years ago
|
||
I just found that Simon W. had long ago filed a bug for a GUI for part of these prefs, so making this bug block that one.
Blocks: 172718
Comment 6•18 years ago
|
||
*** Bug 287824 has been marked as a duplicate of this bug. ***
Comment 7•18 years ago
|
||
(In reply to comment #2) > On the trunk, single window mode needs some application level help. SWM assumes > that it can work its way up to the outermost DOM window of any browser and find > an nsIDOMChromeWindow from which it can get a working nsIBrowserDOMWindow > object. I'm guessing this requirement caught Camino by surprise. That doesn't sound very embedding-friendly.
Reporter | ||
Comment 8•18 years ago
|
||
(In reply to comment #7) > That doesn't sound very embedding-friendly. I don't think Dan M or anyone else from the Aviary bug is cc'd here, so cc'ing Dan M....
*** Bug 300310 has been marked as a duplicate of this bug. ***
Comment 10•18 years ago
|
||
*** Bug 299964 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 11•18 years ago
|
||
To get this in a future version of Camino, what has to happen? Does single-window mode have to be fundamentally re-engineered to work with embedding apps? If so, is that something that needs to be pushed in the Gecko 1.9 alpha cycle so that SWM has a chance of making Camino 1.1?
Summary: Hook-up new /replacement "Single-window mode" prefs created after merge of aviary branch with trunk → Hook-up new/replacement "Single-window mode" prefs created after merge of aviary branch with trunk
Comment 12•18 years ago
|
||
Simon, Mike, as Smokey asked in comment 11, what has to happen to make this work?
Assignee | ||
Comment 13•18 years ago
|
||
a lot, we cannot do this for 1.0
Target Milestone: Camino1.0 → Camino1.1
Comment 14•18 years ago
|
||
*** Bug 319237 has been marked as a duplicate of this bug. ***
Comment 15•18 years ago
|
||
*** Bug 322468 has been marked as a duplicate of this bug. ***
Comment 16•18 years ago
|
||
*** Bug 322467 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•17 years ago
|
Target Milestone: Camino1.1 → Camino2.0
Comment 17•17 years ago
|
||
Make sure you test Gmail and the Developer links on Download.com software entry pages as both seemed to be tricky cases wrt single-window mode. BTW, Bug 323810 has been fixed on 1.8.1, so do we have half of our problems solved?
Comment 18•17 years ago
|
||
(In reply to comment #17) > BTW, Bug 323810 has been fixed on 1.8.1, so do we have half of our problems > solved? > No, it hasn't. It's awaiting approval.
Reporter | ||
Comment 19•17 years ago
|
||
Bug 323810 has now landed on the 1.8 branch. According to the folks in the forum on the trunk, the changes in bug 323810 break the one part of SWM that worked in Camino after the avaiary-landing (and had worked since time immemorial), so we now have no working way to stop the spawing of new windows. Moving this back to 1.1 because if we don't fix it, our behavior will be a regression from 1.0.
Target Milestone: Camino2.0 → Camino1.1
Comment 20•17 years ago
|
||
*** Bug 327726 has been marked as a duplicate of this bug. ***
Comment 21•17 years ago
|
||
Tweaking summary, bumping severity to major, adding regression keyword. We need some help on this one, so if anyone on the cc list has some ideas, please feel free... ;) cl
Severity: enhancement → major
Keywords: helpwanted,
regression
Summary: Hook-up new/replacement "Single-window mode" prefs created after merge of aviary branch with trunk → Fix "single-window mode" prefs
Comment 22•17 years ago
|
||
*** Bug 329591 has been marked as a duplicate of this bug. ***
Comment 23•17 years ago
|
||
This should block 1.1, because without a fix, we're *really* broken. cl
Alias: caminoSWM
Flags: camino1.1?
Comment 24•17 years ago
|
||
Simple testcase with two links, one with target="_blank" and one with target="_new". I tested using a clean profile with the following string in my prefs.js: user_pref("browser.link.open_newwindow", 1); In Camino 1.0 both links reuse the current tab, but in Camino 1.0+ (03.26) both links open a new window.
Comment 25•17 years ago
|
||
We ought to include javascript cases of window.open() as well, as exemplified by the testcases in Bug 103843. There's some disagreement about whether all window.open() links should follow the SWM prefs, or if cases where the new window is resized should be let through, so we should figure out which we want to do before fixing this. https://bugzilla.mozilla.org/attachment.cgi?id=160966 is the general-purpose case, and https://bugzilla.mozilla.org/attachment.cgi?id=160968 resizes the window.
Reporter | ||
Comment 26•17 years ago
|
||
(In reply to comment #25) > There's some disagreement about whether all > window.open() links should follow the SWM prefs, or if cases where the new > window is resized should be let through, so we should figure out which we want > to do before fixing this. No, that's an implementation detail; we get everything working, and then we set the default prefs how we want them. IMO browser.link.open_newwindow.restriction should be set to 2 (divert only if no size/foo called) by default when SWM is set to reuse or new tab and people who object wildly (like me) can set it to 0 (divert all window.open) manually vai about:config or user.js. But none of this matters until bz's changes get hooked up and browser.link.open_newwindow and browser.link.open_newwindow.restriction actually work in Camino. That's the issue here, we all know it's broken; what we need is someone to jump in and volunteer to hook bz's changes up in Camino.
Assignee | ||
Comment 27•17 years ago
|
||
patch against 1.8, applies cleanly to the trunk but i haven't yet built it. boy this was easy with the new apis ;)
Assignee | ||
Comment 28•17 years ago
|
||
landed on trunk and 18branch. i'm guessing at the right branch keyword (fixed1.8.1?)
Reporter | ||
Comment 29•17 years ago
|
||
You rock, pink! Take any complaints about what options are exposed via the UI to bug 184994.
Flags: camino1.1? → camino1.1+
Comment 30•17 years ago
|
||
*** Bug 339547 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•