Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Workaround for #10124: change the title on close. #8986

Open
core-ai-bot opened this issue Aug 30, 2021 · 7 comments
Open

[CLOSED] Workaround for #10124: change the title on close. #8986

core-ai-bot opened this issue Aug 30, 2021 · 7 comments

Comments

@core-ai-bot
Copy link
Member

Issue by busykai
Tuesday Dec 09, 2014 at 15:29 GMT
Originally opened as adobe/brackets#10129


On Mac/OSX alert causes system modal dialog which prevents any interaction with
the browser and navigating away. This was causing unit tests to fail.

So instead of showing alert, change the title of the document to indicate that
the Live Preview session was closed. A more clear UI/UX definition is needed
for definitive solution.

Fixes #10124.

CC@redmunds


busykai included the following code: https://github.com/adobe/brackets/pull/10129/commits

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Tuesday Dec 09, 2014 at 16:09 GMT


@busykai In original extension, there's a custom overlay message displayed when browser is closed that I like -- why was that dropped?

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Tuesday Dec 09, 2014 at 16:15 GMT


I'm still seeing 1 MultiBrowser (experimental) - LiveDevelopment unit test fail:

"should push in memory css changes made before the session starts"

TypeError: Cannot read property 'getSourceFromBrowser' of undefined
    at null.<anonymous> (file://localhost/Users/randyedmunds/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/test/spec/LiveDevelopmentMultiBrowser-test.js:289:28)
    at jasmine.Block.execute (file://localhost/Users/randyedmunds/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/test/thirdparty/jasmine-core/jasmine.js:1064:17)
    at jasmine.Queue.next_ (file://localhost/Users/randyedmunds/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/test/thirdparty/jasmine-core/jasmine.js:2096:31)
    at onComplete (file://localhost/Users/randyedmunds/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/test/thirdparty/jasmine-core/jasmine.js:2092:18)
    at jasmine.WaitsForBlock.execute (file://localhost/Users/randyedmunds/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/test/thirdparty/jasmine-core/jasmine.js:2576:5)
    at file://localhost/Users/randyedmunds/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/test/thirdparty/jasmine-core/jasmine.js:2590:12
timeout: timed out after 10000 msec waiting for Browser to sync changes

@core-ai-bot
Copy link
Member Author

Comment by busykai
Tuesday Dec 09, 2014 at 16:18 GMT


@redmunds which Safari version do you use? I have 8.0.2 (10600.3.8.2), running on OSX 10.10.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Tuesday Dec 09, 2014 at 16:21 GMT


I have Safari Version 6.2 (8537.85.10.17.1) on Mac OS X 10.8.5 .

@core-ai-bot
Copy link
Member Author

Comment by busykai
Tuesday Dec 09, 2014 at 16:38 GMT


OK. Let me try to find a similar Mac... If I won't be able to resolve it today, we'll have to turn off that test.

As for overlay, I am not exactly sure why it was dropped. I can add it back. We never knew, however, how this implementation should indicate it's been closed. Changing title in addition to the overlay might be actually a good idea.

@core-ai-bot
Copy link
Member Author

Comment by busykai
Tuesday Dec 09, 2014 at 19:06 GMT


Got it reproduced on OSX 10.9.4 with Safari 7.0.5. However, I think the issue is not the version, but how fast is the machine itself. The issue is that the css is not yet registered as related document and LiveDevelopment.getLiveDocForPath. I'm going to exclude it for now and make sure it fixed ASAP.

The overlay in the original extension was not nice, actually, but I've reworked it a little bit and included here.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Tuesday Dec 09, 2014 at 21:40 GMT


FWIW, this is a 2 year old MacBook Pro Retina, so it's fast. I just kept the version at 10.8 for testing coverage. Maybe it's an OS difference.

Anyway, looks good. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant