MozillaZine

Window-Q 0.1 d10 (complete single-window)

Talk about add-ons and extension development.
rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted July 9th, 2004, 7:19 pm

Window-Q 0.1 d10 (duality): <a href="http://www.eschew.org/misc/firefox/index.php?dir=&file=windowq-01-dev.xpi">Installer</a> and <a href="http://www.eschew.org/misc/firefox/index.php?dir=&file=windowq.jar">jar-file</a>.
.
It's finally here: the extension that TBP and SingleWindow aspire to be. This is a Single-Window Mode for mozilla and Firefox. The only known backdoor: enabling a site's popup-allowance will permit new windows for that site during unattended page-load.
.
Tested under Firefox 0.9.2 and moz1.3.1 -- should it fail elsewhere, just drop a line.
Last edited by rue on August 18th, 2004, 12:17 am, edited 1 time in total.

roachfiend

User avatar
 
Posts: 264
Joined: December 7th, 2002, 11:54 pm
Location: north america

Post Posted July 9th, 2004, 7:28 pm

works great so far, thanks.

Robert S.

User avatar
 
Posts: 4399
Joined: April 24th, 2004, 3:04 am
Location: Bay Area, CA

Post Posted July 9th, 2004, 7:55 pm

Installed fine... went into extensions and clicked the home page link and it opened a new window. :P

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted July 9th, 2004, 8:07 pm

wig: Haha- I suppose it can be added. Does TBP cover that? :P

morphis
 
Posts: 207
Joined: November 10th, 2003, 2:27 pm

Post Posted July 9th, 2004, 8:53 pm

So far, works great. But I found links in my gmail still get two tabs open.

oldaccountbegone
 
Posts: 228
Joined: March 3rd, 2004, 7:18 am

Post Posted July 9th, 2004, 11:18 pm

What about sized windows? I mean if a site wants to open a 500*500 window it obviously shouldn't be opened in a tab but a new small window

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted July 9th, 2004, 11:54 pm

morphis:
I need a whole lot more info: browser-build / platform, other extensions, any relevant prefs you might have set (browser.block.target_new_window), right vs. left vs. middle-click, and lastly, if you can post the relevant source for the link.. or, better, send yourself a dummy-message (with link) and save/zip/pm-send the whole page.

--
aliumalik:
Actually, it should be opened in a new tab, but enclosed in a sized-iframe. Tricky, but do-able.

Robert S.

User avatar
 
Posts: 4399
Joined: April 24th, 2004, 3:04 am
Location: Bay Area, CA

Post Posted July 9th, 2004, 11:55 pm

It isn't a big deal and I have no idea if TBP, TBE, or any of the others do... I just got a kick out of it. :)

TheOneKEA

User avatar
 
Posts: 4864
Joined: October 16th, 2003, 5:47 am
Location: Somewhere in London, riding the Underground

Post Posted July 10th, 2004, 12:25 am

TBP doesn't seem to spawn double tabs when clicking on links on the GMail website. What it does do, unfortunately, is open a new window AND a new tab...

Does anyone know where I can find the source of the Gmail link handling function OpenExtLink()?
Proud user of teh Fox of Fire
Registered Linux User #289618

gorgias
 
Posts: 226
Joined: March 19th, 2003, 4:03 pm
Location: Sweden

Post Posted July 10th, 2004, 1:38 am

rue I tried to use the code from windowq before in singlewindow and it was working quite well. However I found this site: http://www.outoftimemovie.com/ and it does not work at all with the code for catching js-links enabled :( (tabs opens but are empty) Any suggestions?

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted July 10th, 2004, 2:18 am

TheOneKEA:
Ah- excellent. "OpenExtLink" is defined as an onclick-handler -- directly on the link. I saw onclick-deference in browser.js, but didn't pay it mind. See if it works, now.

--
gorgias:
Fixed the url-handling for relative urls. Unfortunately, a browser-bug is exposed: moz1.3.1 isn't suppressing the popup for that site. It's because the open-call is in a timeout. I'll have to verify with Firefox.

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted July 10th, 2004, 2:27 am

d10 pass4: <a href="http://adblock.mozdev.org/Window-Q/windowq-01-dev.xpi">Installer</a> and <a href="http://adblock.mozdev.org/Window-Q/windowq.jar">jar-file</a>.

Mini-Changelog wrote:pass2: Firefox EM homepages are "queued"
pass3: onclick links are now ignored (handler-deference, per GMail)
pass4: javascript: relative urls are handled proper
.

oldaccountbegone
 
Posts: 228
Joined: March 3rd, 2004, 7:18 am

Post Posted July 10th, 2004, 4:24 am

Deleted...
Last edited by oldaccountbegone on July 3rd, 2009, 3:29 pm, edited 1 time in total.

TheOneKEA

User avatar
 
Posts: 4864
Joined: October 16th, 2003, 5:47 am
Location: Somewhere in London, riding the Underground

Post Posted July 10th, 2004, 5:28 am

rue wrote:TheOneKEA:
Ah- excellent. "OpenExtLink" is defined as an onclick-handler -- directly on the link. I saw onclick-deference in browser.js, but didn't pay it mind. See if it works, now.


What line # is browser.js? Perhaps I too can perform onclick-dereferencing and fix this quirk as well.
Proud user of teh Fox of Fire
Registered Linux User #289618

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted July 10th, 2004, 8:44 am

d10 pass6: <a href="http://adblock.mozdev.org/Window-Q/windowq-01-dev.xpi">Installer</a> and <a href="http://adblock.mozdev.org/Window-Q/windowq.jar">jar-file</a>.
Mini-Changelog wrote:pass5: popup permission-handling is complete; clicks, keypresses and other "popup-activators" open a 3sec. window in which open() calls can be made
pass6: popup routing now honors browser.tabs.opentabfor.windowopen

--
gorgias:
Your site should work perfectly, now.
--
TheOneKEA:
You should take a look at windowQ.js. Via lxr, the <a href="http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.js#3797">relevant line</a> in browser.js.
--
aliumalik:
I wired to a pref, so you can toggle popup-routing (see changelog).

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests