Last modified: 2014-07-03 09:33:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68236, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66236 - With logLinkClick shouldDelay true, VE starts loading same-page before being forced to another page
With logLinkClick shouldDelay true, VE starts loading same-page before being ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
GettingStarted (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Sam Smith
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-06 02:10 UTC by Matthew Flaschen
Modified: 2014-07-03 09:33 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2014-06-06 02:10:36 UTC
Since shouldDelay true makes it use window.location.href (but the normal VE handler is not suppressed since this is not pre-edit), it will start loading the normal same-page VE way, then change pages anyway.

This can be fixed by just setting shouldDelay false if isViewPage is true, since in that case the event can fire in parallel with VE setting up, without an artificial timeout or href navigation.

This can be tested in Chromium:

1. Put a breakpoint on the window.location.href line in logLinkClick.
2. Check 'Preserve log' checked in the network panel.
3. Click a VE edit link.
3. Wait a bit, then let it proceed past the break.

With the bug, the network panel will show it loading VE resources before the HTML page load starts.
Comment 1 Gerrit Notification Bot 2014-07-01 15:19:26 UTC
Change 140331 had a related patch set uploaded by Phuedx:
Prevent unnecessary VE page load

https://gerrit.wikimedia.org/r/140331
Comment 2 Gerrit Notification Bot 2014-07-03 01:17:09 UTC
Change 140331 merged by jenkins-bot:
Prevent unnecessary VE page load

https://gerrit.wikimedia.org/r/140331

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links