-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double
before-fetch-request
dispatch during reload (#740)
Closes #739 Issue #739 mentions the issue at the root of the unexpected behavior: > The reason is that `reload()` calls `this.removeAttribute("complete")` > and the frame watches attribute changes and calls > `this.loadSourceURL()` when the “complete” attribute is removed. This commit resolves the issue in several steps. First, add the `sourceURLReloaded()` callback to the `FrameElementDelegate` interface. Next, move the `FrameElement.reload()` implementation from `FrameElement.reload()` to the `FrameController.sourceURLReloaded()`. Finally, wrap the implementation's call to `this.element.removeAttribute("complete")` within a `ignoringChangesToAttribute("complete", () => ...)` block so that the change to the attribute is temporarily ignored.
- Loading branch information
1 parent
399658a
commit 732db00
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters