Skip to content

Conversation

sratz
Copy link
Member

@sratz sratz commented Nov 10, 2024

Resolves #1581.

Copy link
Contributor

github-actions bot commented Nov 10, 2024

Test Results

   483 files  ±0     483 suites  ±0   8m 45s ⏱️ +23s
 4 095 tests ±0   4 085 ✅ ±0   7 💤 ±0  3 ❌ ±0 
16 173 runs  ±0  16 080 ✅ ±0  90 💤 ±0  3 ❌ ±0 

For more details on these failures, see this check.

Results for commit 5086276. ± Comparison against base commit d9d9bf0.

♻️ This comment has been updated with latest results.

@sratz
Copy link
Member Author

sratz commented Nov 13, 2024

Any objection to merge this for RC1?

It fixes a regression introduced with #1451.

The fix was validated in the associated issue.

@HeikoKlare could you have a look at the code changes?

@akurtakov @merks Pinging you for PMC approval.

@merks
Copy link
Contributor

merks commented Nov 13, 2024

It's quite a bit of code that I will not have time review right now.

If you and @HeikoKlare agree it's a good thing then I'm happy to defer to your good judgement:

PMC +1

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound and since it has been validated in the issue thread and only affects Edge (which is an opt-in feature), I consider this safe to merge for RC1.

I only see a potential code duplication that we might clean up before merging. But I leave it up to you whether to improve that or not. You have my approval to merge this in either case.

Comment on lines +983 to +994
browser.getDisplay().asyncExec(() -> {
if (browser.isDisposed()) return;
LocationEvent event = new LocationEvent(browser);
event.display = browser.getDisplay();
event.widget = browser;
event.location = location;
event.top = true;
for (LocationListener listener : locationListeners) {
listener.changed(event);
if (browser.isDisposed()) return;
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be mostly duplicate code to what happens in handleDocumentTitleChanged(). Can that be extracted into a separate, parameterized method?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, indeed. There's several places in Edge class that could be simplified.

I think we should have a round of refactoring and deduplication beginning of next dev cycle.

I'll merge this as-is for now.

@sratz
Copy link
Member Author

sratz commented Nov 13, 2024

Test failures on Linux are unrelated.

@sratz sratz merged commit e6588c2 into eclipse-platform:master Nov 13, 2024
12 of 14 checks passed
@sratz sratz deleted the edge-fragment-nav branch November 13, 2024 20:10
@sratz sratz added this to the 4.34 RC1 milestone Nov 13, 2024
@sratz sratz added the edge Edge Browser label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edge Edge Browser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SWT Browser component (Windows Edge): URLs sent to LocationListener are not complete

3 participants