[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #19459 [Applications/Tor Browser]: Write (C++) patch for window resizing parts
#19459: Write (C++) patch for window resizing parts
-------------------------------------------------+-------------------------
Reporter: gk | Owner:
| arthuredelstein
Type: task | Status:
| needs_review
Priority: Medium | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-torbutton-conversion, | Actual Points:
TorBrowserTeam201610 |
Parent ID: | Points:
Reviewer: | Sponsor:
| SponsorU
-------------------------------------------------+-------------------------
Comment (by arthuredelstein):
Replying to [comment:32 gk]:
Thanks as always for testing and reviewing!
> 1) We might want to add an `NS_ENSURE_STATE(shellWindow);` after and an
`NS_ENSURE_STATE(mPrimaryContentShell);` before
> `nsCOMPtr<nsIBaseWindow>
shellWindow(do_QueryInterface(mPrimaryContentShell));`. There is code that
does this in r306252 and this seems reasonable to me.
Added.
> 2) We might want to check the return value of `GetAvailScreenSize()`
called in `ResizeToBoundedDimensions()` as well (as is done at the other
place you use it)? Not sure what should happen in case this fails, though.
I have added this as well. For now it causes ResizeToBoundedDimensions to
abort.
> Regarding my testing: it looks good on all machines I tried it. I
encounerted an issue I mentioned in comment:18 (1)) again but after
digging a bit deeper it seems older versions have this problem, too. So,
no regression at least. This is #18175 fwiw.
I was able to reproduce this problem on a Windows machine and fixed it by
adding a little piece of the old JS patch. It's annoying to me to have to
add special-case code to two different files, but there is so much magic
in Firefox window sizing that I don't know how else to do it. I wonder if
this patch fixes the problem on your test system as well.
Here's the new version:
https://github.com/arthuredelstein/tor-browser/commit/19459+13
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19459#comment:33>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs